From f8a1725d8b64f6749151c53dae47b531f4e9084f Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sat, 14 Feb 2015 10:16:31 +0000 Subject: [NEW] devel/p5-B-C: Perl compiler's C backend This compiler backend takes Perl source and generates C source code corresponding to the internal structures that perl uses to run your program. When the generated C source is compiled and run, it cuts out the time which perl would have taken to load and parse your program into its internal semi-compiled form. That means that compiling with this backend will not help improve the runtime execution speed of your program but may improve the start-up time. Depending on the environment in which your program runs this may be either a help or a hindrance. WWW: http://search.cpan.org/dist/B-C/ PR: 196719 Submitted by: svysh.fbsd@gmail.com Approved by: bapt marino (implicit) --- devel/p5-B-C/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 devel/p5-B-C/Makefile (limited to 'devel/p5-B-C/Makefile') diff --git a/devel/p5-B-C/Makefile b/devel/p5-B-C/Makefile new file mode 100644 index 000000000000..1c8ec42bfd9d --- /dev/null +++ b/devel/p5-B-C/Makefile @@ -0,0 +1,40 @@ +# Created by: Sergei Vyshenski +# $FreeBSD$ + +PORTNAME= B-C +PORTVERSION= 1.52 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:RURBAN +PKGNAMEPREFIX= p5- + +MAINTAINER= svysh.fbsd@gmail.com +COMMENT= Perl compiler's C backend + +LICENSE= ART10 GPLv1 +LICENSE_COMB= dual + +BUILD_DEPENDS= p5-B-Flags>=0:${PORTSDIR}/devel/p5-B-Flags \ + p5-Opcodes>=0:${PORTSDIR}/devel/p5-Opcodes \ + p5-IPC-Run>=0:${PORTSDIR}/devel/p5-IPC-Run +RUN_DEPENDS:= ${BUILD_DEPENDS} + +USES= perl5 +USE_PERL5= configure +PERL_INC_STAGE= ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/CORE +MAKE_ENV+= PERL_INC_STAGE=${PERL_INC_STAGE} +PLIST_SUB+= PERL_ARCH=${PERL_ARCH} +NO_ARCH= yes + +post-patch: + ${REINPLACE_CMD} -e "s|PERL_INC|PERL_INC_STAGE|g" ${WRKSRC}/Makefile.PL + ${MKDIR} ${PERL_INC_STAGE} + +#pre-install: test + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/B/C/C.so + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/B/Stash/Stash.so + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/ByteLoader/ByteLoader.so + +.include -- cgit v1.2.3