View | Details | Raw Unified | Return to bug 94023
Collapse All | Expand All

(-)/usr/ports/emulators/gngeo-new/Makefile (-28 / +15 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	gngeo
8
PORTNAME=	gngeo
9
PORTVERSION=	0.6.4
9
PORTVERSION=	0.6.10
10
CATEGORIES=	emulators
10
CATEGORIES=	emulators games
11
MASTER_SITES=	http://m.peponas.free.fr/gngeo/download/
11
MASTER_SITES=	http://m.peponas.free.fr/gngeo/download/
12
DIST_SUBDIR=	${PORTNAME}
12
DIST_SUBDIR=	${PORTNAME}
13
13
Lines 16-30 Link Here
16
16
17
RESTRICTED=	The Neo-Geo BIOS can not be redistributed
17
RESTRICTED=	The Neo-Geo BIOS can not be redistributed
18
18
19
USE_X_PREFIX=	yes
19
USE_GMAKE=	yes
20
USE_GMAKE=	yes
20
USE_SDL=	image sdl
21
USE_SDL=	image sdl
21
USE_GL=		yes
22
USE_GL=		yes
22
USE_REINPLACE=	yes
23
23
24
GNU_CONFIGURE=	yes
24
GNU_CONFIGURE=	yes
25
CONFIGURE_ARGS=	--program-transform-name=""
25
CONFIGURE_ARGS=	--program-transform-name=""
26
CONFIGURE_ENV=	CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include" \
26
CONFIGURE_ENV=	CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include ${CFLAGS}" \
27
		LDFLAGS="`${SDL_CONFIG} --libs`"
27
		LDFLAGS="`${SDL_CONFIG} --libs`" \
28
28
29
OPTIONS=	GUI "Enable GUI support (experimental)" off \
29
OPTIONS=	GUI "Enable GUI support (experimental)" off \
30
		I386ASM "Use i386 optimization" on \
30
		I386ASM "Use i386 optimization" on \
Lines 33-63 Link Here
33
33
34
MAN1=		gngeo.1
34
MAN1=		gngeo.1
35
35
36
NGBIOS=		neo-geo.rom ng-lo.rom ng-sfix.rom ng-sm1.rom
37
38
post-patch:
39
	@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}| ; \
