diff options
author | stefan <stefan@FreeBSD.org> | 2007-04-05 20:02:34 +0800 |
---|---|---|
committer | stefan <stefan@FreeBSD.org> | 2007-04-05 20:02:34 +0800 |
commit | 2a61402fb2369d6a166447eb6949d9e0ee8d3632 (patch) | |
tree | 71d25e56aed3c28ddb10df05085a258e37bab9a0 /games/dungeoncrawl | |
parent | 2964c68beb61912a861a2185287cc0a03b939a2d (diff) | |
download | freebsd-ports-gnome-2a61402fb2369d6a166447eb6949d9e0ee8d3632.tar.gz freebsd-ports-gnome-2a61402fb2369d6a166447eb6949d9e0ee8d3632.tar.zst freebsd-ports-gnome-2a61402fb2369d6a166447eb6949d9e0ee8d3632.zip |
- Respect CXX and CXXFLAGS
- Replaced pkg-plist with PLIST_FILES
- Install manpage
- Renamed patches
- Replace patch-aa(makefile.bsd) with sed
PR: 110063
Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
Approved by: maintainer timeout (~4 weeks)
Diffstat (limited to 'games/dungeoncrawl')
-rw-r--r-- | games/dungeoncrawl/Makefile | 26 | ||||
-rw-r--r-- | games/dungeoncrawl/files/patch-aa | 20 | ||||
-rw-r--r-- | games/dungeoncrawl/files/patch-source-AppHdr.cc (renamed from games/dungeoncrawl/files/patch-ba) | 0 | ||||
-rw-r--r-- | games/dungeoncrawl/files/patch-source-religion.cc (renamed from games/dungeoncrawl/files/patch-ca) | 0 | ||||
-rw-r--r-- | games/dungeoncrawl/pkg-plist | 3 |
5 files changed, 18 insertions, 31 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> diff --git a/games/dungeoncrawl/files/patch-aa b/games/dungeoncrawl/files/patch-aa deleted file mode 100644 index 40d6c4818944..000000000000 --- a/games/dungeoncrawl/files/patch-aa +++ /dev/null @@ -1,20 +0,0 @@ ---- makefile.bsd.orig Thu Feb 27 22:39:20 2003 -+++ makefile.bsd Thu Feb 27 23:27:25 2003 -@@ -1,7 +1,7 @@ - # -*- Makefile -*- for Dungeon Crawl (linux) - - #APPNAME = crawl --GAME = crawl -+GAME = dungeoncrawl - - # this file contains a list of the libraries. - # it will make a variable called OBJECTS that contains all the libraries -@@ -17,7 +17,7 @@ - LDFLAGS = -static -L/usr/lib - MCHMOD = 711 - # INSTALLDIR = /usr/games --INSTALLDIR = /tmp/CRAWLTEST/testdev -+INSTALLDIR = ${PREFIX}/bin - LIB = -lncurses - - # Include for Linux diff --git a/games/dungeoncrawl/files/patch-ba b/games/dungeoncrawl/files/patch-source-AppHdr.cc index 2a60fd5422ab..2a60fd5422ab 100644 --- a/games/dungeoncrawl/files/patch-ba +++ b/games/dungeoncrawl/files/patch-source-AppHdr.cc diff --git a/games/dungeoncrawl/files/patch-ca b/games/dungeoncrawl/files/patch-source-religion.cc index 4a755ebf0692..4a755ebf0692 100644 --- a/games/dungeoncrawl/files/patch-ca +++ b/games/dungeoncrawl/files/patch-source-religion.cc diff --git a/games/dungeoncrawl/pkg-plist b/games/dungeoncrawl/pkg-plist deleted file mode 100644 index 63f1ffe9db69..000000000000 --- a/games/dungeoncrawl/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -bin/dungeoncrawl -%%PORTDOCS%%%%CRAWLDOCSDIR%%/crawl.txt -%%PORTDOCS%%@dirrm %%CRAWLDOCSDIR%% |