aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/Makefile1
-rw-r--r--devel/cil/Makefile53
-rw-r--r--devel/cil/distinfo1
-rw-r--r--devel/cil/pkg-descr12
-rw-r--r--devel/cil/pkg-plist123
5 files changed, 190 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 0263e77471b3..6fc7e7a12850 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -101,6 +101,7 @@
SUBDIR += cflow
SUBDIR += cflow2vcg
SUBDIR += chora
+ SUBDIR += cil
SUBDIR += cl-asdf
SUBDIR += cl-asdf-clisp
SUBDIR += cl-asdf-cmucl
diff --git a/devel/cil/Makefile b/devel/cil/Makefile
new file mode 100644
index 000000000000..d895e673a60e
--- /dev/null
+++ b/devel/cil/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: cil
+# Date created: 11 October 2003
+# Whom: Alexander Leidinger <netchild@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= cil
+PORTVERSION= 1.2.1
+CATEGORIES= devel lang
+MASTER_SITES= http://manju.cs.berkeley.edu/cil/distrib/
+
+MAINTAINER= netchild@FreeBSD.org
+COMMENT= Infrastructure for C Program Analysis and Transformation
+
+BUILD_DEPENDS= ${LOCALBASE}/bin/ocamlopt:${PORTSDIR}/lang/ocaml
+
+USE_PERL5= yes
+USE_GMAKE= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}
+GNU_CONFIGURE= yes
+USE_REINPLACE= yes
+
+CPIO?= /usr/bin/cpio
+
+BINFILES= cilly patcher teetwo
+LIBFILES= Cilly.pm KeptFile.pm OutputFile.pm TempFile.pm
+EXECFILES= cilly.byte.exe machdep.exe
+
+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
+
+do-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC}/doc && ${FIND} . -print | \
+ ${CPIO} -pdu -R ${BINOWN}:${BINGRP} --quiet ${DOCSDIR}
+.endif
+.for file in ${BINFILES}
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/${file} ${PREFIX}/bin/
+.endfor
+ ${MKDIR} ${SITE_PERL}/CIL
+.for file in ${LIBFILES}
+ ${INSTALL_DATA} ${WRKSRC}/lib/${file} ${SITE_PERL}/CIL/
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/bin/CilConfig.pm ${SITE_PERL}/
+ ${MKDIR} ${PREFIX}/libexec/cil
+.for file in ${EXECFILES}
+ ${INSTALL} ${WRKSRC}/obj/x86_LINUX/${file} ${PREFIX}/libexec/cil/
+.endfor
+
+.include <bsd.port.mk>
diff --git a/devel/cil/distinfo b/devel/cil/distinfo
new file mode 100644
index 000000000000..65b5e96e5d6c
--- /dev/null
+++ b/devel/cil/distinfo
@@ -0,0 +1 @@
+MD5 (cil-1.2.1.tar.gz) = 942c7fe5997c271d00746f2b8348df2d
diff --git a/devel/cil/pkg-descr b/devel/cil/pkg-descr
new file mode 100644
index 000000000000..48ed6c4447d7
--- /dev/null
+++ b/devel/cil/pkg-descr
@@ -0,0 +1,12 @@
+Infrastructure for C Program Analysis and Transformation
+
+CIL (C Intermediate Language) is a high-level representation along
+with a set of tools that permit easy analysis and source-to-source
+transformation of C programs.
+
+CIL is both lower-level than abstract-syntax trees, by clarifying
+ambiguous constructs and removing redundant ones, and also higher-level
+than typical intermediate languages designed for compilation, by
+maintaining types and a close relationship with the source program.
+
+WWW: http://manju.cs.berkeley.edu/cil/
diff --git a/devel/cil/pkg-plist b/devel/cil/pkg-plist
new file mode 100644
index 000000000000..51c4d4ac58f4
--- /dev/null
+++ b/devel/cil/pkg-plist
@@ -0,0 +1,123 @@
+bin/cilly
+bin/patcher
+bin/teetwo
+lib/perl5/site_perl/5.6.1/CIL/Cilly.pm
+lib/perl5/site_perl/5.6.1/CIL/KeptFile.pm
+lib/perl5/site_perl/5.6.1/CIL/OutputFile.pm
+lib/perl5/site_perl/5.6.1/CIL/TempFile.pm
+lib/perl5/site_perl/5.6.1/CilConfig.pm
+libexec/cil/cilly.byte.exe
+libexec/cil/machdep.exe
+%%DOCSDIR%%/CIL-API.pdf
+%%DOCSDIR%%/CIL.pdf
+%%DOCSDIR%%/api/Cil.cilPrinter.html
+%%DOCSDIR%%/api/Cil.cilVisitor.html
+%%DOCSDIR%%/api/Cil.defaultCilPrinterClass.html
+%%DOCSDIR%%/api/Cil.html
+%%DOCSDIR%%/api/Cil.nopCilVisitor.html
+%%DOCSDIR%%/api/Clist.html
+%%DOCSDIR%%/api/Errormsg.html
+%%DOCSDIR%%/api/Formatcil.html
+%%DOCSDIR%%/api/Pretty.html
+%%DOCSDIR%%/api/Stats.html
+%%DOCSDIR%%/api/index.html
+%%DOCSDIR%%/api/index_attributes.html
+%%DOCSDIR%%/api/index_class_types.html
+%%DOCSDIR%%/api/index_classes.html
+%%DOCSDIR%%/api/index_exceptions.html
+%%DOCSDIR%%/api/index_methods.html
+%%DOCSDIR%%/api/index_module_types.html
+%%DOCSDIR%%/api/index_modules.html
+%%DOCSDIR%%/api/index_types.html
+%%DOCSDIR%%/api/index_values.html
+%%DOCSDIR%%/api/style.css
+%%DOCSDIR%%/api/type_Cil.cilPrinter.html
+%%DOCSDIR%%/api/type_Cil.cilVisitor.html
+%%DOCSDIR%%/api/type_Cil.defaultCilPrinterClass.html
+%%DOCSDIR%%/api/type_Cil.html
+%%DOCSDIR%%/api/type_Cil.nopCilVisitor.html
+%%DOCSDIR%%/api/type_Clist.html
+%%DOCSDIR%%/api/type_Errormsg.html
+%%DOCSDIR%%/api/type_Formatcil.html
+%%DOCSDIR%%/api/type_Pretty.html
+%%DOCSDIR%%/api/type_Stats.html
+%%DOCSDIR%%/attributes.html
+%%DOCSDIR%%/cil.html
+%%DOCSDIR%%/cil.version.tex
+%%DOCSDIR%%/cil001.html
+%%DOCSDIR%%/cil002.html
+%%DOCSDIR%%/cil003.html
+%%DOCSDIR%%/cil004.html
+%%DOCSDIR%%/cil005.html
+%%DOCSDIR%%/cil006.html
+%%DOCSDIR%%/cil009.html
+%%DOCSDIR%%/cil010.html
+%%DOCSDIR%%/cil011.html
+%%DOCSDIR%%/cil012.html
+%%DOCSDIR%%/cil013.html
+%%DOCSDIR%%/cil016.html
+%%DOCSDIR%%/cil017.html
+%%DOCSDIR%%/cil018.html
+%%DOCSDIR%%/cil019.html
+%%DOCSDIR%%/cil020.html
+%%DOCSDIR%%/cil021.html
+%%DOCSDIR%%/cilheader.html
+%%DOCSDIR%%/cilly.html
+%%DOCSDIR%%/cilpp.haux
+%%DOCSDIR%%/ciltoc.html
+%%DOCSDIR%%/contents_motif.gif
+%%DOCSDIR%%/examples/ex1.txt
+%%DOCSDIR%%/examples/ex10.txt
+%%DOCSDIR%%/examples/ex11.txt
+%%DOCSDIR%%/examples/ex12.txt
+%%DOCSDIR%%/examples/ex13.txt
+%%DOCSDIR%%/examples/ex14.txt
+%%DOCSDIR%%/examples/ex15.txt
+%%DOCSDIR%%/examples/ex16.txt
+%%DOCSDIR%%/examples/ex17.txt
+%%DOCSDIR%%/examples/ex18.txt
+%%DOCSDIR%%/examples/ex19.txt
+%%DOCSDIR%%/examples/ex2.txt
+%%DOCSDIR%%/examples/ex20.txt
+%%DOCSDIR%%/examples/ex21.txt
+%%DOCSDIR%%/examples/ex22.txt
+%%DOCSDIR%%/examples/ex23.txt
+%%DOCSDIR%%/examples/ex24.txt
+%%DOCSDIR%%/examples/ex25.txt
+%%DOCSDIR%%/examples/ex26.txt
+%%DOCSDIR%%/examples/ex27.txt
+%%DOCSDIR%%/examples/ex28.txt
+%%DOCSDIR%%/examples/ex29.txt
+%%DOCSDIR%%/examples/ex3.txt
+%%DOCSDIR%%/examples/ex30.txt
+%%DOCSDIR%%/examples/ex31.txt
+%%DOCSDIR%%/examples/ex32.txt
+%%DOCSDIR%%/examples/ex33.txt
+%%DOCSDIR%%/examples/ex34.txt
+%%DOCSDIR%%/examples/ex35.txt
+%%DOCSDIR%%/examples/ex36.txt
+%%DOCSDIR%%/examples/ex37.txt
+%%DOCSDIR%%/examples/ex38.txt
+%%DOCSDIR%%/examples/ex39.txt
+%%DOCSDIR%%/examples/ex4.txt
+%%DOCSDIR%%/examples/ex40.txt
+%%DOCSDIR%%/examples/ex41.txt
+%%DOCSDIR%%/examples/ex42.txt
+%%DOCSDIR%%/examples/ex43.txt
+%%DOCSDIR%%/examples/ex44.txt
+%%DOCSDIR%%/examples/ex5.txt
+%%DOCSDIR%%/examples/ex6.txt
+%%DOCSDIR%%/examples/ex7.txt
+%%DOCSDIR%%/examples/ex8.txt
+%%DOCSDIR%%/examples/ex9.txt
+%%DOCSDIR%%/index.html
+%%DOCSDIR%%/merger.html
+%%DOCSDIR%%/next_motif.gif
+%%DOCSDIR%%/patcher.html
+%%DOCSDIR%%/previous_motif.gif
+@dirrm %%DOCSDIR%%/examples
+@dirrm %%DOCSDIR%%/api-latex
+@dirrm %%DOCSDIR%%/api
+@dirrm %%DOCSDIR%%
+@dirrm libexec/cil
+@dirrm lib/perl5/site_perl/5.6.1/CIL