diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2006-08-05 21:00:16 +0800 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2006-08-05 21:00:16 +0800 |
commit | 18ee725fd4b518d5890805d90e6874daea229419 (patch) | |
tree | 9a0af5d1f0c33b532345e30b681e0d6cd8ee276d /devel/cil/Makefile | |
parent | dad06d0c2a6f4f16e2186bd7ad38700b5a84e684 (diff) | |
download | freebsd-ports-gnome-18ee725fd4b518d5890805d90e6874daea229419.tar.gz freebsd-ports-gnome-18ee725fd4b518d5890805d90e6874daea229419.tar.zst freebsd-ports-gnome-18ee725fd4b518d5890805d90e6874daea229419.zip |
- Fix Perl paths to allow "bin/cilly" to work. [1]
- Enable this port on FreeBSD/amd64.
PR: ports/101312 [1]
Submitted by: Li-Wen Hsu <lwhsu at lwhsu.org>
Diffstat (limited to 'devel/cil/Makefile')
-rw-r--r-- | devel/cil/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/devel/cil/Makefile b/devel/cil/Makefile index dbdb112e876b..07c1c79fbe7f 100644 --- a/devel/cil/Makefile +++ b/devel/cil/Makefile @@ -7,10 +7,11 @@ PORTNAME= cil PORTVERSION= 1.3.5 +PORTREVISION= 1 CATEGORIES= devel lang MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://manju.cs.berkeley.edu/cil/distrib/ -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= jkoshy@FreeBSD.org COMMENT= Infrastructure for C Program Analysis and Transformation @@ -19,7 +20,7 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/ocamlopt:${PORTSDIR}/lang/ocaml CONFLICTS= ccured-* -ONLY_FOR_ARCHS= i386 +ONLY_FOR_ARCHS= i386 amd64 USE_PERL5= yes USE_GMAKE= yes WRKSRC= ${WRKDIR}/${PORTNAME} @@ -38,6 +39,10 @@ IGNORE= does not work with perl < 5.6.1 post-patch: @${REINPLACE_CMD} -e 's:@CILHOME@/lib:${SITE_PERL}/CIL:g; s:\@CILHOME\@:${PREFIX}:g' ${WRKSRC}/bin/CilConfig.pm.in @${REINPLACE_CMD} -e 's|$$::cilhome|${PREFIX}|g; s|obj/$$::archos|libexec/cil|g' ${WRKSRC}/bin/cilly + @${REINPLACE_CMD} -e 's|^use Cilly;|use CIL::Cilly|' ${WRKSRC}/bin/cilly + @${REINPLACE_CMD} -e 's|^use KeptFile;|use CIL::KeptFile;|; s|^use OutputFile;|use CIL::OutputFile;|; s|^use TempFile;|use CIL::TempFile;|' ${WRKSRC}/lib/Cilly.pm + @${REINPLACE_CMD} -e 's|^use OutputFile;|use CIL::OutputFile;|' ${WRKSRC}/lib/KeptFile.pm + @${REINPLACE_CMD} -e 's|^use OutputFile;|use CIL::OutputFile;|' ${WRKSRC}/lib/TempFile.pm do-install: .if !defined(NOPORTDOCS) @@ -55,7 +60,7 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/bin/CilConfig.pm ${SITE_PERL}/ ${MKDIR} ${PREFIX}/libexec/cil .for f in ${EXECFILES} - ${INSTALL} ${WRKSRC}/obj/x86_LINUX/${f} ${PREFIX}/libexec/cil/ + ${INSTALL} ${WRKSRC}/obj/${ARCH}_FREEBSD/${f} ${PREFIX}/libexec/cil/ .endfor .include <bsd.port.post.mk> |