openbsd-ports/devel/cil/Makefile

65 lines
1.7 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.20 2010/12/07 14:57:19 dcoppa Exp $
# until tested on others, even though bytecode is produced
ONLY_FOR_ARCHS= i386 amd64 powerpc
COMMENT= framework for analysis and transformation of C
2009-03-11 17:20:27 -04:00
DISTNAME= cil-1.3.6
REVISION= 3
CATEGORIES= devel lang
2010-11-12 12:17:27 -05:00
HOMEPAGE= http://www.eecs.berkeley.edu/~necula/cil/
MASTER_SITES= ${HOMEPAGE}/distrib/
# BSD license
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2004-11-23 06:22:00 -05:00
WANTLIB= c curses m pthread
2004-08-10 16:41:47 -04:00
MODULES= lang/ocaml
WRKDIST= ${WRKDIR}/cil
OURFILES= nullint kerneltrace randomvars
2009-03-11 17:20:27 -04:00
CONFIGURE_STYLE= autoconf no-autoheader
AUTOCONF_VERSION= 2.61
USE_GMAKE= yes
ALL_TARGET= setup
CONFIGURE_ARGS= EXTRAFEATURES="${OURFILES}"
P5SITE= libdata/perl5/site_perl
P5INST= ${PREFIX}/${P5SITE}
SUBST_VARS+= P5SITE
GCC=/usr/bin/gcc # cant use CC in case it's set to cilly
post-extract:
.for i in ${OURFILES}
@cp ${FILESDIR}/$i.ml ${WRKSRC}/src/ext
.endfor
2005-10-18 15:09:46 -04:00
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/libexec/cil
${INSTALL_DATA_DIR} ${P5INST}/CIL
post-install:
sed -e 's,@CILHOME@,${LOCALBASE},g' \
-e 's,@CILLIBDIR@,${LOCALBASE}/${P5SITE}/CIL,g' \
-e 's,@ARCHOS@,libexec/cil,g' \
2005-05-09 09:52:38 -04:00
-e 's,@DEFAULT_CIL_MODE@,GNUCC,g' \
-e 's,@CC@,${GCC},g' < \
${WRKSRC}/bin/CilConfig.pm.in > ${P5INST}/CilConfig.pm
${INSTALL_SCRIPT} ${WRKBUILD}/bin/cilly ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKBUILD}/bin/patcher ${PREFIX}/bin
.for i in Cilly KeptFile OutputFile TempFile
${INSTALL_DATA} ${WRKSRC}/lib/${i}.pm ${P5INST}/CIL
.endfor
.for i in machdep.exe cilly.byte.exe cilly.asm.exe
${INSTALL_PROGRAM} ${WRKBUILD}/obj/x86_LINUX/${i} ${PREFIX}/libexec/cil
.endfor
.include <bsd.port.mk>