aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/p5-Wx
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-05-16 22:53:13 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-05-16 22:53:13 +0000
commit3b0e37035db51ed6d90f874da8ba9624fd6309df (patch)
treed52b48b468572313919000f4a7ac0fac6b886143 /x11-toolkits/p5-Wx
parentcfc989a9f563c5c84577c7db5f8037b875c4708f (diff)
downloadports-3b0e37035db51ed6d90f874da8ba9624fd6309df.tar.gz
ports-3b0e37035db51ed6d90f874da8ba9624fd6309df.zip
Notes
Diffstat (limited to 'x11-toolkits/p5-Wx')
-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 7f08dbe08af6..5347c3026329 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 6f882c5675a8..48b1d526be9e 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