svn commit: r559474 - head/graphics/osgearth
Piotr Kubaj
pkubaj at FreeBSD.org
Mon Dec 28 14:08:56 UTC 2020
Author: pkubaj
Date: Mon Dec 28 14:08:55 2020
New Revision: 559474
URL: https://svnweb.freebsd.org/changeset/ports/559474
Log:
graphics/osgearth: fix build on powerpc64 head
Use GCC for its SSE - AltiVec translation.
In file included from /wrkdirs/usr/ports/graphics/osgearth/work/osgearth-osgearth-2.10.1/src/osgEarthDrivers/fastdxt/intrinsic.cpp:42:
In file included from /usr/lib/clang/11.0.0/include/emmintrin.h:13:
In file included from /usr/lib/clang/11.0.0/include/xmmintrin.h:13:
/usr/lib/clang/11.0.0/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
__builtin_ia32_emms();
Modified:
head/graphics/osgearth/Makefile
Modified: head/graphics/osgearth/Makefile
==============================================================================
--- head/graphics/osgearth/Makefile Mon Dec 28 14:04:25 2020 (r559473)
+++ head/graphics/osgearth/Makefile Mon Dec 28 14:08:55 2020 (r559474)
@@ -22,7 +22,7 @@ LIB_DEPENDS= libosg.so:graphics/osg34 \
libprotoc.so:devel/protobuf \
librocksdb.so:databases/rocksdb
-USES= cmake compiler:c++11-lang gl pkgconfig sqlite
+USES= cmake gl pkgconfig sqlite
USE_GITHUB= yes
GH_ACCOUNT= gwaldron
@@ -36,6 +36,15 @@ CMAKE_ARGS+= -DCMAKE_INCLUDE_PATH:PATH=${LOCALBASE}/in
-DLIB_POSTFIX:STRING=""
PLIST_SUB= PORTVERSION=${PORTVERSION}
+
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64
+CXXFLAGS+= -DNO_WARN_X86_INTRINSICS -maltivec -mvsx
+USES+= compiler:gcc-c++11-lib
+.else
+USES+= compiler:c++11-lang
+.endif
.include <bsd.port.pre.mk>
More information about the svn-ports-head
mailing list