aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-05-17 06:53:13 +0800
committermiwi <miwi@FreeBSD.org>2009-05-17 06:53:13 +0800
commit209c1213f399fd0f74c5bb9e6da12d44059fd5a1 (patch)
treebda78655d60e24f7afe5b5a3a6c64cca1110ba1e /x11-toolkits
parent10b78179c0ad1dc399f54250743cbdac26b8bceb (diff)
downloadfreebsd-ports-graphics-209c1213f399fd0f74c5bb9e6da12d44059fd5a1.tar.gz
freebsd-ports-graphics-209c1213f399fd0f74c5bb9e6da12d44059fd5a1.tar.zst
freebsd-ports-graphics-209c1213f399fd0f74c5bb9e6da12d44059fd5a1.zip
- Update to 0.90
PR: 134424 Submitted by: Cezary Morga <cm@therek.net> (maintainer)
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/p5-Wx/Makefile22
-rw-r--r--x11-toolkits/p5-Wx/distinfo6
2 files changed, 23 insertions, 5 deletions
diff --git a/x11-toolkits/p5-Wx/Makefile b/x11-toolkits/p5-Wx/Makefile
index 7f08dbe08af..5347c302632 100644
--- a/x11-toolkits/p5-Wx/Makefile
+++ b/x11-toolkits/p5-Wx/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= Wx
-PORTVERSION= 0.89
+PORTVERSION= 0.90
CATEGORIES= x11-toolkits perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -17,14 +17,21 @@ COMMENT= Perl5 interface to the wxWidgets cross-platform GUI toolkit
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Alien/wxWidgets.pm:${PORTSDIR}/x11-toolkits/p5-Alien-wxWidgets
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Alien/wxWidgets.pm:${PORTSDIR}/x11-toolkits/p5-Alien-wxWidgets
+OPTIONS= UNICODE "Build with Unicode support" on
+
USE_WX= 2.6+
WX_COMPS= wx contrib
-WX_UNICODE= yes
USE_DISPLAY= yes
PERL_CONFIGURE= yes
CC= ${CXX}
CFLAGS+= -pthread -Wno-write-strings
+.if defined(WITH_UNICODE)
+WX_UNICODE= yes
+.endif
+
+ALIEN_UNICODE= ${PERL} -MAlien::wxWidgets -e 'print Alien::wxWidgets->key' | ${GREP} "_uni_"
+
MAN1= wxperl_overload.1 \
wxperl_xspp.1
MAN3= Wx::Perl::TextValidator.3 \
@@ -43,6 +50,17 @@ MAN3= Wx::Perl::TextValidator.3 \
Wx::XSP::Parser.3 \
Wx.3
+.if defined(WITH_UNICODE)
+pre-configure:
+ @if [ ! "$$(${ALIEN_UNICODE})" ]; then \
+ ${ECHO_MSG}; \
+ ${ECHO_MSG} "===> It seems x11-toolkits/p5-Alien-wxWidget was compiled without"; \
+ ${ECHO_MSG} " Unicode suport. Please rebuild it and try again."; \
+ ${ECHO_MSG}; \
+ exit 1; \
+ fi
+.endif
+
post-configure:
@${FIND} ${WRKSRC} -name "Makefile" -type f | ${XARGS} \
${REINPLACE_CMD} -e 's/^CCFLAGS = .*$$/CCFLAGS = ${CFLAGS}/'
diff --git a/x11-toolkits/p5-Wx/distinfo b/x11-toolkits/p5-Wx/distinfo
index 6f882c5675a..48b1d526be9 100644
--- a/x11-toolkits/p5-Wx/distinfo
+++ b/x11-toolkits/p5-Wx/distinfo
@@ -1,3 +1,3 @@
-MD5 (Wx-0.89.tar.gz) = 6f7c8bb0bca7746feaff344770bf670b
-SHA256 (Wx-0.89.tar.gz) = de005a0b9da66b49b190ae927c4160128d05d1c123c0f3fe042a1e306ca0ce99
-SIZE (Wx-0.89.tar.gz) = 368716
+MD5 (Wx-0.90.tar.gz) = 92dc8a47262fe51f37e6321f0977a4ee
+SHA256 (Wx-0.90.tar.gz) = ce1f9ab4a3a01a1f0c61843c4f913953b16e9543b3d3b6974eae99b9ed09a46a
+SIZE (Wx-0.90.tar.gz) = 369853