summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2018-11-10 00:08:06 +0000
committerMark Linimon <linimon@FreeBSD.org>2018-11-10 00:08:06 +0000
commit707eec2e5b603dd7bf491ae28e4b9fc7b532520b (patch)
tree0bab88c93360ecb223b49766e653f0666ba62994 /news
parentUpdate to 5.2.22. (diff)
Compiling on GCC-based architectures (only) requires using c+11.
PR: 232862 Submitted by: Piotr Kubaj
Notes
Notes: svn path=/head/; revision=484560
Diffstat (limited to 'news')
-rw-r--r--news/nget/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/news/nget/Makefile b/news/nget/Makefile
index a9c8cb79a389..06dca7b23ffe 100644
--- a/news/nget/Makefile
+++ b/news/nget/Makefile
@@ -15,7 +15,6 @@ LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler:c++11-lang gmake
-USE_CXXSTD= c++98
GNU_CONFIGURE= yes
# Skip check if the C++ compiler supports exceptions. We know both
@@ -28,6 +27,13 @@ OPTIONS_DEFINE= DOCS
WRKSRC= ${WRKDIR}/nget-${PORTVERSION}
+.include <bsd.port.pre.mk>
+
+.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
+CXXFLAGS+= -std=c++11
+.else
+CXXFLAGS+= -std=c++98
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nget ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/ngetlite ${STAGEDIR}${PREFIX}/bin
@@ -40,4 +46,4 @@ do-install-DOCS-on:
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>