Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Apr 2013 02:56:31 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/178160: emulators/sness9express: Fix build
Message-ID:  <20130426025631.2798d49cad32caf1af49ccb5@yahoo.com>
Resent-Message-ID: <201304251810.r3PIA4hY057409@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@liquidx.org>
-#
+# Created by: Travis Poppe <tlp@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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130426025631.2798d49cad32caf1af49ccb5>