diff options
author | wulf <wulf@pkgsrc.org> | 2000-06-12 22:36:59 +0000 |
---|---|---|
committer | wulf <wulf@pkgsrc.org> | 2000-06-12 22:36:59 +0000 |
commit | aeaa03b589c0204cc4b5c43c4458c0ba2faabe38 (patch) | |
tree | 7d9d796e0f18d56f1c4d40982bad7ac3f8d08c9e /lang/camlp4/Makefile | |
parent | f1d7c2b8eb49e9ceb38f3eb6957de287ccce6d0d (diff) | |
download | pkgsrc-aeaa03b589c0204cc4b5c43c4458c0ba2faabe38.tar.gz |
Initial import of pkgsrc/lang/camlp4:
camlp4-3.0 A Pre-Processor-Pretty-Printer for Objective Caml
Diffstat (limited to 'lang/camlp4/Makefile')
-rw-r--r-- | lang/camlp4/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lang/camlp4/Makefile b/lang/camlp4/Makefile new file mode 100644 index 00000000000..23773131cf0 --- /dev/null +++ b/lang/camlp4/Makefile @@ -0,0 +1,37 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/06/12 22:36:59 wulf Exp $ +# + +DISTNAME= camlp4-3.00 +CATEGORIES= lang +MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/ + +MAINTAINER= wulf@netbsd.org +HOMEPAGE= http://caml.inria.fr/camlp4/ + +DEPENDS+= ocaml-3.*:../ocaml + +USE_GMAKE= yes +HAS_CONFIGURE= yes + +ALL_TARGET= world +PLIST_SRC= ${WRKDIR}/PLIST + +pre-build: + if ! ${TEST} -x ${LOCALBASE}/bin/ocamlc.opt; then \ + @${ECHO} "No optimized ocaml binaries found"; \ + cd ${WRKSRC}/config; \ + ${MV} Makefile Makefile.orig; \ + ${SED} -e "s/\.opt//g" Makefile.orig > Makefile; \ + fi + +pre-install: + if ${TEST} -x ${LOCALBASE}/bin/ocamlopt; then \ + cd ${WRKSRC}; \ + ${GMAKE} opt; \ + ${CAT} ${PKGDIR}/PLIST.opt > ${PLIST_SRC}; \ + ${CAT} ${PKGDIR}/PLIST >> ${PLIST_SRC}; \ + else \ + ${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}; \ + fi + +.include "../../mk/bsd.pkg.mk" |