aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-11-27 04:37:54 +0800
committerwg <wg@FreeBSD.org>2013-11-27 04:37:54 +0800
commite3eb348cb6e525494d34b6cd9fa0f021d77e1336 (patch)
treeb790bafdc682b436cad3006d9f5024fe25421376
parent6aa6e794c4af2d5d8b2953cc4842b03d4306ff62 (diff)
downloadfreebsd-ports-gnome-e3eb348cb6e525494d34b6cd9fa0f021d77e1336.tar.gz
freebsd-ports-gnome-e3eb348cb6e525494d34b6cd9fa0f021d77e1336.tar.zst
freebsd-ports-gnome-e3eb348cb6e525494d34b6cd9fa0f021d77e1336.zip
games/xspacewarp: fix build on current
PR: ports/184227 Submitted by: KATO Tsuguru <tkato432 yahoo.com>
-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>