aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2005-01-22 03:39:11 +0800
committerkrion <krion@FreeBSD.org>2005-01-22 03:39:11 +0800
commit475f6278e99ff8532fb5fccf63354bbd46a95e77 (patch)
tree60a7a5510128e28d1da5215b9026f4749a228cd4 /emulators
parent51d86a951239f46c5593ccc4749c3b77a54a2214 (diff)
downloadfreebsd-ports-gnome-475f6278e99ff8532fb5fccf63354bbd46a95e77.tar.gz
freebsd-ports-gnome-475f6278e99ff8532fb5fccf63354bbd46a95e77.tar.zst
freebsd-ports-gnome-475f6278e99ff8532fb5fccf63354bbd46a95e77.zip
Update to version 1.42
PR: ports/76544 Submitted by: Ports Fury
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