Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Apr 2015 09:48:05 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r384341 - head/x11-toolkits/p5-Wx
Message-ID:  <201504200948.t3K9m5Oj020642@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Mon Apr 20 09:48:04 2015
New Revision: 384341
URL: https://svnweb.freebsd.org/changeset/ports/384341

Log:
  p5-Wx: Unbreak on some platforms
  
  This port was using CFLAGS for c++, so the -std=c++11 flag wasn't getting
  passed even when USE_CXXSTD was set.  This port broke in some places when
  c++11 became a requirement of Wx.
  
  This is still broken on FreeBSD 8 (F9 not tested) due to new problems
  related to compiling with gcc48.

Modified:
  head/x11-toolkits/p5-Wx/Makefile

Modified: head/x11-toolkits/p5-Wx/Makefile
==============================================================================
--- head/x11-toolkits/p5-Wx/Makefile	Mon Apr 20 09:25:51 2015	(r384340)
+++ head/x11-toolkits/p5-Wx/Makefile	Mon Apr 20 09:48:04 2015	(r384341)
@@ -19,9 +19,10 @@ BUILD_DEPENDS=	p5-Alien-wxWidgets>=0.25:
 		p5-ExtUtils-XSpp>=0.16.03:${PORTSDIR}/devel/p5-ExtUtils-XSpp
 RUN_DEPENDS:=	${BUILD_DEPENDS}
 
-USES=		perl5
+USES=		perl5 compiler:c++11-lib
 USE_PERL5=	configure
 USE_WX=		3.0
+USE_CXXSTD=	c++11
 WX_COMPS=	wx
 WX_UNICODE=	1
 CC=		${CXX}
@@ -38,6 +39,6 @@ RUN_DEPENDS+=	p5-ExtUtils-ParseXS>=3.15:
 
 post-configure:
 	@${FIND} ${WRKSRC} -name "Makefile" -type f | ${XARGS} \
-		${REINPLACE_CMD} -e 's/^CCFLAGS = .*$$/CCFLAGS = ${CFLAGS}/'
+		${REINPLACE_CMD} -e 's|^CCFLAGS = .*$$|CCFLAGS = ${CXXFLAGS}|'
 
 .include <bsd.port.post.mk>



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