Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2018 00:08:06 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r484560 - head/news/nget
Message-ID:  <201811100008.wAA086BI008422@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Sat Nov 10 00:08:06 2018
New Revision: 484560
URL: https://svnweb.freebsd.org/changeset/ports/484560

Log:
  Compiling on GCC-based architectures (only) requires using c+11.
  
  PR:		232862
  Submitted by:	Piotr Kubaj

Modified:
  head/news/nget/Makefile

Modified: head/news/nget/Makefile
==============================================================================
--- head/news/nget/Makefile	Fri Nov  9 23:54:01 2018	(r484559)
+++ head/news/nget/Makefile	Sat Nov 10 00:08:06 2018	(r484560)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811100008.wAA086BI008422>