aboutsummaryrefslogtreecommitdiffstats
path: root/games/freesynd/Makefile
diff options
context:
space:
mode:
authorlme <lme@FreeBSD.org>2007-08-04 19:05:05 +0800
committerlme <lme@FreeBSD.org>2007-08-04 19:05:05 +0800
commitf1c87edd6ce98d4e51408b089386193208758de4 (patch)
tree6dcefe5be61feae61596aeb9b00953cb50156e12 /games/freesynd/Makefile
parent8974c4d3d35bb6eeee23edd7eb355daeac9d4f03 (diff)
downloadfreebsd-ports-gnome-f1c87edd6ce98d4e51408b089386193208758de4.tar.gz
freebsd-ports-gnome-f1c87edd6ce98d4e51408b089386193208758de4.tar.zst
freebsd-ports-gnome-f1c87edd6ce98d4e51408b089386193208758de4.zip
- Respect LOCALBASE and CXX
- Install a missing file PR: ports/115187 Submitted by: Martin Tournoij <carpetsmoker (AT) xs4all.nl> Approved by: miwi (mentor)
Diffstat (limited to 'games/freesynd/Makefile')
-rw-r--r--games/freesynd/Makefile9
1 files changed, 8 insertions, 1 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