2004-10-16 02:55:32 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= coq
|
2015-05-23 12:06:54 +02:00
|
|
|
PORTVERSION= 8.4.6
|
2016-12-31 10:00:20 +01:00
|
|
|
PORTEPOCH= 3
|
2004-10-16 02:55:32 +02:00
|
|
|
CATEGORIES= math
|
2011-04-25 19:48:54 +02:00
|
|
|
MASTER_SITES= http://coq.inria.fr/distrib/V${COQVERSION}/files/ \
|
2007-07-30 09:36:01 +02:00
|
|
|
ftp://ftp.stack.nl/pub/users/johans/coq/
|
2011-04-25 19:48:54 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${COQVERSION}
|
2006-03-16 16:31:23 +01:00
|
|
|
|
2016-12-31 10:00:20 +01:00
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
2004-10-16 02:55:32 +02:00
|
|
|
COMMENT= Theorem prover based on lambda-C
|
|
|
|
|
2016-11-19 12:39:40 +01:00
|
|
|
LICENSE= LGPL21
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS= camlp5:devel/ocaml-camlp5 \
|
|
|
|
ocamlfind:devel/ocaml-findlib
|
2016-12-31 10:00:20 +01:00
|
|
|
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
|
|
|
|
libfreetype.so:print/freetype2
|
2008-04-17 00:10:53 +02:00
|
|
|
|
2011-04-25 19:48:54 +02:00
|
|
|
COQVERSION= ${PORTVERSION:R}pl${PORTVERSION:E}
|
2016-12-31 10:00:20 +01:00
|
|
|
USES= gmake gettext-runtime
|
|
|
|
USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk20 pango
|
2008-04-06 19:40:47 +02:00
|
|
|
USE_OCAML= yes
|
2004-10-16 02:55:32 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2014-01-11 10:31:40 +01:00
|
|
|
CONFIGURE_ARGS= --prefix ${PREFIX} \
|
|
|
|
--mandir ${PREFIX}/man \
|
|
|
|
--emacslib ${PREFIX}/share/emacs/site-lisp \
|
|
|
|
--opt
|
2016-12-31 10:00:20 +01:00
|
|
|
ALL_TARGET= world
|
2014-01-11 10:31:40 +01:00
|
|
|
|
2016-11-19 12:39:40 +01:00
|
|
|
BROKEN_powerpc= does not link
|
|
|
|
|
2016-12-31 10:00:20 +01:00
|
|
|
STRIP_FILES= \
|
|
|
|
lib/coq/dllcoqrun.so \
|
|
|
|
lib/coq/plugins/cc/cc_plugin.cmxs \
|
|
|
|
lib/coq/plugins/decl_mode/decl_mode_plugin.cmxs \
|
|
|
|
lib/coq/plugins/extraction/extraction_plugin.cmxs \
|
|
|
|
lib/coq/plugins/field/field_plugin.cmxs \
|
|
|
|
lib/coq/plugins/firstorder/ground_plugin.cmxs \
|
|
|
|
lib/coq/plugins/fourier/fourier_plugin.cmxs \
|
|
|
|
lib/coq/plugins/funind/recdef_plugin.cmxs \
|
|
|
|
lib/coq/plugins/micromega/micromega_plugin.cmxs \
|
|
|
|
lib/coq/plugins/nsatz/nsatz_plugin.cmxs \
|
|
|
|
lib/coq/plugins/omega/omega_plugin.cmxs \
|
|
|
|
lib/coq/plugins/quote/quote_plugin.cmxs \
|
|
|
|
lib/coq/plugins/ring/ring_plugin.cmxs \
|
|
|
|
lib/coq/plugins/romega/romega_plugin.cmxs \
|
|
|
|
lib/coq/plugins/rtauto/rtauto_plugin.cmxs \
|
|
|
|
lib/coq/plugins/setoid_ring/newring_plugin.cmxs \
|
|
|
|
lib/coq/plugins/subtac/subtac_plugin.cmxs \
|
|
|
|
lib/coq/plugins/syntax/ascii_syntax_plugin.cmxs \
|
|
|
|
lib/coq/plugins/syntax/nat_syntax_plugin.cmxs \
|
|
|
|
lib/coq/plugins/syntax/numbers_syntax_plugin.cmxs \
|
|
|
|
lib/coq/plugins/syntax/r_syntax_plugin.cmxs \
|
|
|
|
lib/coq/plugins/syntax/string_syntax_plugin.cmxs \
|
|
|
|
lib/coq/plugins/syntax/z_syntax_plugin.cmxs \
|
|
|
|
lib/coq/plugins/xml/xml_plugin.cmxs
|
|
|
|
|
2014-01-11 10:31:40 +01:00
|
|
|
OPTIONS_DEFINE= DOCS IDE
|
2016-05-23 22:35:01 +02:00
|
|
|
OPTIONS_DEFAULT= IDE
|
2014-01-11 10:31:40 +01:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
IDE_DESC= Include desktop environment (coqide)
|
2016-04-01 16:16:16 +02:00
|
|
|
IDE_BUILD_DEPENDS= lablgtk2:x11-toolkits/ocaml-lablgtk2
|
2016-11-19 12:39:40 +01:00
|
|
|
IDE_RUN_DEPENDS= lablgtk2:x11-toolkits/ocaml-lablgtk2
|
2014-01-11 10:31:40 +01:00
|
|
|
IDE_CONFIGURE_OFF= --coqide no
|
2014-07-23 15:04:15 +02:00
|
|
|
DOCS_USE= TEX=latex:build,dvipsk:build,texmf:build
|
2016-04-01 16:16:16 +02:00
|
|
|
DOCS_BUILD_DEPENDS= hevea:textproc/hevea
|
2014-01-11 10:31:40 +01:00
|
|
|
DOCS_CONFIGURE_OFF= --with-doc none
|
|
|
|
PORTDOCS= *
|
2012-06-28 18:12:21 +02:00
|
|
|
|
2014-09-03 18:54:55 +02:00
|
|
|
# Workaround bsd.ocaml.mk to fix packaging
|
|
|
|
add-plist-post:
|
|
|
|
@${DO_NADA}
|
|
|
|
|
2007-03-25 20:44:33 +02:00
|
|
|
post-patch:
|
2016-12-31 10:00:20 +01:00
|
|
|
${REINPLACE_CMD} -e '/FreeBSD.*\.byte/s/^/#/' \
|
|
|
|
-e '/^MAKE=/d' ${WRKSRC}/configure
|
|
|
|
${REINPLACE_CMD} -e '/^#COQINSTALLPREFIX/{s/^#//;s|$$|$${DESTDIR}|;}' \
|
|
|
|
${WRKSRC}/Makefile.build
|
|
|
|
${REINPLACE_CMD} -e '/show_latex_mes/s/)$$/; true)/' \
|
|
|
|
${WRKSRC}/Makefile.doc
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} ${STRIP_FILES}
|
2004-10-16 02:55:32 +02:00
|
|
|
|
2016-11-19 12:39:40 +01:00
|
|
|
.include <bsd.port.mk>
|