# $NetBSD: Makefile,v 1.4 2001/07/13 16:21:41 wulf Exp $ # DISTNAME= camlp4-3.01.6 CATEGORIES= lang MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/cristal/camlp4/ MAINTAINER= wulf@netbsd.org HOMEPAGE= http://caml.inria.fr/camlp4/ COMMENT= Camlp4 is a Pre-Processor-Pretty-Printer for Objective Caml DEPENDS+= ocaml-3.01:../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"