ports/178160: emulators/sness9express: Fix build
KATO Tsuguru
tkato432 at yahoo.com
Sun Aug 18 18:10:07 UTC 2013
The following reply was made to PR ports/178160; it has been noted by GNATS.
From: KATO Tsuguru <tkato432 at yahoo.com>
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: ports/178160: emulators/sness9express: Fix build
Date: Mon, 19 Aug 2013 02:51:02 +0900
This is a multi-part message in MIME format.
--Multipart=_Mon__19_Aug_2013_02_51_02_+0900_C1Q1x.1EsBHxC/Bf
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Remake of the patch against current tree.
--Multipart=_Mon__19_Aug_2013_02_51_02_+0900_C1Q1x.1EsBHxC/Bf
Content-Type: text/x-diff;
name="emulators_snes9express.diff"
Content-Disposition: attachment;
filename="emulators_snes9express.diff"
Content-Transfer-Encoding: 7bit
diff -urN /usr/ports/emulators/snes9express/Makefile emulators/snes9express/Makefile
--- /usr/ports/emulators/snes9express/Makefile 2013-08-15 22:34:59.000000000 +0900
+++ emulators/snes9express/Makefile 2013-08-19 00:00:00.000000000 +0900
@@ -1,9 +1,5 @@
-# New ports collection makefile for: snes9express
-# Date created: 15 Mar 2004
-# Whom: Travis Poppe <tlp at liquidx.org>
-#
+# Created by: Travis Poppe <tlp at liquidx.org>
# $FreeBSD: head/emulators/snes9express/Makefile 324744 2013-08-14 22:35:50Z ak $
-#
PORTNAME= snes9express
PORTVERSION= 1.43
@@ -14,39 +10,44 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= GTK interface for snes9x
+LICENSE= GPLv2 # (or later)
+
RUN_DEPENDS= snes9x:${PORTSDIR}/emulators/snes9x
+OPTIONS_DEFINE= DOCS
+
USE_GNOME= gtk20
USES= gettext
GNU_CONFIGURE= yes
-BROKEN= does not build
-
PORTDOCS= AUTHORS ChangeLog NEWS README
PLIST_FILES= bin/${PORTNAME} \
%%DATADIR%%/snes.s9xskin \
%%DATADIR%%/snsp.s9xskin
PLIST_DIRS= %%DATADIR%%
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "sparc64"
+BROKEN= Does not compile on sparc64
+.endif
+
post-patch:
- @${REINPLACE_CMD} -e 's|<endian\.h>|<sys/endian.h>|' \
- ${WRKSRC}/s9xskin.cc
+ @${REINPLACE_CMD} -e \
+ 's|(gzFile\*)|| ; \
+ s|\*fptr;|fptr;|' ${WRKSRC}/rom.cc
+ @${REINPLACE_CMD} -e \
+ 's|<endian\.h>|<sys/endian.h>|' ${WRKSRC}/s9xskin.cc
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin)
@${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/*.s9xskin ${DATADIR}
-.if !defined(NOPORTDOCS)
+ (cd ${WRKSRC} && ${INSTALL_DATA} *.s9xskin ${DATADIR})
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
-.for file in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.for i in ${PORTDOCS}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
.endfor
.endif
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "sparc64"
-BROKEN= Does not compile on sparc64
-.endif
-
.include <bsd.port.post.mk>
--Multipart=_Mon__19_Aug_2013_02_51_02_+0900_C1Q1x.1EsBHxC/Bf--
More information about the freebsd-ports-bugs
mailing list