blob: 0d4533ec5a4e60278e684fdb4c6d421c292fe65e (
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
|
# New ports collection makefile for: Inline::C2XS
# Date created: 3 Oct 2006
# Whom: Cheng-Lung Sung <clsung@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Inline-C2XS
PORTVERSION= 0.05
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Inline
PKGNAMEPREFIX= p5-
MAINTAINER= clsung@FreeBSD.org
COMMENT= Perl module to create an XS file from an Inline C file
BUILD_DEPENDS= ${SITE_PERL}/Inline/C.pm:${PORTSDIR}/devel/p5-Inline \
${SITE_PERL}/Inline/CPP.pm:${PORTSDIR}/devel/p5-Inline-CPP
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Inline::C2XS.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601
do-patch:
${PERL} -pi -e 's/^our (\W\w+);/use vars q($$1);/o;' \
-e 's/^our\s+(\W\w+)(?!;)/use vars q($$1); $$1/o;' \
-e 'undef $$_ if /^\s*(no|use) warnings/o;' \
${WRKSRC}/C2XS.pm
.endif
.include <bsd.port.post.mk>
|