View | Details | Raw Unified | Return to bug 200309 | Differences between
and this patch

Collapse All | Expand All

(-)x11-toolkits/p5-Wx/Makefile (-16 / +18 lines)
Lines 14-41 Link Here
14
LICENSE=	ART10 GPLv1
14
LICENSE=	ART10 GPLv1
15
LICENSE_COMB=	dual
15
LICENSE_COMB=	dual
16
16
17
BUILD_DEPENDS=	p5-Alien-wxWidgets>=0.25:${PORTSDIR}/x11-toolkits/p5-Alien-wxWidgets \
17
BUILD_DEPENDS=	p5-ExtUtils-XSpp>=0.16.03:${PORTSDIR}/devel/p5-ExtUtils-XSpp \
18
		p5-ExtUtils-XSpp>=0.16.03:${PORTSDIR}/devel/p5-ExtUtils-XSpp
18
		p5-Alien-wxWidgets>=0.25:${PORTSDIR}/x11-toolkits/p5-Alien-wxWidgets
19
RUN_DEPENDS:=	${BUILD_DEPENDS}
19
RUN_DEPENDS:=	${BUILD_DEPENDS}
20
20
21
USES=		perl5 compiler:c++11-lib
21
USES=		compiler:c++11-lib perl5
22
USE_CXXSTD=	c++11
22
USE_PERL5=	configure
23
USE_PERL5=	configure
23
USE_WX=		3.0
24
USE_WX=		3.0
24
USE_CXXSTD=	c++11
25
WX_UNICODE=	yes
25
WX_COMPS=	wx
26
CONFIGURE_ENV=	CXX="${CXX}"
26
WX_UNICODE=	1
27
CC=		${CXX}
28
CFLAGS+=	-pthread -Wno-write-strings
29
CONFIGURE_ENV=	CXX=${CXX}
30
27
31
.include <bsd.port.pre.mk>
28
CFLAGS+=	-pthread -Wno-write-strings
32
33
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
34
BROKEN=		does not build
35
.endif
36
29
37
post-configure:
30
post-configure:
38
	@${FIND} ${WRKSRC} -name "Makefile" -type f | ${XARGS} \
31
	@${FIND} ${WRKSRC} -name "Makefile" -type f | ${XARGS} \
39
		${REINPLACE_CMD} -e 's|^CCFLAGS = .*$$|CCFLAGS = ${CXXFLAGS}|'
32
		${REINPLACE_CMD} -e \
33
		's|$$(CC)|$$(CXX)|g ; \
34
		 s|$$(CCFLAGS)|$$(CXXFLAGS)|g'
35
36
pre-build:
37
	@(cd ${WRKSRC} && ${DO_MAKE_BUILD} generated)
38
39
post-install:
40
	@${FIND} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL} -name "*.so" -type f \
41
		| ${XARGS} ${STRIP_CMD}
40
42
41
.include <bsd.port.post.mk>
43
.include <bsd.port.mk>

Return to bug 200309