summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorStefan Walter <stefan@FreeBSD.org>2007-04-05 12:02:34 +0000
committerStefan Walter <stefan@FreeBSD.org>2007-04-05 12:02:34 +0000
commitfcc67386dc8b57464ee84d355866cf6a9a91bb30 (patch)
tree18a6ccf36f97a60f444002b3eb48939288e9bb5d /games
parent- Update to 1.22 (diff)
- 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)
Notes
Notes: svn path=/head/; revision=189279
Diffstat (limited to 'games')
-rw-r--r--games/dungeoncrawl/Makefile26
-rw-r--r--games/dungeoncrawl/files/patch-aa20
-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-plist3
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%%