svn commit: r334970 - head/games/xspacewarp

William Grzybowski wg at FreeBSD.org
Tue Nov 26 20:37:54 UTC 2013


Author: wg
Date: Tue Nov 26 20:37:54 2013
New Revision: 334970
URL: http://svnweb.freebsd.org/changeset/ports/334970

Log:
  games/xspacewarp: fix build on current
  
  PR:		ports/184227
  Submitted by:	KATO Tsuguru <tkato432 yahoo.com>

Modified:
  head/games/xspacewarp/Makefile

Modified: head/games/xspacewarp/Makefile
==============================================================================
--- head/games/xspacewarp/Makefile	Tue Nov 26 20:37:47 2013	(r334969)
+++ head/games/xspacewarp/Makefile	Tue Nov 26 20:37:54 2013	(r334970)
@@ -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 at 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>


More information about the svn-ports-head mailing list