1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

- Fix build on -current

- Update MASTER_SITES

PR:		186736
Submitted by:	Ports FUry
This commit is contained in:
Martin Wilke 2014-02-27 09:16:22 +00:00
parent c6efd5d16d
commit b959465933
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346291
6 changed files with 70 additions and 24 deletions

View File

@ -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>

View File

@ -0,0 +1,10 @@
--- effects.cc.orig
+++ effects.cc
@@ -13,6 +13,7 @@
#include <string.h>
#include <stdio.h>
+#include <stdlib.h>
#include "externs.h"

View File

@ -0,0 +1,10 @@
--- it_use3.cc.orig
+++ it_use3.cc
@@ -15,6 +15,7 @@
#include "it_use3.h"
#include <string.h>
+#include <stdlib.h>
#include "externs.h"

View File

@ -0,0 +1,10 @@
--- randart.cc.orig
+++ randart.cc
@@ -17,6 +17,7 @@
#include <string.h>
#include <stdio.h>
+#include <stdlib.h>
#include "externs.h"
#include "itemname.h"

View File

@ -0,0 +1,10 @@
--- tags.cc.orig
+++ tags.cc
@@ -54,6 +54,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h> // for memcpy
#ifdef LINUX

View File

@ -1,8 +1,10 @@
Linley's Dungeon Crawl is a free and portable roguelike molded in the tradition
of the early greats of the genre: Rogue, Hack, and Moria.
Linley's Dungeon Crawl is a free and portable roguelike molded in the
tradition of the early greats of the genre: Rogue, Hack, and Moria.
The player guides a single character deep into a subterranean complex
to retrieve the Orb of Zot, fending off many horrible and hideous creatures
along the way. Once retrieved, the player must return both character and Orb
safely to the surface world. Easier said than done, but fun all the same.
to retrieve the Orb of Zot, fending off many horrible and hideous
creatures along the way. Once retrieved, the player must return both
character and Orb safely to the surface world. Easier said than done,
but fun all the same.
WWW: http://www.dungeoncrawl.org/