svn commit: r384341 - head/x11-toolkits/p5-Wx

John Marino marino at FreeBSD.org
Mon Apr 20 09:48:05 UTC 2015


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>


More information about the svn-ports-head mailing list