# New ports collection makefile for: coq # Date created: 2004-10-11 # Whom: Rene Ladan # # $FreeBSD$ # PORTNAME= coq DISTVERSION= 8.2pl1 PORTEPOCH= 1 CATEGORIES= math MASTER_SITES= http://coq.inria.fr/distrib/V${DISTVERSION}/files/ \ ftp://ftp.stack.nl/pub/users/johans/coq/ MAINTAINER= johans@FreeBSD.org COMMENT= Theorem prover based on lambda-C BUILD_DEPENDS= camlp5:${PORTSDIR}/devel/ocaml-camlp5 USE_OCAML= yes USE_GMAKE= yes ALL_TARGET= world WITH_IDE= yes HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix ${PREFIX} CONFIGURE_ARGS+=--emacslib ${PREFIX}/share/emacs/site-lisp CONFIGURE_ARGS+=--reals all CONFIGURE_ARGS+=--opt .ifdef NOPORTDOCS CONFIGURE_ARGS+=--with-doc none .else BUILD_DEPENDS+= hevea:${PORTSDIR}/textproc/hevea PORTDOCS= * .endif .include .if ${ARCH} == "ia64" BROKEN= OCaml bug prevents compilation .endif MAN1= coq-interface.1 coq-tex.1 coq_makefile.1 coqc.1 coqdep.1 coqdoc.1 \ coqmktop.1 coqtop.1 coqtop.byte.1 coqtop.opt.1 coqwc.1 gallina.1 \ coq-parser.1 .if defined(WITH_IDE) || exists(${LOCALBASE}/bin/lablgtk2) BUILD_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2 RUN_DEPENDS+= ${BUILD_DEPENDS} PLIST_SUB+= IDE="" MAN1+= coqide.1 .else PLIST_SUB+= IDE="@comment " .endif post-patch: @${REINPLACE_CMD} -e '/FreeBSD.*\.byte/s/^/#/' \ -e '1s:/bin/bash:/bin/sh:' \ -e '/^MAKE=/d' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's:/bin/bash:/bin/sh:' \ ${WRKSRC}/Makefile* ${WRKSRC}/install.sh @${REINPLACE_CMD} -e '/show_latex_mes/s/)$$/; true)/' ${WRKSRC}/Makefile.doc .include