games/xspacewarp: fix build on current

PR:		ports/184227
Submitted by:	KATO Tsuguru <tkato432 yahoo.com>
This commit is contained in:
William Grzybowski 2013-11-26 20:37:54 +00:00
parent 3e909c9747
commit 05bef17c55
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334970

View file

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