2006-12-26 03:41:25 +01:00
|
|
|
# New ports collection makefile for: InlineX::C2XS
|
2006-10-03 16:43:06 +02:00
|
|
|
# Date created: 3 Oct 2006
|
|
|
|
# Whom: Cheng-Lung Sung <clsung@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2006-12-26 03:41:25 +01:00
|
|
|
PORTNAME= InlineX-C2XS
|
|
|
|
PORTVERSION= 0.10
|
2006-10-03 16:43:06 +02:00
|
|
|
CATEGORIES= devel perl5
|
2006-12-26 03:41:25 +01:00
|
|
|
MASTER_SITES= CPAN
|
|
|
|
MASTER_SITE_SUBDIR= ../../authors/id/S/SI/SISYPHUS/
|
2006-10-03 16:43:06 +02:00
|
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
|
|
|
|
MAINTAINER= clsung@FreeBSD.org
|
|
|
|
COMMENT= Perl module to create an XS file from an Inline C file
|
|
|
|
|
2006-12-26 03:41:25 +01:00
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/Inline/C.pm:${PORTSDIR}/devel/p5-Inline
|
2006-10-03 16:43:06 +02:00
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
|
2006-12-26 03:41:25 +01:00
|
|
|
MAN3= InlineX::C2XS.3
|
2006-10-03 16:43:06 +02:00
|
|
|
|
|
|
|
.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>
|