ports/115187: games/freesynd - Fix install, Respect localbase/cxx

Martin Tournoij carpetsmoker at xs4all.nl
Sat Aug 4 02:20:02 UTC 2007


>Number:         115187
>Category:       ports
>Synopsis:       games/freesynd - Fix install, Respect localbase/cxx
>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:   Sat Aug 04 02:20:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Martin Tournoij
>Release:        FreeBSD 6.2-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD phong.carpetsmoker.net 6.2-RELEASE-p1 FreeBSD 6.2-RELEASE-p1 #0: Thu Feb 22 04:59:07 CET 2007 carpetsmoker at phong.carpetsmoker.net:/usr/obj/new/data/freebsd/src/sys/GENERIC i386

>Description:
intro.mp3 wasn't installed
Respect localbase and cxx

>How-To-Repeat:

>Fix:

--- freesynd.diff begins here ---
diff -urN --exclude CVS /ports/games/freesynd/Makefile freesynd/Makefile
--- /ports/games/freesynd/Makefile	Thu Jul 12 20:51:57 2007
+++ freesynd/Makefile	Sat Aug  4 03:11:41 2007
@@ -7,6 +7,7 @@
 
 PORTNAME=	freesynd
 PORTVERSION=	0.2
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	freesynd
@@ -24,11 +25,17 @@
 
 SUB_FILES=	freesynd.sh
 
+post-patch:
+	@${REINPLACE_CMD} 's|-lpng|-lpng -L${LOCALBASE}/lib|g; \
+		s|g++|${CXX}|g; \
+		s|CXXFLAGS +=|CXXFLAGS=${CXXFLAGS} -DSYSTEM_SDL -DUSE_RWOPS|;' \
+		${WRKSRC}/Makefile
+
 do-install:
 	${MKDIR} ${DATADIR}/data
 	${INSTALL_PROGRAM} ${WRKSRC}/freesynd ${DATADIR}
 	${INSTALL_SCRIPT} ${WRKDIR}/freesynd.sh ${PREFIX}/bin
-	${CP} ${WRKDIR}/${PORTNAME}/assassinate.mp3 ${DATADIR}
+	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/*.mp3 ${DATADIR}
 .for datafile in ${WRKDIR}/${PORTNAME}/data/*
 	${INSTALL_DATA} ${WRKDIR}/${datafile} ${DATADIR}/data
 .endfor
diff -urN --exclude CVS /ports/games/freesynd/pkg-plist freesynd/pkg-plist
--- /ports/games/freesynd/pkg-plist	Sun May 27 23:46:59 2007
+++ freesynd/pkg-plist	Sat Aug  4 03:08:04 2007
@@ -1,5 +1,6 @@
 bin/freesynd.sh
 %%DATADIR%%/assassinate.mp3
+%%DATADIR%%/intro.mp3
 %%DATADIR%%/data/col01.dat
 %%DATADIR%%/data/game01.dat
 %%DATADIR%%/data/game02.dat
--- freesynd.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:
 



More information about the freebsd-ports-bugs mailing list