diff options
author | lme <lme@FreeBSD.org> | 2013-09-28 23:35:08 +0800 |
---|---|---|
committer | lme <lme@FreeBSD.org> | 2013-09-28 23:35:08 +0800 |
commit | aec092bb9874549a0e9bb11ceff4dac8e201b4f8 (patch) | |
tree | a39ad821a4975bb35ea93c7f7f1db6e7cb09890a | |
parent | c734b61033d1b7915d5375a734f5fd67d130f104 (diff) | |
download | freebsd-ports-gnome-aec092bb9874549a0e9bb11ceff4dac8e201b4f8.tar.gz freebsd-ports-gnome-aec092bb9874549a0e9bb11ceff4dac8e201b4f8.tar.zst freebsd-ports-gnome-aec092bb9874549a0e9bb11ceff4dac8e201b4f8.zip |
- Fix build on HEAD [1]
- Use new LIB_DEPENDS format
- USES gmake
- Stagify
- Use dirrmtry instead of dirrm
Submitted by: ed [1]
-rw-r--r-- | games/freesynd/Makefile | 15 | ||||
-rw-r--r-- | games/freesynd/files/patch-dump.cpp | 10 | ||||
-rw-r--r-- | games/freesynd/files/patch-dumpmaps.cpp | 10 | ||||
-rw-r--r-- | games/freesynd/pkg-plist | 4 |
4 files changed, 29 insertions, 10 deletions
diff --git a/games/freesynd/Makefile b/games/freesynd/Makefile index de17891069f1..3a6a91f33a51 100644 --- a/games/freesynd/Makefile +++ b/games/freesynd/Makefile @@ -10,9 +10,9 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} MAINTAINER= lme@FreeBSD.org COMMENT= FreeSynd GPLed reimplementation of the classic Bullfrog game Syndicate -LIB_DEPENDS= png15:${PORTSDIR}/graphics/png +LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png -USE_GMAKE= yes +USES= gmake USE_ZIP= yes USE_SDL= sdl mixer @@ -20,7 +20,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}/src SUB_FILES= freesynd.sh -NO_STAGE= yes post-patch: @${REINPLACE_CMD} 's|-lpng|-lpng -L${LOCALBASE}/lib|g; \ s|g++|${CXX}|g; \ @@ -28,12 +27,12 @@ post-patch: ${WRKSRC}/Makefile do-install: - ${MKDIR} ${DATADIR}/data - ${INSTALL_PROGRAM} ${WRKSRC}/freesynd ${DATADIR} - ${INSTALL_SCRIPT} ${WRKDIR}/freesynd.sh ${PREFIX}/bin - ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/*.mp3 ${DATADIR} + ${MKDIR} ${STAGEDIR}${DATADIR}/data + ${INSTALL_PROGRAM} ${WRKSRC}/freesynd ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKDIR}/freesynd.sh ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/*.mp3 ${STAGEDIR}${DATADIR} .for datafile in ${WRKDIR}/${PORTNAME}/data/* - ${INSTALL_DATA} ${WRKDIR}/${datafile} ${DATADIR}/data + ${INSTALL_DATA} ${WRKDIR}/${datafile} ${STAGEDIR}${DATADIR}/data .endfor .include <bsd.port.mk> diff --git a/games/freesynd/files/patch-dump.cpp b/games/freesynd/files/patch-dump.cpp new file mode 100644 index 000000000000..33d907e378ca --- /dev/null +++ b/games/freesynd/files/patch-dump.cpp @@ -0,0 +1,10 @@ +--- dump.cpp.orig 2013-09-28 17:25:56.240863970 +0200 ++++ dump.cpp 2013-09-28 17:25:38.414006911 +0200 +@@ -5,6 +5,7 @@ + #include <png.h> + #include <sys/stat.h> + #include <sys/types.h> ++#include <stdlib.h> + + class App : public Singleton < App > { + public: diff --git a/games/freesynd/files/patch-dumpmaps.cpp b/games/freesynd/files/patch-dumpmaps.cpp new file mode 100644 index 000000000000..b3c9335d31df --- /dev/null +++ b/games/freesynd/files/patch-dumpmaps.cpp @@ -0,0 +1,10 @@ +--- dumpmaps.cpp.orig 2013-09-28 17:26:05.102862359 +0200 ++++ dumpmaps.cpp 2013-09-28 17:26:14.860038673 +0200 +@@ -5,6 +5,7 @@ + #include <png.h> + #include <sys/stat.h> + #include <sys/types.h> ++#include <stdlib.h> + + class App : public Singleton < App > { + public: diff --git a/games/freesynd/pkg-plist b/games/freesynd/pkg-plist index 37980d860f11..26e03861e276 100644 --- a/games/freesynd/pkg-plist +++ b/games/freesynd/pkg-plist @@ -385,5 +385,5 @@ bin/freesynd.sh %%DATADIR%%/data/syngame.xmi %%DATADIR%%/freesynd %%DATADIR%%/intro.mp3 -@dirrm %%DATADIR%%/data -@dirrm %%DATADIR%% +@dirrmtry %%DATADIR%%/data +@dirrmtry %%DATADIR%% |