blob: 328c5dc17d720d7299f6dc30675bf92067c50f87 (
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
42
43
44
45
46
47
48
49
|
# Created by: Cezary Morga <cm@therek.net>
# $FreeBSD$
PORTNAME= Wx
PORTVERSION= 0.99.28
CATEGORIES= x11-toolkits perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
MAINTAINER= perl@FreeBSD.org
COMMENT= Perl5 interface to the wxWidgets cross-platform GUI toolkit
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
BUILD_DEPENDS= p5-ExtUtils-XSpp>=0.16.03:${PORTSDIR}/devel/p5-ExtUtils-XSpp \
p5-Alien-wxWidgets>=0.25:${PORTSDIR}/x11-toolkits/p5-Alien-wxWidgets
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= compiler:c++11-lib perl5
USE_CXXSTD= c++11
USE_PERL5= configure
USE_WX= 3.0
CONFIGURE_ENV= CXX="${CXX}"
CFLAGS+= -pthread -Wno-write-strings
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501508
BUILD_DEPENDS+= p5-ExtUtils-ParseXS>=3.15:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
RUN_DEPENDS+= p5-ExtUtils-ParseXS>=3.15:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
.endif
post-configure:
@${FIND} ${WRKSRC} -name "Makefile" -type f | ${XARGS} \
${REINPLACE_CMD} -e \
's|$$(CC)|$$(CXX)|g ; \
s|$$(CCFLAGS)|$$(CXXFLAGS)|g'
pre-build:
@(cd ${WRKSRC} && ${DO_MAKE_BUILD} generated)
post-install:
@${FIND} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL} -name "*.so" -type f \
| ${XARGS} ${STRIP_CMD}
.include <bsd.port.post.mk>
|