ports/163371: [patch] graphics/ogre3d: unbreak plist on clang
Jan Beich
jbeich at tormail.net
Sat Dec 17 00:50:05 UTC 2011
>Number: 163371
>Category: ports
>Synopsis: [patch] graphics/ogre3d: unbreak plist on clang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 17 00:50:04 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
Pretend to be G++ in order to:
- pass -fvisibilty* checks
- pass -msse check
- install plugins without "lib" prefix
>How-To-Repeat:
http://pointyhat-west.isc.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp-clang.20111215000124.pointyhat-west/ogre3d-1.7.3_1.log
>Fix:
--- clang.diff begins here ---
Index: graphics/ogre3d/Makefile
===================================================================
RCS file: /a/.csup/ports/graphics/ogre3d/Makefile,v
retrieving revision 1.55
diff -u -p -r1.55 Makefile
--- graphics/ogre3d/Makefile 10 Dec 2011 23:01:13 -0000 1.55
+++ graphics/ogre3d/Makefile 17 Dec 2011 00:41:57 -0000
@@ -44,6 +44,10 @@ PLIST_SUB+= BOOSTFALSE=""
BROKEN= Does not install on powerpc
.endif
+.if ${CXX:M*clang*}
+CMAKE_ARGS+= -DCMAKE_COMPILER_IS_GNUCXX:BOOL=YES
+.endif
+
post-patch:
.if defined(WITHOUT_BOOST)
@${REINPLACE_CMD} -e 's|Boost|No_Boost|g' \
--- clang.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list