diff options
author | Stefan Walter <stefan@FreeBSD.org> | 2007-04-05 12:02:34 +0000 |
---|---|---|
committer | Stefan Walter <stefan@FreeBSD.org> | 2007-04-05 12:02:34 +0000 |
commit | fcc67386dc8b57464ee84d355866cf6a9a91bb30 (patch) | |
tree | 18a6ccf36f97a60f444002b3eb48939288e9bb5d /games/dungeoncrawl/Makefile | |
parent | cca09a5cc05d5bf9bc5d328107204679d8c6ab6c (diff) | |
download | ports-fcc67386dc8b57464ee84d355866cf6a9a91bb30.tar.gz ports-fcc67386dc8b57464ee84d355866cf6a9a91bb30.zip |
Notes
Diffstat (limited to 'games/dungeoncrawl/Makefile')
-rw-r--r-- | games/dungeoncrawl/Makefile | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/games/dungeoncrawl/Makefile b/games/dungeoncrawl/Makefile index 331a4bd49f41..98206b923c87 100644 --- a/games/dungeoncrawl/Makefile +++ b/games/dungeoncrawl/Makefile @@ -16,19 +16,29 @@ MAINTAINER= refugee@vt.edu COMMENT= An old school roguelike game USE_BZIP2= yes - -WRKSRC= ${WRKDIR}/${DISTNAME}/source/ - +WRKSRC= ${WRKDIR}/${DISTNAME}/source MAKEFILE= ${WRKSRC}/makefile.bsd -PLIST_SUB= CRAWLDOCSDIR="${CRAWLDOCSDIR}" +PLIST_FILES= bin/dungeoncrawl +PORTDOCS= buglist.txt crawl.txt +MAN6= dungeoncrawl.6 + +post-patch: + @${REINPLACE_CMD} -e "s|g++|${CXX}|; \ + s|/tmp/CRAWLTEST/testdev|${PREFIX}/bin|; \ + s|crawl|dungeoncrawl|; \ + s|CFLAGS =|CFLAGS=${CXXFLAGS} |;" \ + ${MAKEFILE} -CRAWLDOCSDIR?= share/doc/${PORTNAME} +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/dungeoncrawl ${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/crawl.6 ${PREFIX}/man/man6/dungeoncrawl.6 .if !defined(NOPORTDOCS) -post-install: - @${MKDIR} ${PREFIX}/${CRAWLDOCSDIR} - ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/crawl.txt ${PREFIX}/${CRAWLDOCSDIR} + @${MKDIR} ${DOCSDIR} +.for doc in ${PORTDOCS} + ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/docs/${doc} ${DOCSDIR} +.endfor .endif .include <bsd.port.mk> |