aboutsummaryrefslogtreecommitdiff
path: root/games/drcreep
diff options
context:
space:
mode:
authorAlex Kozlov <ak@FreeBSD.org>2014-05-08 11:44:19 +0000
committerAlex Kozlov <ak@FreeBSD.org>2014-05-08 11:44:19 +0000
commitaf2286f896fe0120ac794d9abd12a1d67115e2e1 (patch)
treef7213f18668cd84329fbfb8d5c765889cd01929e /games/drcreep
parent7a0fcad7f79e5cb4e819fd87eb3540d1a4313111 (diff)
downloadports-af2286f896fe0120ac794d9abd12a1d67115e2e1.tar.gz
ports-af2286f896fe0120ac794d9abd12a1d67115e2e1.zip
- Support STAGEDIR
- While here, remove obsolete OSVERSION check
Notes
Notes: svn path=/head/; revision=353288
Diffstat (limited to 'games/drcreep')
-rw-r--r--games/drcreep/Makefile26
-rw-r--r--games/drcreep/files/extra-patch-src_stdafx.cpp10
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 );