aboutsummaryrefslogtreecommitdiff
path: root/games/dungeoncrawl/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2014-02-27 09:16:22 +0000
committerMartin Wilke <miwi@FreeBSD.org>2014-02-27 09:16:22 +0000
commitb9594659331b70b27540349d802f23a172b6cc10 (patch)
treea1d516f9769b84b5b94097090abec92b8ad3570d /games/dungeoncrawl/Makefile
parentc6efd5d16d9c67d3cb0d5418bf86ee7c73ba80f1 (diff)
- Fix build on -current
- Update MASTER_SITES PR: 186736 Submitted by: Ports FUry
Notes
Notes: svn path=/head/; revision=346291
Diffstat (limited to 'games/dungeoncrawl/Makefile')
-rw-r--r--games/dungeoncrawl/Makefile42
1 files changed, 23 insertions, 19 deletions
diff --git a/games/dungeoncrawl/Makefile b/games/dungeoncrawl/Makefile
index a5360a967445..4c8853d9585c 100644
--- a/games/dungeoncrawl/Makefile
+++ b/games/dungeoncrawl/Makefile
@@ -4,38 +4,42 @@
PORTNAME= dungeoncrawl
PORTVERSION= 4.0.0.b26
CATEGORIES= games
-MASTER_SITES= ftp://ftp.dungeoncrawl.org/dev/4.0.x/src/
+MASTER_SITES= ftp://ftp.dungeoncrawl.org/dev/4.0.x/src/ \
+ http://www.sourcefiles.org/Games/Role_Play/
DISTNAME= dc${PORTVERSION:S/.//g}-src
EXTRACT_SUFX= .tbz2
MAINTAINER= ports@FreeBSD.org
-COMMENT= An old school roguelike game
+COMMENT= Old school roguelike game
+
+WRKSRC_SUBDIR= source
USE_BZIP2= yes
-WRKSRC= ${WRKDIR}/${DISTNAME}/source
-MAKEFILE= ${WRKSRC}/makefile.bsd
+USES= ncurses
+MAKEFILE= makefile.bsd
-PLIST_FILES= bin/dungeoncrawl
PORTDOCS= buglist.txt crawl.txt
-MAN6= dungeoncrawl.6
+PLIST_FILES= bin/dungeoncrawl man/man6/dungeoncrawl.6.gz
-NO_STAGE= yes
post-patch:
- @${REINPLACE_CMD} -e "s|g++|${CXX}|; \
- s|/tmp/CRAWLTEST/testdev|${PREFIX}/bin|; \
- s|crawl|dungeoncrawl|; \
- s|CFLAGS =|CFLAGS=${CXXFLAGS} |;" \
- ${MAKEFILE}
+ @${REINPLACE_CMD} -e \
+ 's|^CXX =|CXX ?=| ; \
+ s|^CFLAGS =|CXXFLAGS +=| ; \
+ s|^LDFLAGS =|# &| ; \
+ s|^INSTALLDIR =|# &| ; \
+ s|^INCLUDES =|# &| ; \
+ s|$$(CFLAGS)|$$(CXXFLAGS)| ; \
+ s|$${CFLAGS}|$${CXXFLAGS}|' ${WRKSRC}/${MAKEFILE}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/dungeoncrawl ${PREFIX}/bin/
- ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/crawl.6 ${PREFIX}/man/man6/dungeoncrawl.6
-
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} crawl \
+ ${STAGEDIR}${PREFIX}/bin/dungeoncrawl)
+ (cd ${WRKSRC}/../docs && ${INSTALL_MAN} crawl.6 \
+ ${STAGEDIR}${MANPREFIX}/man/man6/dungeoncrawl.6)
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/docs/${doc} ${DOCSDIR}
+ (cd ${WRKSRC}/../docs && ${INSTALL_DATA} ${doc} \
+ ${STAGEDIR}${DOCSDIR})
.endfor
-.endif
.include <bsd.port.mk>