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

(-)/kirby/shared/zsnes/Makefile (-11 / +32 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	zsnes
8
PORTNAME=	zsnes
9
PORTVERSION=	1.42
9
PORTVERSION=	1.50
10
PORTREVISION=	4
11
PORTEPOCH=	1
10
PORTEPOCH=	1
12
CATEGORIES=	emulators
11
CATEGORIES=	emulators
13
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
Lines 27-40 Link Here
27
WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src
26
WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src
28
27
29
OPTIONS=	X11	"Enable X11 video driver"	on	\
28
OPTIONS=	X11	"Enable X11 video driver"	on	\
30
		OPENGL	"Enable OpenGL video driver"	off
29
		OPENGL	"Enable OpenGL video driver"	off	\
30
		DEBUGGER	"Enable ZSNES debugger"	on	\
31
		JMA	"Enable JMA support"		on
31
32
33
USE_BZIP2=	yes
32
USE_SDL=	sdl
34
USE_SDL=	sdl
33
USE_GMAKE=	yes
35
USE_GMAKE=	yes
34
GNU_CONFIGURE=	yes
36
GNU_CONFIGURE=	yes
35
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
37
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
36
CONFIGURE_ENV=	CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
38
CONFIGURE_ENV=	CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
37
ALL_TARGET=	ALL
38
39
39
MAN1=		zsnes.1
40
MAN1=		zsnes.1
40
PLIST_FILES=	bin/zsnes
41
PLIST_FILES=	bin/zsnes
Lines 62-75 Link Here
62
CONFIGURE_ARGS+=--disable-opengl
63
CONFIGURE_ARGS+=--disable-opengl
63
.endif
64
.endif
64
65
66
.if defined(WITH_DEBUGGER)
67
CONFIGURE_ARGS+=--enable-debugger
68
.else
69
CONFIGURE_ARGS+=--disable-debugger
70
.endif
71
72
.if defined(WITH_JMA)
73
CONFIGURE_ARGS+=--enable-jma
74
.else
75
CONFIGURE_ARGS+=--disable-jma
76
.endif
77
78
.if defined(PACKAGE_BUILDING)
79
CONFIGURE_ARGS+=--enable-release --disable-cpucheck force_arch=i586
80
.endif
81
82
pre-everything::
83
	@${GREP} "#define ZLIB_VERSION" /usr/include/zlib.h | \
84
		${AWK} '{print substr($$3, 2, length($$3) - 2)}' | \
85
		${SED} 's/\./ /g' | \
86
		${AWK} '{printf("%02d%02d%02d", $$1, $$2, $$3)}' | \
87
		${AWK} '{if ($$1 > 010202) {exit 0} else {exit 1}}'
88
	@if [ 0 -ne $$? ] ; then \
89
		@${ECHO} "This port requires zlib >= 1.2.3" ; \
90
		@${FALSE} ; \
91
	fi
92
65
post-patch:
93
post-patch:
66
	@${REINPLACE_CMD} -e \
67
		's| -pipe||g ; \
68
		 s| -I/usr/local/include||g ; \
69
		 s|^VERSION=1.41|VERSION=${PORTVERSION}|; \
70
		 s| -D__FreeBSD__||g; \
71
		 s| -I/usr/include||g ; \
72
		 s| -O3 .* -s||g' ${WRKSRC}/configure
73
	@${REINPLACE_CMD} -e \
94
	@${REINPLACE_CMD} -e \
74
		's|@CXX@ @CFLAGS@ -o|@CXX@ @CXXFLAGS@ @CPPFLAGS@ -o|g ; \
95
		's|@CXX@ @CFLAGS@ -o|@CXX@ @CXXFLAGS@ @CPPFLAGS@ -o|g ; \
75
		 s|@CC@ @CFLAGS@ -o|@CC@ @CFLAGS@ @CPPFLAGS@ -o|g' \
96
		 s|@CC@ @CFLAGS@ -o|@CC@ @CFLAGS@ @CPPFLAGS@ -o|g' \
(-)/kirby/shared/zsnes/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (zsnes142src.tar.gz) = e3fcc13061e169194ec31c27ace1b6e7
1
MD5 (zsnes150src.tar.bz2) = f0612e27b1c3dd821044525be5cf4450
2
SHA256 (zsnes142src.tar.gz) = f06ef14db8d3fdae9d7c12442a52e535a5feee1cb18c78b51a74ed282ed874be
2
SHA256 (zsnes150src.tar.bz2) = 2ddaaff892d511c717d3e270cc035b208ba2eca04cdf3e749c5739df78ba9aba
3
SIZE (zsnes142src.tar.gz) = 1102840
3
SIZE (zsnes150src.tar.bz2) = 1058671
(-)/kirby/shared/zsnes/files/patch-linux-zfilew.c (-21 lines)
Lines 1-21 Link Here
1
$FreeBSD: ports/emulators/zsnes/files/patch-linux-zfilew.c,v 1.1 2005/06/03 03:13:02 petef Exp $
2
3
--- linux/zfilew.c	Fri Jan 14 06:11:19 2005
4
+++ linux/zfilew.c.new	Thu Jun  2 19:29:43 2005
5
@@ -474,11 +474,12 @@
6
 
7
   if ((homedir = (char *)getenv("HOME")) == 0)
8
   {
9
-    homedir = (char *)malloc(ZCFG_DIR_LEN);
10
-    getcwd(homedir, ZCFG_DIR_LEN);
11
+    getcwd(zcfgdir, ZCFG_DIR_LEN);
12
+  }
13
+  else
14
+  {
15
+    strcpy(zcfgdir, homedir);
16
   }
17
-  strcpy(zcfgdir, homedir);
18
-  free(homedir);
19
   strcat(zcfgdir, ZCFG_DIR);
20
   tmp = opendir(zcfgdir);
21
   if (tmp == NULL) 

Return to bug 107125