ports/76544: Update port: emulators/zsnes to 1.42
KATO Tsuguru
tkato432 at yahoo.com
Fri Jan 21 18:10:24 UTC 2005
>Number: 76544
>Category: ports
>Synopsis: Update port: emulators/zsnes to 1.42
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jan 21 18:10:21 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 4.10-RELEASE-p5 i386
>Organization:
>Environment:
>Description:
- Update to version 1.42
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/emulators/zsnes/Makefile emulators/zsnes/Makefile
--- /usr/ports/emulators/zsnes/Makefile Fri Dec 31 19:34:04 2004
+++ emulators/zsnes/Makefile Fri Jan 21 02:39:11 2005
@@ -6,8 +6,7 @@
#
PORTNAME= zsnes
-PORTVERSION= 1.40
-PORTEPOCH= 1
+PORTVERSION= 1.42
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -20,27 +19,40 @@
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
-USE_SDL= sdl
-USE_X_PREFIX= yes
-USE_GMAKE= yes
+# non-portable, for a portable emulator see emulators/snes9x
+ONLY_FOR_ARCHS= i386
-CFLAGS+= -I${X11BASE}/include
+WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src
-WANT_AUTOCONF_VER= 259
-WANT_AUTOMAKE_VER= 15
+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
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
-
-GNU_CONFIGURE= yes
-ALL_TARGET= ALL
+CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include
+LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
-pre-configure:
- cd ${WRKSRC}; ${SH} ${ACLOCAL}; ${SH} ${AUTOCONF}
+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 -urN /usr/ports/emulators/zsnes/distinfo emulators/zsnes/distinfo
--- /usr/ports/emulators/zsnes/distinfo Fri Dec 31 19:34:04 2004
+++ emulators/zsnes/distinfo Fri Jan 21 02:18:56 2005
@@ -1,2 +1,2 @@
-MD5 (zsnes140src.tar.gz) = 770afa48055722e76574841ca5976126
-SIZE (zsnes140src.tar.gz) = 1062598
+MD5 (zsnes142src.tar.gz) = e3fcc13061e169194ec31c27ace1b6e7
+SIZE (zsnes142src.tar.gz) = 1102840
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list