aboutsummaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-02-18 23:55:54 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-02-18 23:55:54 +0000
commit6d66e8c0a1c32c65548f6a3d6f22fa255f7a4e32 (patch)
tree2836ca2eea24a6f234027d41cce470e8e7e6e6f1 /astro
parentddcc28d70c7cdf1845692eff1a5cdd764819cbd5 (diff)
Notes
Diffstat (limited to 'astro')
-rw-r--r--astro/opencpn/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/astro/opencpn/Makefile b/astro/opencpn/Makefile
index 03650e52f6b0..0201b5f31c72 100644
--- a/astro/opencpn/Makefile
+++ b/astro/opencpn/Makefile
@@ -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}
@@ -44,6 +44,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>
post-patch: