Bug 178160

Summary: emulators/sness9express: Fix build
Product: Ports & Packages Reporter: tkato432
Component: Individual Port(s)Assignee: Alex Kozlov <ak>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
emulators_snes9express.diff none

Description tkato432 2013-04-25 19:10:04 UTC
- Fix build
Comment 1 tkato432 2013-08-18 18:51:02 UTC
Remake of the patch against current tree.
Comment 2 Alex Kozlov freebsd_committer freebsd_triage 2013-10-14 12:20:33 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ak

I'll take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-10-14 12:20:58 UTC
Author: ak
Date: Mon Oct 14 11:20:46 2013
New Revision: 330298
URL: http://svnweb.freebsd.org/changeset/ports/330298

Log:
  - Unbreak build [1]
  - Support STAGEDIR
  
  PR:	ports/178160 (based on) [1]
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/emulators/snes9express/Makefile

Modified: head/emulators/snes9express/Makefile
==============================================================================
--- head/emulators/snes9express/Makefile	Mon Oct 14 11:10:43 2013	(r330297)
+++ head/emulators/snes9express/Makefile	Mon Oct 14 11:20:46 2013	(r330298)
@@ -10,13 +10,15 @@ MASTER_SITES=	SF
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	GTK interface for snes9x
 
+LICENSE=	GPLv2 # (or later)
+
 RUN_DEPENDS=	snes9x:${PORTSDIR}/emulators/snes9x
 
 USE_GNOME=	gtk20
-USES=		gettext
+USES=		gettext pkgconfig
 GNU_CONFIGURE=	yes
 
-BROKEN=		does not build
+BROKEN_sparc64=	does not compile on sparc64
 
 PORTDOCS=	AUTHORS ChangeLog NEWS README
 PLIST_FILES=	bin/${PORTNAME} \
@@ -24,26 +26,20 @@ PLIST_FILES=	bin/${PORTNAME} \
 		%%DATADIR%%/snsp.s9xskin
 PLIST_DIRS=	%%DATADIR%%
 
-NO_STAGE=	yes
+# fix build with clang
+CFLAGS+= -Wno-return-type
+
 post-patch:
+	@${REINPLACE_CMD} -e 's|(gzFile\*)||' \
+					-e '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
-	@${MKDIR} ${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/*.s9xskin ${DATADIR}
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-.for file in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.endif
-
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "sparc64"
-BROKEN=		Does not compile on sparc64
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/*.s9xskin ${STAGEDIR}${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Alex Kozlov freebsd_committer freebsd_triage 2013-10-14 12:21:00 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!