Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Dec 2020 14:08:56 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r559474 - head/graphics/osgearth
Message-ID:  <202012281408.0BSE8uuH001284@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012281408.0BSE8uuH001284>