svn commit: r566011 - head/astro/opencpn
Piotr Kubaj
pkubaj at FreeBSD.org
Thu Feb 18 23:55:55 UTC 2021
Author: pkubaj
Date: Thu Feb 18 23:55:54 2021
New Revision: 566011
URL: https://svnweb.freebsd.org/changeset/ports/566011
Log:
astro/opencpn: fix build on powerpc64*
Use GCC unconditionally on powerpc64*:
In file included from /usr/lib/clang/11.0.1/include/xmmintrin.h:13:
/usr/lib/clang/11.0.1/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
__builtin_ia32_emms();
Modified:
head/astro/opencpn/Makefile
Modified: head/astro/opencpn/Makefile
==============================================================================
--- head/astro/opencpn/Makefile Thu Feb 18 23:21:51 2021 (r566010)
+++ head/astro/opencpn/Makefile Thu Feb 18 23:55:54 2021 (r566011)
@@ -19,8 +19,8 @@ LIB_DEPENDS= libportaudio.so:audio/portaudio \
libtinyxml.so:textproc/tinyxml \
liblz4.so:archivers/liblz4
-USES= cmake compiler:c++11-lang gettext-tools gl gnome \
- libarchive localbase pkgconfig sqlite xorg
+USES= cmake gettext-tools gl gnome libarchive localbase pkgconfig \
+ sqlite xorg
USE_CXXSTD= c++11
USE_GITHUB= yes
GH_ACCOUNT= ${GH_PROJECT}
@@ -43,6 +43,14 @@ OPTIONS_SUB= yes
DOCS_CMAKE_ON= -DOCPN_BUNDLE_DOCS:STRING="ON"
DOCS_CMAKE_OFF= -DOCPN_BUNDLE_DOCS:STRING="OFF"
+
+.include <bsd.port.options.mk>
+
+.if ${ARCH:Mpowerpc64*}
+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