Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 2021 23:55:55 +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: r566011 - head/astro/opencpn
Message-ID:  <202102182355.11INtthV019648@repo.freebsd.org>

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



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