Compiling on GCC-based architectures (only) requires using c+11.

PR:		232862
Submitted by:	Piotr Kubaj
This commit is contained in:
Mark Linimon 2018-11-10 00:08:06 +00:00
parent d1488972e2
commit 707eec2e5b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=484560

View File

@ -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>