Date: Fri, 26 Aug 2005 18:17:04 -0300 From: "Alejandro Pulver" <alejandro@varnet.biz> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/85327: [NEW PORT] games/gngeo - NeoGeo emulator Message-ID: <1125091024.0@phobos.mars.bsd> Resent-Message-ID: <200508262120.j7QLKJCA046988@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 85327 >Category: ports >Synopsis: [NEW PORT] games/gngeo - NeoGeo emulator >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Aug 26 21:20:19 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Alejandro Pulver >Release: FreeBSD 5.4-RELEASE i386 >Organization: >Environment: >Description: Note: this port sets RESTRICTED because the Neo-Geo BIOS must be downloaded manually and can not be redistributed. So ports/LEGAL should be updated. These are the file names: "neo-geo.rom", "ng-lo.rom", "ng-sfix.rom", and "ng-sm1.rom". These files are also listed in the "NGBIOS" variable in the Makefile of the port. >How-To-Repeat: >Fix: --- gngeo.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # gngeo # gngeo/Makefile # gngeo/distinfo # gngeo/pkg-descr # gngeo/files # gngeo/files/patch-configure # gngeo/files/patch-src-streams.c # gngeo/pkg-plist # echo c - gngeo mkdir -p gngeo > /dev/null 2>&1 echo x - gngeo/Makefile sed 's/^X//' >gngeo/Makefile << 'END-of-gngeo/Makefile' X# New ports collection makefile for: gngeo X# Date created: 17 Aug 2005 X# Whom: Alejandro Pulver <alejandro@varnet.biz> X# X# $FreeBSD$ X# X XPORTNAME= gngeo XPORTVERSION= 0.6.4 XCATEGORIES= emulators XMASTER_SITES= http://m.peponas.free.fr/gngeo/download/ X XMAINTAINER= alejandro@varnet.biz XCOMMENT= NeoGeo emulator X XRESTRICTED= The Neo-Geo BIOS can not be redistributed X XUSE_GMAKE= yes XUSE_SDL= image sdl XUSE_GL= yes XUSE_REINPLACE= yes X XGNU_CONFIGURE= yes XCONFIGURE_ARGS= --program-transform-name="" XCONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include" \ X LDFLAGS="`${SDL_CONFIG} --libs`" X XOPTIONS= GUI "Enable GUI support (experimental)" off \ X I386ASM "Use i386 optimization" on \ X RAZE "Use Raze as z80 emulator (only for i386)" on \ X STAR "Use Starscream as 68k emulator (only for i386)" on X XMAN1= gngeo.1 X XNGBIOS= neo-geo.rom ng-lo.rom ng-sfix.rom ng-sm1.rom X Xpost-patch: X @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}| ; \ X s|-mcpu=$$target_cpu||' \ X ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} X Xpost-install: X# Neo-Geo BIOS X.for f in ${NGBIOS} X @${INSTALL_DATA} ${DISTDIR}/${f} ${DATADIR} X.endfor X X# Examples X @${MKDIR} ${EXAMPLESDIR} X @${INSTALL_DATA} ${WRKSRC}/sample_gngeorc ${EXAMPLESDIR}/gngeorc X X.include <bsd.port.pre.mk> X X.for f in ${NGBIOS} X. if !exists(${DISTDIR}/${f}) || defined(PACKAGE_BUILDING) XIGNORE?= Could not find ${DISTDIR}/${f}. You need to manually download a copy of the Neo-Geo BIOS, extract the files and place them into ${DISTDIR}. It is available at http://www.ocf.berkeley.edu/~wwu/downloads/neogeo.zip X. endif X.endfor X X.if defined(WITH_I386ASM) || defined(WITH_RAZE) || defined(WITH_STAR) XBUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm X.endif X X.if defined(WITH_GUI) XCONFIGURE_ARGS+= --enable-gui X.else XCONFIGURE_ARGS+= --disable-gui X.endif X X.if defined(WITH_I386ASM) && ${ARCH} == "i386" XCONFIGURE_ARGS+= --enable-i386asm X.else XCONFIGURE_ARGS+= --disable-i386asm X.endif X X.if defined(WITH_RAZE) && ${ARCH} == "i386" XCONFIGURE_ARGS+= --enable-raze X.else XCONFIGURE_ARGS+= --enable-mamez80 X.endif X X.if defined(WITH_STAR) && ${ARCH} == "i386" XCONFIGURE_ARGS+= --enable-starscream X.else XCONFIGURE_ARGS+= --enable-gen68k X.endif X X.include <bsd.port.post.mk> END-of-gngeo/Makefile echo x - gngeo/distinfo sed 's/^X//' >gngeo/distinfo << 'END-of-gngeo/distinfo' XMD5 (gngeo-0.6.4.tar.gz) = 690a624935a25af19d80d05088dc7d3c XSIZE (gngeo-0.6.4.tar.gz) = 558473 END-of-gngeo/distinfo echo x - gngeo/pkg-descr sed 's/^X//' >gngeo/pkg-descr << 'END-of-gngeo/pkg-descr' XGnGeo is a NeoGeo emulator for Linux (and maybe some other UNIX). It use the Xfollowing cpu core: X X* The 68k core from the generator project by James Ponder. X* Starscream 680x0 emulation library by Neill Corlett X* Raze Z80 emulator by Richard Mitton. X* Z80 Mame core from the Mame project. X* YM2610 Mame core by Tatsuyuki Satoh. X XWWW: http://m.peponas.free.fr/gngeo/ END-of-gngeo/pkg-descr echo c - gngeo/files mkdir -p gngeo/files > /dev/null 2>&1 echo x - gngeo/files/patch-configure sed 's/^X//' >gngeo/files/patch-configure << 'END-of-gngeo/files/patch-configure' X--- configure.orig Mon Sep 20 13:35:06 2004 X+++ configure Wed Aug 17 16:29:55 2005 X@@ -3118,10 +3118,6 @@ X { (exit 1); exit 1; }; } X fi X X-else X- { { echo "$as_me:$LINENO: error: can't find sdl-config on your system" >&5 X-echo "$as_me: error: can't find sdl-config on your system" >&2;} X- { (exit 1); exit 1; }; }; X fi X X END-of-gngeo/files/patch-configure echo x - gngeo/files/patch-src-streams.c sed 's/^X//' >gngeo/files/patch-src-streams.c << 'END-of-gngeo/files/patch-src-streams.c' X--- src/streams.c.orig Sat Feb 28 12:50:41 2004 X+++ src/streams.c Wed Aug 17 16:32:02 2005 X@@ -10,7 +10,7 @@ X #endif X X #include <string.h> X-#include <malloc.h> X+#include <stdlib.h> X #include <stdio.h> X #include "emu.h" X #include <math.h> END-of-gngeo/files/patch-src-streams.c echo x - gngeo/pkg-plist sed 's/^X//' >gngeo/pkg-plist << 'END-of-gngeo/pkg-plist' Xbin/gngeo X%%DATADIR%%/cursor.bmp X%%DATADIR%%/gui_font.bmp X%%DATADIR%%/gui_font2.bmp X%%DATADIR%%/little_font.bmp X%%DATADIR%%/neo-geo.rom X%%DATADIR%%/ng-lo.rom X%%DATADIR%%/ng-sfix.rom X%%DATADIR%%/ng-sm1.rom X%%DATADIR%%/romrc X%%DATADIR%%/sb_arrows.bmp X%%EXAMPLESDIR%%/gngeorc X@dirrm %%DATADIR%% X@dirrm %%EXAMPLESDIR%% END-of-gngeo/pkg-plist exit --- gngeo.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1125091024.0>