ports/184227: games/xspacewarp: Fix build with clang

KATO Tsuguru tkato432 at yahoo.com
Sun Nov 24 18:10:03 UTC 2013


>Number:         184227
>Category:       ports
>Synopsis:       games/xspacewarp: Fix build with clang
>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:   Sun Nov 24 18:10:02 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Fix build with clang

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/games/xspacewarp/Makefile games/xspacewarp/Makefile
--- /usr/ports/games/xspacewarp/Makefile	2013-11-16 18:14:54.000000000 +0900
+++ games/xspacewarp/Makefile	2013-11-25 00:00:00.000000000 +0900
@@ -5,8 +5,7 @@
 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 @@
 		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>
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list