aboutsummaryrefslogtreecommitdiffstats
path: root/editors/p5-Padre
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2015-04-20 18:27:08 +0800
committermarino <marino@FreeBSD.org>2015-04-20 18:27:08 +0800
commita416cecd0216f77be427d75323736eb31c66d444 (patch)
tree8446e750189b916e95726c8a75b8543a8969d387 /editors/p5-Padre
parent1e51feecc20c0f7cb6ecaee1e7c641227d1c7727 (diff)
downloadfreebsd-ports-gnome-a416cecd0216f77be427d75323736eb31c66d444.tar.gz
freebsd-ports-gnome-a416cecd0216f77be427d75323736eb31c66d444.tar.zst
freebsd-ports-gnome-a416cecd0216f77be427d75323736eb31c66d444.zip
editors/p5-Padre: unbreak on some platforms
Due to pulling in Wx headers, Padre has to be built with c++11 standard. Due to current breakage on p5-Wx, this couldn't be tested on FreeBSD 8. It still builds on FreeBSD 10 and once again on DragonFly.
Diffstat (limited to 'editors/p5-Padre')
-rw-r--r--editors/p5-Padre/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/p5-Padre/Makefile b/editors/p5-Padre/Makefile
index b95745d93024..ec11d3948356 100644
--- a/editors/p5-Padre/Makefile
+++ b/editors/p5-Padre/Makefile
@@ -66,7 +66,7 @@ BUILD_DEPENDS= p5-JSON-XS>=2.29:${PORTSDIR}/converters/p5-JSON-XS \
p5-Wx-Perl-ProcessStream>=0.25:${PORTSDIR}/x11-toolkits/p5-Wx-Perl-ProcessStream
RUN_DEPENDS:= ${BUILD_DEPENDS}
-USES= gettext perl5
+USES= compiler:c++11-lib gettext perl5
USE_PERL5= configure
USE_WX= 3.0
WX_COMPS= wx
@@ -101,6 +101,7 @@ IGNORE= needs a threaded Perl, build with enabling THREADS option and try again
post-patch:
@${REINPLACE_CMD} -e \
'/my /s|wx-config|${WX_CONFIG:T}|g' \
+ -e '/ret/ s|urn .flags;|urn $$flags . " -std=c++11";|' \
${WRKDIR}/${WXSC_DISTNAME}/inc/Module/Build/Scintilla.pm
@${REINPLACE_CMD} -e \
's|_scintilla-|_scintilla| ; \
@@ -109,6 +110,7 @@ post-patch:
s|-lgtk-x11-2.0.*-lpangoft2-1.0|-lm| ; \
/-lgobject-2.0/d ; \
/-lglib-2.0/d ; \
+ s|{ccflags}|{ccflags} . " -std=c++11"| ; \
s|\\$$ORIGIN|${SITE_ARCH}/auto/Wx/Scintilla|' \
${WRKDIR}/${WXSC_DISTNAME}/inc/Module/Build/Scintilla/GTK.pm