mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
fa0784d109
- Convert $arch-conditional BROKEN statement into BROKEN_$arch one
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
# Created by: Rene Ladan <r.c.ladan@student.tue.nl>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= coq
|
|
PORTVERSION= 8.4.6
|
|
PORTEPOCH= 2
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://coq.inria.fr/distrib/V${COQVERSION}/files/ \
|
|
ftp://ftp.stack.nl/pub/users/johans/coq/
|
|
DISTNAME= ${PORTNAME}-${COQVERSION}
|
|
|
|
MAINTAINER= johans@FreeBSD.org
|
|
COMMENT= Theorem prover based on lambda-C
|
|
|
|
LICENSE= LGPL21
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= camlp5:devel/ocaml-camlp5 \
|
|
ocamlfind:devel/ocaml-findlib
|
|
|
|
COQVERSION= ${PORTVERSION:R}pl${PORTVERSION:E}
|
|
USES= gmake
|
|
USE_OCAML= yes
|
|
ALL_TARGET= world
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --prefix ${PREFIX} \
|
|
--mandir ${PREFIX}/man \
|
|
--emacslib ${PREFIX}/share/emacs/site-lisp \
|
|
--opt
|
|
MAKE_ENV= COQINSTALLPREFIX=${DESTDIR}
|
|
|
|
BROKEN_powerpc= does not link
|
|
|
|
OPTIONS_DEFINE= DOCS IDE
|
|
OPTIONS_DEFAULT= IDE
|
|
OPTIONS_SUB= yes
|
|
IDE_DESC= Include desktop environment (coqide)
|
|
IDE_BUILD_DEPENDS= lablgtk2:x11-toolkits/ocaml-lablgtk2
|
|
IDE_RUN_DEPENDS= lablgtk2:x11-toolkits/ocaml-lablgtk2
|
|
IDE_CONFIGURE_OFF= --coqide no
|
|
DOCS_USE= TEX=latex:build,dvipsk:build,texmf:build
|
|
DOCS_BUILD_DEPENDS= hevea:textproc/hevea
|
|
DOCS_CONFIGURE_OFF= --with-doc none
|
|
PORTDOCS= *
|
|
|
|
# Workaround bsd.ocaml.mk to fix packaging
|
|
add-plist-post:
|
|
@${DO_NADA}
|
|
|
|
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 '/^#COQINSTALLPREFIX/{s/^#//;s|$$|$${DESTDIR}|;}' \
|
|
${WRKSRC}/Makefile.build
|
|
@${REINPLACE_CMD} -e '/show_latex_mes/s/)$$/; true)/' \
|
|
${WRKSRC}/Makefile.doc
|
|
|
|
.include <bsd.port.mk>
|