aboutsummaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2005-01-21 19:39:11 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2005-01-21 19:39:11 +0000
commit4a8656a296a36f0178314ebcb2d04d633374c24f (patch)
treebe353c4aa47f51e48e64e3cecf0c6911f33c6272 /emulators
parent64aa7ddc56e07f454359bf272a71b2f2382cbb6e (diff)
downloadports-4a8656a296a36f0178314ebcb2d04d633374c24f.tar.gz
ports-4a8656a296a36f0178314ebcb2d04d633374c24f.zip
Notes
Diffstat (limited to 'emulators')
-rw-r--r--emulators/zsnes/Makefile47
-rw-r--r--emulators/zsnes/distinfo4
2 files changed, 32 insertions, 19 deletions
diff --git a/emulators/zsnes/Makefile b/emulators/zsnes/Makefile
index d5eed1a390a2..e5355f4fb097 100644
--- a/emulators/zsnes/Makefile
+++ b/emulators/zsnes/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= zsnes
-PORTVERSION= 1.40
+PORTVERSION= 1.42
PORTEPOCH= 1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@@ -20,27 +20,40 @@ COMMENT= Intel x86 only Super Nintendo Entertainment System (SNES) Emulator
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
-USE_SDL= sdl
-USE_X_PREFIX= yes
-USE_GMAKE= yes
-
-CFLAGS+= -I${X11BASE}/include
-
-WANT_AUTOCONF_VER= 259
-WANT_AUTOMAKE_VER= 15
-
-MAN1= zsnes.1
-PLIST_FILES= bin/zsnes
-
# non-portable, for a portable emulator see emulators/snes9x
ONLY_FOR_ARCHS= i386
-WRKSRC= ${WRKDIR}/${PORTNAME}_1_40/src
+WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src
-GNU_CONFIGURE= yes
+USE_X_PREFIX= yes
+USE_SDL= sdl
+USE_GL= yes
+USE_REINPLACE= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yyes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
ALL_TARGET= ALL
-pre-configure:
- cd ${WRKSRC}; ${SH} ${ACLOCAL}; ${SH} ${AUTOCONF}
+MAN1= zsnes.1
+PLIST_FILES= bin/zsnes
+
+CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include
+LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's| -pipe||g ; \
+ s| -I/usr/local/include||g ; \
+ s| -I/usr/include||g ; \
+ s| -O3 .* -s||g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e \
+ 's|@CXX@ @CFLAGS@ -o|@CXX@ @CXXFLAGS@ @CPPFLAGS@ -o|g ; \
+ s|@CC@ @CFLAGS@ -o|@CC@ @CFLAGS@ @CPPFLAGS@ -o|g' \
+ ${WRKSRC}/Makefile.in
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/zsnes ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/linux/zsnes.1 ${MANPREFIX}/man/man1
.include <bsd.port.mk>
diff --git a/emulators/zsnes/distinfo b/emulators/zsnes/distinfo
index 8f56dbc06719..fd45a4eea0a3 100644
--- a/emulators/zsnes/distinfo
+++ b/emulators/zsnes/distinfo
@@ -1,2 +1,2 @@
-MD5 (zsnes140src.tar.gz) = 770afa48055722e76574841ca5976126
-SIZE (zsnes140src.tar.gz) = 1062598
+MD5 (zsnes142src.tar.gz) = e3fcc13061e169194ec31c27ace1b6e7
+SIZE (zsnes142src.tar.gz) = 1102840