summaryrefslogtreecommitdiff
path: root/games/xspacewarp
diff options
context:
space:
mode:
authorWilliam Grzybowski <wg@FreeBSD.org>2013-11-26 20:37:54 +0000
committerWilliam Grzybowski <wg@FreeBSD.org>2013-11-26 20:37:54 +0000
commit05bef17c55455b02fdaad68cd6e24e58b37d95f6 (patch)
treeb790bafdc682b436cad3006d9f5024fe25421376 /games/xspacewarp
parentUpdate GNU Chess to 6.1.1 (diff)
games/xspacewarp: fix build on current
PR: ports/184227 Submitted by: KATO Tsuguru <tkato432 yahoo.com>
Notes
Notes: svn path=/head/; revision=334970
Diffstat (limited to 'games/xspacewarp')
-rw-r--r--games/xspacewarp/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/games/xspacewarp/Makefile b/games/xspacewarp/Makefile
index c78f9b99f984..280e090efbba 100644
--- a/games/xspacewarp/Makefile
+++ b/games/xspacewarp/Makefile
@@ -5,8 +5,7 @@ PORTNAME= xspacewarp
PORTVERSION= 1.2
PORTREVISION= 2
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_XCONTRIB}
-MASTER_SITE_SUBDIR= games
+MASTER_SITES= XCONTRIB/games
MAINTAINER= ports@FreeBSD.org
COMMENT= Time Trek - like game for X Window System
@@ -19,6 +18,14 @@ PLIST_FILES= bin/xspacewarp \
lib/X11/app-defaults/XSpacewarp
post-extract:
- @${CP} ${WRKSRC}/XSpacewarp.app_def ${WRKSRC}/XSpacewarp.ad
+ @${LN} -sf XSpacewarp.app_def ${WRKSRC}/XSpacewarp.ad
+
+post-patch:
+ @${FIND} ${WRKSRC} -name "*.cc" -or -name "*.hh" | ${XARGS} \
+ ${REINPLACE_CMD} -e \
+ 's|<iostream.h>|<iostream>| ; \
+ s| cerr| std::cerr| ; \
+ s| cout| std::cout| ; \
+ s| endl| std::endl|'
.include <bsd.port.mk>