mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
[NEW PORT] games/gngeo - NeoGeo emulator
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. GnGeo is a NeoGeo emulator for Linux (and maybe some other UNIX). It use the following cpu core: * The 68k core from the generator project by James Ponder. * Starscream 680x0 emulation library by Neill Corlett * Raze Z80 emulator by Richard Mitton. * Z80 Mame core from the Mame project. * YM2610 Mame core by Tatsuyuki Satoh. WWW: http://m.peponas.free.fr/gngeo/ PR: ports/85327 Submitted by: Alejandro Pulver <alejandro@varnet.biz>
This commit is contained in:
parent
2ba2a241ff
commit
f6b020d79f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=149037
@ -31,6 +31,7 @@
|
||||
SUBDIR += generator-cbiere
|
||||
SUBDIR += gens
|
||||
SUBDIR += gngb
|
||||
SUBDIR += gngeo
|
||||
SUBDIR += gnuboy
|
||||
SUBDIR += grustibus
|
||||
SUBDIR += gsnes9x
|
||||
|
89
emulators/gngeo/Makefile
Normal file
89
emulators/gngeo/Makefile
Normal file
@ -0,0 +1,89 @@
|
||||
# New ports collection makefile for: gngeo
|
||||
# Date created: 17 Aug 2005
|
||||
# Whom: Alejandro Pulver <alejandro@varnet.biz>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= gngeo
|
||||
PORTVERSION= 0.6.4
|
||||
CATEGORIES= emulators
|
||||
MASTER_SITES= http://m.peponas.free.fr/gngeo/download/
|
||||
DIST_SUBDIR= ${PORTNAME}
|
||||
|
||||
MAINTAINER= alejandro@varnet.biz
|
||||
COMMENT= NeoGeo emulator
|
||||
|
||||
RESTRICTED= The Neo-Geo BIOS can not be redistributed
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_SDL= image sdl
|
||||
USE_GL= yes
|
||||
USE_REINPLACE= yes
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --program-transform-name=""
|
||||
CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include" \
|
||||
LDFLAGS="`${SDL_CONFIG} --libs`"
|
||||
|
||||
OPTIONS= GUI "Enable GUI support (experimental)" off \
|
||||
I386ASM "Use i386 optimization" on \
|
||||
RAZE "Use Raze as z80 emulator (only for i386)" on \
|
||||
STAR "Use Starscream as 68k emulator (only for i386)" on
|
||||
|
||||
MAN1= gngeo.1
|
||||
|
||||
NGBIOS= neo-geo.rom ng-lo.rom ng-sfix.rom ng-sm1.rom
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}| ; \
|
||||
s|-mcpu=$$target_cpu||' \
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
|
||||
post-install:
|
||||
# Neo-Geo BIOS
|
||||
.for f in ${NGBIOS}
|
||||
@${INSTALL_DATA} ${DISTDIR}/${f} ${DATADIR}
|
||||
.endfor
|
||||
|
||||
# Examples
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/sample_gngeorc ${EXAMPLESDIR}/gngeorc
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.for f in ${NGBIOS}
|
||||
. if !exists(${DISTDIR}/${DIST_SUBDIR}/${f}) || defined(PACKAGE_BUILDING)
|
||||
IGNORE?= Could not find ${DISTDIR}/${DIST_SUBDIR}/${f}. You need to manually download a copy of the Neo-Geo BIOS, extract the files and place them into ${DISTDIR}/${DIST_SUBDIR}. It is available at http://www.ocf.berkeley.edu/~wwu/downloads/neogeo.zip
|
||||
. endif
|
||||
.endfor
|
||||
|
||||
.if defined(WITH_I386ASM) || defined(WITH_RAZE) || defined(WITH_STAR)
|
||||
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
|
||||
.endif
|
||||
|
||||
.if defined(WITH_GUI)
|
||||
CONFIGURE_ARGS+= --enable-gui
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-gui
|
||||
.endif
|
||||
|
||||
.if defined(WITH_I386ASM) && ${ARCH} == "i386"
|
||||
CONFIGURE_ARGS+= --enable-i386asm
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-i386asm
|
||||
.endif
|
||||
|
||||
.if defined(WITH_RAZE) && ${ARCH} == "i386"
|
||||
CONFIGURE_ARGS+= --enable-raze
|
||||
.else
|
||||
CONFIGURE_ARGS+= --enable-mamez80
|
||||
.endif
|
||||
|
||||
.if defined(WITH_STAR) && ${ARCH} == "i386"
|
||||
CONFIGURE_ARGS+= --enable-starscream
|
||||
.else
|
||||
CONFIGURE_ARGS+= --enable-gen68k
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
emulators/gngeo/distinfo
Normal file
3
emulators/gngeo/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (gngeo/gngeo-0.6.4.tar.gz) = 690a624935a25af19d80d05088dc7d3c
|
||||
SHA256 (gngeo/gngeo-0.6.4.tar.gz) = e51a699ce8800fd717166b31c94918b252d578e764fecff8b8ec3a7acbb4a6b7
|
||||
SIZE (gngeo/gngeo-0.6.4.tar.gz) = 558473
|
13
emulators/gngeo/files/patch-configure
Normal file
13
emulators/gngeo/files/patch-configure
Normal file
@ -0,0 +1,13 @@
|
||||
--- configure.orig Mon Sep 20 13:35:06 2004
|
||||
+++ configure Wed Aug 17 16:29:55 2005
|
||||
@@ -3118,10 +3118,6 @@
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
|
||||
-else
|
||||
- { { echo "$as_me:$LINENO: error: can't find sdl-config on your system" >&5
|
||||
-echo "$as_me: error: can't find sdl-config on your system" >&2;}
|
||||
- { (exit 1); exit 1; }; };
|
||||
fi
|
||||
|
||||
|
11
emulators/gngeo/files/patch-src-streams.c
Normal file
11
emulators/gngeo/files/patch-src-streams.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/streams.c.orig Sat Feb 28 12:50:41 2004
|
||||
+++ src/streams.c Wed Aug 17 16:32:02 2005
|
||||
@@ -10,7 +10,7 @@
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
-#include <malloc.h>
|
||||
+#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "emu.h"
|
||||
#include <math.h>
|
10
emulators/gngeo/pkg-descr
Normal file
10
emulators/gngeo/pkg-descr
Normal file
@ -0,0 +1,10 @@
|
||||
GnGeo is a NeoGeo emulator for Linux (and maybe some other UNIX). It use the
|
||||
following cpu core:
|
||||
|
||||
* The 68k core from the generator project by James Ponder.
|
||||
* Starscream 680x0 emulation library by Neill Corlett
|
||||
* Raze Z80 emulator by Richard Mitton.
|
||||
* Z80 Mame core from the Mame project.
|
||||
* YM2610 Mame core by Tatsuyuki Satoh.
|
||||
|
||||
WWW: http://m.peponas.free.fr/gngeo/
|
14
emulators/gngeo/pkg-plist
Normal file
14
emulators/gngeo/pkg-plist
Normal file
@ -0,0 +1,14 @@
|
||||
bin/gngeo
|
||||
%%DATADIR%%/cursor.bmp
|
||||
%%DATADIR%%/gui_font.bmp
|
||||
%%DATADIR%%/gui_font2.bmp
|
||||
%%DATADIR%%/little_font.bmp
|
||||
%%DATADIR%%/neo-geo.rom
|
||||
%%DATADIR%%/ng-lo.rom
|
||||
%%DATADIR%%/ng-sfix.rom
|
||||
%%DATADIR%%/ng-sm1.rom
|
||||
%%DATADIR%%/romrc
|
||||
%%DATADIR%%/sb_arrows.bmp
|
||||
%%EXAMPLESDIR%%/gngeorc
|
||||
@dirrm %%DATADIR%%
|
||||
@dirrm %%EXAMPLESDIR%%
|
Loading…
Reference in New Issue
Block a user