aboutsummaryrefslogtreecommitdiff
path: root/games/freesynd
diff options
context:
space:
mode:
authorLars Engels <lme@FreeBSD.org>2007-08-04 11:05:05 +0000
committerLars Engels <lme@FreeBSD.org>2007-08-04 11:05:05 +0000
commit1801b670c701fdae8dc30797a34d61fb02d6201d (patch)
tree7e43422bd9018f9a226f107bcc186266023d21e9 /games/freesynd
parentdc3f8b6d38421fae2e97bb99526dd475df8df978 (diff)
downloadports-1801b670c701fdae8dc30797a34d61fb02d6201d.tar.gz
ports-1801b670c701fdae8dc30797a34d61fb02d6201d.zip
Notes
Diffstat (limited to 'games/freesynd')
-rw-r--r--games/freesynd/Makefile9
-rw-r--r--games/freesynd/pkg-plist2
2 files changed, 9 insertions, 2 deletions
diff --git a/games/freesynd/Makefile b/games/freesynd/Makefile
index d336defb3b9f..4f1033ceef14 100644
--- a/games/freesynd/Makefile
+++ b/games/freesynd/Makefile
@@ -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 @@ WRKSRC= ${WRKDIR}/${PORTNAME}/src
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 --git a/games/freesynd/pkg-plist b/games/freesynd/pkg-plist
index 6761c9921a5c..37980d860f11 100644
--- a/games/freesynd/pkg-plist
+++ b/games/freesynd/pkg-plist
@@ -384,6 +384,6 @@ bin/freesynd.sh
%%DATADIR%%/data/sound-1.tab
%%DATADIR%%/data/syngame.xmi
%%DATADIR%%/freesynd
+%%DATADIR%%/intro.mp3
@dirrm %%DATADIR%%/data
@dirrm %%DATADIR%%
-@dirrm share/freesynd