40
			s|-mcpu=$$target_cpu||' \
41
				${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
42
43
post-install:
44
# Neo-Geo BIOS
45
.for f in ${NGBIOS}
46
	@${INSTALL_DATA} ${DISTDIR}/${f} ${DATADIR}
47
.endfor
48
49
# Examples
50
	@${MKDIR} ${EXAMPLESDIR}
51
	@${INSTALL_DATA} ${WRKSRC}/sample_gngeorc ${EXAMPLESDIR}/gngeorc
52
53
.include <bsd.port.pre.mk>
36
.include <bsd.port.pre.mk>
54
37
55
.for f in ${NGBIOS}
56
.	if !exists(${DISTDIR}/${DIST_SUBDIR}/${f}) || defined(PACKAGE_BUILDING)
57
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
58
.	endif
59
.endfor
60
61
.if defined(WITH_I386ASM) || defined(WITH_RAZE) || defined(WITH_STAR)
38
.if defined(WITH_I386ASM) || defined(WITH_RAZE) || defined(WITH_STAR)
62
BUILD_DEPENDS+=		nasm:${PORTSDIR}/devel/nasm
39
BUILD_DEPENDS+=		nasm:${PORTSDIR}/devel/nasm
63
.endif
40
.endif
Lines 85-89 Link Here
85
.else
62
.else
86
CONFIGURE_ARGS+=	--enable-gen68k
63
CONFIGURE_ARGS+=	--enable-gen68k
87
.endif
64
.endif
65
66
post-patch:
67
	@${REINPLACE_CMD} -e 's|%%SDL_CONFIG%%|${SDL_CONFIG}| ; \
68
		s|-mcpu=$$target_cpu||' \
69
			${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
70
	@${REINPLACE_CMD} -e 's|-O3||g' ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
71
72
post-install:
73
	@${MKDIR} ${EXAMPLESDIR}
74
	@${INSTALL_DATA} ${WRKSRC}/sample_gngeorc ${EXAMPLESDIR}/gngeorc
88
75
89
.include <bsd.port.post.mk>
76
.include <bsd.port.post.mk>
(-)/usr/ports/emulators/gngeo-new/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (gngeo/gngeo-0.6.4.tar.gz) = 690a624935a25af19d80d05088dc7d3c
1
MD5 (gngeo/gngeo-0.6.10.tar.gz) = 5b01e203f727ae14904e3f2cb0afa65c
2
SHA256 (gngeo/gngeo-0.6.4.tar.gz) = e51a699ce8800fd717166b31c94918b252d578e764fecff8b8ec3a7acbb4a6b7
2
SHA256 (gngeo-0.6.10.tar.gz) = 93fd491217f09e768b3450ca214e3b5c0b5816181ea9138378f4634c5c7b5577
3
SIZE (gngeo/gngeo-0.6.4.tar.gz) = 558473
3
SIZE (gngeo/gngeo-0.6.19.tar.gz) = 1015809
(-)/usr/ports/emulators/gngeo-new/files/patch-configure (-8 / +29 lines)
Lines 1-13 Link Here
1
--- configure.orig	Mon Sep 20 13:35:06 2004
1
--- configure	Wed Mar  1 21:08:25 2006
2
+++ configure	Wed Aug 17 16:29:55 2005
2
+++ configure	Wed Mar  1 21:06:55 2006
3
@@ -3118,10 +3118,6 @@
3
@@ -2997,7 +2997,7 @@
4
    { (exit 1); exit 1; }; }
4
 	fi
5
 else
6
 	# Extract the first word of "sdl-config", so it can be a program name with args.
7
-set dummy sdl-config; ac_word=$2
8
+set dummy %%SDL_CONFIG%%; ac_word=$2
9
 echo "$as_me:$LINENO: checking for $ac_word" >&5
10
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11
 if test "${ac_cv_prog_SDL_CONFIG+set}" = set; then
12
@@ -3033,8 +3033,8 @@
5
 fi
13
 fi
6
 
14
 
7
-else
15
 	if test "$SDL_CONFIG" = yes ; then
8
-	{ { echo "$as_me:$LINENO: error: can't find sdl-config on your system" >&5
16
-		CFLAGS="$CFLAGS `sdl-config --cflags`";
17
-		LIBS="$LIBS `sdl-config --libs`";
18
+		CFLAGS="$CFLAGS `%%SDL_CONFIG%% --cflags`";
19
+		LIBS="$LIBS `%%SDL_CONFIG%% --libs`";
20
 
21
 echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5
22
 echo $ECHO_N "checking for SDL_Init in -lSDL... $ECHO_C" >&6
23
@@ -3111,11 +3111,6 @@
24
 echo "$as_me: error: can't find SDL on your system" >&2;}
25
    { (exit 1); exit 1; }; }
26
 fi
27
-
28
-	else
29
-		{ { echo "$as_me:$LINENO: error: can't find sdl-config on your system" >&5
9
-echo "$as_me: error: can't find sdl-config on your system" >&2;}
30
-echo "$as_me: error: can't find sdl-config on your system" >&2;}
10
-   { (exit 1); exit 1; }; };
31
-   { (exit 1); exit 1; }; };
32
 	fi
33
 	enable_gp2x=false
11
 fi
34
 fi
12
 
13
 
(-)/usr/ports/emulators/gngeo-new/files/pkg-message.in (+14 lines)
Line 0 Link Here
1
###################################################################################################
2
3
1) You need to manually download neogeo-bios or neogeo-unibios. It's available at:
4
5
	-  neogeo-bios	 : http://www.ocf.berkeley.edu/~wwu/downloads/neogeo.zip
6
	-  neogeo-unibios: http://unibios.free.fr/download.html
7
8
   Please keep in mind that the NEOGEO BIOS is copyrighted software.
9
10
2) Choose one and extract the files and place them into %%DATADIR%% directory
11
3) Run gngeo 
12
4) Enjoy it ;)
13
14
###################################################################################################
(-)/usr/ports/emulators/gngeo-new/pkg-plist (-4 lines)
Lines 3-12 Link Here
3
%%DATADIR%%/gui_font.bmp
3
%%DATADIR%%/gui_font.bmp
4
%%DATADIR%%/gui_font2.bmp
4
%%DATADIR%%/gui_font2.bmp
5
%%DATADIR%%/little_font.bmp
5
%%DATADIR%%/little_font.bmp
6
%%DATADIR%%/neo-geo.rom
7
%%DATADIR%%/ng-lo.rom
8
%%DATADIR%%/ng-sfix.rom
9
%%DATADIR%%/ng-sm1.rom
10
%%DATADIR%%/romrc
6
%%DATADIR%%/romrc
11
%%DATADIR%%/sb_arrows.bmp
7
%%DATADIR%%/sb_arrows.bmp
12
%%EXAMPLESDIR%%/gngeorc
8
%%EXAMPLESDIR%%/gngeorc

Return to bug 94023