summaryrefslogtreecommitdiff
path: root/x11-toolkits/p5-Alien-wxWidgets/Makefile
blob: d9fe9d22216c02d3d7331c7d1e3dcf52386d50c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Created by: Cezary Morga <cm@therek.net>
# $FreeBSD$

PORTNAME=	Alien-wxWidgets
PORTVERSION=	0.67
PORTREVISION=	1
CATEGORIES=	x11-toolkits perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Perl5 module for building, finding and using wxWidgets binaries

LICENSE=	ART10 GPLv1
LICENSE_COMB=	dual

USES=		perl5 compiler:env
USE_PERL5=	modbuild
USE_WX=		3.0
WX_COMPS=	wx
WX_UNICODE=	yes
CONFIGURE_ARGS=	--wxWidgets-build=0 --wxWidgets-unicode=1

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

post-install:
	# file name is function of wx version, add it dynamically
	@(cd ${STAGEDIR}${PREFIX}; ${FIND} * -type f -name gtk2_\* -print \
		>> ${TMPPLIST})

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} >= 502000
BUILD_DEPENDS+=	p5-Module-Pluggable>=5.1:${PORTSDIR}/devel/p5-Module-Pluggable
RUN_DEPENDS+=	p5-Module-Pluggable>=5.1:${PORTSDIR}/devel/p5-Module-Pluggable
.endif

.include <bsd.port.post.mk>