From 707eec2e5b603dd7bf491ae28e4b9fc7b532520b Mon Sep 17 00:00:00 2001 From: Mark Linimon Date: Sat, 10 Nov 2018 00:08:06 +0000 Subject: Compiling on GCC-based architectures (only) requires using c+11. PR: 232862 Submitted by: Piotr Kubaj --- news/nget/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'news') 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 + +.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 +.include -- cgit v1.2.3