svn commit: r346291 - in head/games/dungeoncrawl: . files

Martin Wilke miwi at FreeBSD.org
Thu Feb 27 09:16:23 UTC 2014


Author: miwi
Date: Thu Feb 27 09:16:22 2014
New Revision: 346291
URL: http://svnweb.freebsd.org/changeset/ports/346291
QAT: https://qat.redports.org/buildarchive/r346291/

Log:
  - Fix build on -current
  - Update MASTER_SITES
  
  PR:		186736
  Submitted by:	Ports FUry

Added:
  head/games/dungeoncrawl/files/patch-effects.cc   (contents, props changed)
  head/games/dungeoncrawl/files/patch-it_use3.cc   (contents, props changed)
  head/games/dungeoncrawl/files/patch-randart.cc   (contents, props changed)
  head/games/dungeoncrawl/files/patch-tags.cc   (contents, props changed)
Modified:
  head/games/dungeoncrawl/Makefile
  head/games/dungeoncrawl/pkg-descr

Modified: head/games/dungeoncrawl/Makefile
==============================================================================
--- head/games/dungeoncrawl/Makefile	Thu Feb 27 09:15:03 2014	(r346290)
+++ head/games/dungeoncrawl/Makefile	Thu Feb 27 09:16:22 2014	(r346291)
@@ -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 at 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>

Added: head/games/dungeoncrawl/files/patch-effects.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/dungeoncrawl/files/patch-effects.cc	Thu Feb 27 09:16:22 2014	(r346291)
@@ -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"
+ 

Added: head/games/dungeoncrawl/files/patch-it_use3.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/dungeoncrawl/files/patch-it_use3.cc	Thu Feb 27 09:16:22 2014	(r346291)
@@ -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"
+ 

Added: head/games/dungeoncrawl/files/patch-randart.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/dungeoncrawl/files/patch-randart.cc	Thu Feb 27 09:16:22 2014	(r346291)
@@ -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"

Added: head/games/dungeoncrawl/files/patch-tags.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/dungeoncrawl/files/patch-tags.cc	Thu Feb 27 09:16:22 2014	(r346291)
@@ -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

Modified: head/games/dungeoncrawl/pkg-descr
==============================================================================
--- head/games/dungeoncrawl/pkg-descr	Thu Feb 27 09:15:03 2014	(r346290)
+++ head/games/dungeoncrawl/pkg-descr	Thu Feb 27 09:16:22 2014	(r346291)
@@ -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/


More information about the svn-ports-head mailing list