aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2019-03-29 23:35:42 +0800
committerlinimon <linimon@FreeBSD.org>2019-03-29 23:35:42 +0800
commit9eb167bbc9a1575b6f39001eeff184efab1504b9 (patch)
treed959f093c5fe925ff20e1221f09c655aabbbd42f /www
parentaccde2d6d57996dc121ee2e3bc79981713d58740 (diff)
downloadfreebsd-ports-gnome-9eb167bbc9a1575b6f39001eeff184efab1504b9.tar.gz
freebsd-ports-gnome-9eb167bbc9a1575b6f39001eeff184efab1504b9.tar.zst
freebsd-ports-gnome-9eb167bbc9a1575b6f39001eeff184efab1504b9.zip
Fix build on GCC-based architectures:
ERROR: C++ Compiler does not support -std=c++11 and adjust CFLAGS. PR: 236752 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket)
Diffstat (limited to 'www')
-rw-r--r--www/kiwix-tools/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/www/kiwix-tools/Makefile b/www/kiwix-tools/Makefile
index 37e69d21f03e..7bfa5688be4d 100644
--- a/www/kiwix-tools/Makefile
+++ b/www/kiwix-tools/Makefile
@@ -15,11 +15,14 @@ LIB_DEPENDS= libkiwix.so:devel/kiwix-lib \
libctpp2.so:textproc/ctpp2 \
libzim.so:devel/libzim
-USES= meson pkgconfig
+USES= compiler:c++11-lang meson pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= kiwix
USE_RC_SUBR= kiwix_serve
+CXXFLAGS_gcc= -Wno-error=maybe-uninitialized
+CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/share/kiwix
${INSTALL_DATA} files/library.xml ${STAGEDIR}${PREFIX}/share/kiwix