diff options
author | ak <ak@FreeBSD.org> | 2014-05-08 19:44:19 +0800 |
---|---|---|
committer | ak <ak@FreeBSD.org> | 2014-05-08 19:44:19 +0800 |
commit | 1bc259d08987adfe177e26fe98b066407104db5a (patch) | |
tree | f7213f18668cd84329fbfb8d5c765889cd01929e /games | |
parent | e9fe5577c4dd265e4e1dda04bbd10f8df1b69c93 (diff) | |
download | freebsd-ports-gnome-1bc259d08987adfe177e26fe98b066407104db5a.tar.gz freebsd-ports-gnome-1bc259d08987adfe177e26fe98b066407104db5a.tar.zst freebsd-ports-gnome-1bc259d08987adfe177e26fe98b066407104db5a.zip |
- Support STAGEDIR
- While here, remove obsolete OSVERSION check
Diffstat (limited to 'games')
-rw-r--r-- | games/drcreep/Makefile | 26 | ||||
-rw-r--r-- | games/drcreep/files/extra-patch-src_stdafx.cpp | 10 |
2 files changed, 9 insertions, 27 deletions
diff --git a/games/drcreep/Makefile b/games/drcreep/Makefile index a4ba08eb5c0d..e3ba9b5e8b56 100644 --- a/games/drcreep/Makefile +++ b/games/drcreep/Makefile @@ -18,27 +18,19 @@ WRKSRC= ${WRKDIR}/DrCreep SUB_FILES+= pkg-message -NO_STAGE= yes -.include <bsd.port.pre.mk> - -.if ${OSVERSION} < 801000 -EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_stdafx.cpp -.endif - do-build: - cd ${WRKSRC} && ${CXX} -DFREEBSD -o ${PORTNAME} ${CXXFLAGS} \ + @(cd ${WRKSRC} && ${CXX} -DFREEBSD -o ${PORTNAME} ${CXXFLAGS} \ `${SDL_CONFIG} --cflags --libs` -I./src src/*.cpp src/graphics/*.cpp \ src/graphics/scale/*.cpp src/castle/*.cpp src/castle/objects/*.cpp \ - src/vic-ii/*.cpp src/resid-0.16/*.cpp src/sound/*.cpp -lcompat + src/vic-ii/*.cpp src/resid-0.16/*.cpp src/sound/*.cpp -lcompat) do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - ${MKDIR} ${DATADIR}/data - ${MKDIR} ${DATADIR}/data/castle - ${MKDIR} ${DATADIR}/data/castles - ${MKDIR} ${DATADIR}/data/save + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DATADIR}/data + @${MKDIR} ${STAGEDIR}${DATADIR}/data/castle + @${MKDIR} ${STAGEDIR}${DATADIR}/data/castles + @${MKDIR} ${STAGEDIR}${DATADIR}/data/save - ${INSTALL_DATA} ${WRKSRC}/run/data/char.rom ${DATADIR}/data - @${CAT} ${PKGMESSAGE} + ${INSTALL_DATA} ${WRKSRC}/run/data/char.rom ${STAGEDIR}${DATADIR}/data -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/games/drcreep/files/extra-patch-src_stdafx.cpp b/games/drcreep/files/extra-patch-src_stdafx.cpp deleted file mode 100644 index 982c1a1ae029..000000000000 --- a/games/drcreep/files/extra-patch-src_stdafx.cpp +++ /dev/null @@ -1,10 +0,0 @@ -Index: src/stdafx.cpp -@@ -374,7 +374,7 @@ - - string findType; - --int file_select(const struct dirent *entry) { -+int file_select(struct dirent *entry) { - string name = entry->d_name; - - transform( name.begin(), name.end(), name.begin(), ::toupper ); |