mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# Created by: Cezary Morga <cm@therek.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= Alien-wxWidgets
|
|
PORTVERSION= 0.62
|
|
CATEGORIES= x11-toolkits perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= pclin@FreeBSD.org
|
|
COMMENT= Perl5 module for building, finding and using wxWidgets binaries
|
|
|
|
OPTIONS_DEFINE= UNICODE
|
|
OPTIONS_DEFAULT= UNICODE
|
|
UNICODE_DESC= Build with Unicode support
|
|
|
|
USE_GCC= any
|
|
USES= perl5
|
|
USE_PERL5= modbuild
|
|
USE_WX= 2.6+
|
|
WX_COMPS= wx contrib
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORT_OPTIONS:MUNICODE}
|
|
WX_UNICODE= yes
|
|
WX_UNI= uni_
|
|
CONFIGURE_ARGS+= --wxWidgets-build=0 --wxWidgets-unicode=1
|
|
.else
|
|
CONFIGURE_ARGS+= --wxWidgets-build=0 --wxWidgets-unicode=0
|
|
.endif
|
|
|
|
WX_UVER= ${WX_CONFIG:T} --version | ${TR} '.' '_'
|
|
PLIST_SUB+= WX_UVER="$$(${WX_UVER})" WX_UNI=${WX_UNI}
|
|
|
|
MAN3= Alien::wxWidgets.3 \
|
|
Alien::wxWidgets::Utility.3
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/wx-config/${WX_CONFIG:T}/' ${WRKSRC}/Build.PL
|
|
@${REINPLACE_CMD} -e "s/\'wx-config/\'${WX_CONFIG:T}/" -e "s/lc_r/lpthread/" \
|
|
${WRKSRC}/inc/My/Build/Any_wx_config.pm
|
|
|
|
.include <bsd.port.post.mk>
|