Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2014 03:05:32 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/186736: games/dungeoncrawl: Fix build on -current
Message-ID:  <20140214030532.e51e5e41370e2ab4d988f354@yahoo.com>
Resent-Message-ID: <201402131840.s1DIe1MM017339@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         186736
>Category:       ports
>Synopsis:       games/dungeoncrawl: Fix build on -current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 13 18:40:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p7 i386
>Organization:
>Environment:
>Description:
- Fix build on -current
- Update MASTER_SITES

New file:
files/patch-effects.cc
files/patch-it_use3.cc
files/patch-randart.cc
files/patch-tags.cc

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/games/dungeoncrawl/Makefile games/dungeoncrawl/Makefile
--- /usr/ports/games/dungeoncrawl/Makefile	2014-02-05 19:37:51.000000000 +0900
+++ games/dungeoncrawl/Makefile	2014-02-14 00:00:00.000000000 +0900
@@ -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>
diff -urN /usr/ports/games/dungeoncrawl/files/patch-effects.cc games/dungeoncrawl/files/patch-effects.cc
--- /usr/ports/games/dungeoncrawl/files/patch-effects.cc	1970-01-01 09:00:00.000000000 +0900
+++ games/dungeoncrawl/files/patch-effects.cc	2014-02-14 00:00:00.000000000 +0900
@@ -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"
+ 
diff -urN /usr/ports/games/dungeoncrawl/files/patch-it_use3.cc games/dungeoncrawl/files/patch-it_use3.cc
--- /usr/ports/games/dungeoncrawl/files/patch-it_use3.cc	1970-01-01 09:00:00.000000000 +0900
+++ games/dungeoncrawl/files/patch-it_use3.cc	2014-02-14 00:00:00.000000000 +0900
@@ -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"
+ 
diff -urN /usr/ports/games/dungeoncrawl/files/patch-randart.cc games/dungeoncrawl/files/patch-randart.cc
--- /usr/ports/games/dungeoncrawl/files/patch-randart.cc	1970-01-01 09:00:00.000000000 +0900
+++ games/dungeoncrawl/files/patch-randart.cc	2014-02-14 00:00:00.000000000 +0900
@@ -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"
diff -urN /usr/ports/games/dungeoncrawl/files/patch-tags.cc games/dungeoncrawl/files/patch-tags.cc
--- /usr/ports/games/dungeoncrawl/files/patch-tags.cc	1970-01-01 09:00:00.000000000 +0900
+++ games/dungeoncrawl/files/patch-tags.cc	2014-02-14 00:00:00.000000000 +0900
@@ -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
diff -urN /usr/ports/games/dungeoncrawl/pkg-descr games/dungeoncrawl/pkg-descr
--- /usr/ports/games/dungeoncrawl/pkg-descr	2014-01-23 05:18:00.000000000 +0900
+++ games/dungeoncrawl/pkg-descr	2014-02-14 00:00:00.000000000 +0900
@@ -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/
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140214030532.e51e5e41370e2ab4d988f354>