ports/178160: emulators/sness9express: Fix build
KATO Tsuguru
tkato432 at yahoo.com
Thu Apr 25 18:10:04 UTC 2013
>Number: 178160
>Category: ports
>Synopsis: emulators/sness9express: Fix build
>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: Thu Apr 25 18:10:04 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.4-RELEASE-p11 i386
>Organization:
>Environment:
>Description:
- Fix build
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/emulators/snes9express/Makefile emulators/snes9express/Makefile
--- /usr/ports/emulators/snes9express/Makefile 2013-04-25 05:21:58.000000000 +0900
+++ emulators/snes9express/Makefile 2013-04-26 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 316464 2013-04-24 18:10:30Z ak $
-#
PORTNAME= snes9express
PORTVERSION= 1.43
@@ -14,40 +10,45 @@
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
MAKE_JOBS_SAFE= 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>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list