mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-07 02:06:57 +00:00
6b71027429
PR: ports/149736 Submitted by: Timothy Beyer (maintainer)
173 lines
4.5 KiB
Makefile
173 lines
4.5 KiB
Makefile
# New ports collection makefile for: isabelle
|
|
# Date created: 08 August 2005
|
|
# Whom: Timothy Bourke <timbob@bigpond.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= isabelle
|
|
PORTVERSION= 2009.2
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://isabelle.in.tum.de/dist/ \
|
|
http://www.cl.cam.ac.uk/Research/HVG/Isabelle/dist/ \
|
|
http://mirror.cse.unsw.edu.au/pub/isabelle/dist/
|
|
DISTNAME= Isabelle2009-2
|
|
.if !defined(NOPORTDOCS)
|
|
DISTFILES= ${DISTNAME}.tar.gz \
|
|
${DISTNAME}_library.tar.gz
|
|
.endif
|
|
|
|
MAINTAINER= beyert@cs.ucr.edu
|
|
COMMENT= A generic proof assistant
|
|
|
|
LICENSE= BSD
|
|
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
|
|
|
|
OPTIONS= POLYML "Use Poly/ML (fast but broken) instead of SML/NJ" off
|
|
OPTIONS+= RLWRAP "Use rlwrap as line editor" on
|
|
OPTIONS+= LEDIT "Use ledit as line editor" off
|
|
OPTIONS+= HOL_ALGEBRA "Build optional heap: HOL-Algebra" off
|
|
OPTIONS+= HOL_NOMINAL "Build optional heap: HOL-Nominal" off
|
|
OPTIONS+= HOL_NSA "Build optional heap: HOL-NSA" off
|
|
OPTIONS+= HOL_WORD "Build optional heap: HOL-Word" off
|
|
OPTIONS+= HOL_TLA "Build optional heap: TLA" off
|
|
OPTIONS+= HOL_HOL4 "Build optional heap: HOL4" off
|
|
OPTIONS+= EMACS_PKG "Build with Emacs Packages" off
|
|
|
|
USE_PERL5= yes
|
|
|
|
.if defined(WITH_EMACS_PKG)
|
|
USE_EMACS= yes # for EMACS_SITE_LISPDIR
|
|
EMACS_NO_BUILD_DEPENDS=yes
|
|
EMACS_NO_RUN_DEPENDS=yes
|
|
RUN_DEPENDS+= proofgeneral:${PORTSDIR}/math/proofgeneral
|
|
.else
|
|
.endif
|
|
|
|
BUILD_DEPENDS+= bash:${PORTSDIR}/shells/bash
|
|
RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash
|
|
|
|
DOCFILES= Contents *.pdf *.eps *.ps *.dvi
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_RLWRAP)
|
|
RUN_DEPENDS+= rlwrap:${PORTSDIR}/devel/rlwrap
|
|
LINE_EDIT= "${PREFIX}/bin/rlwrap"
|
|
.else
|
|
.if defined(WITH_LEDIT)
|
|
RUN_DEPENDS+= ledit:${PORTSDIR}/sysutils/ledit
|
|
LINE_EDIT= "${PREFIX}/bin/ledit"
|
|
.else
|
|
LINE_EDIT= ""
|
|
.endif
|
|
.endif
|
|
|
|
.if defined(WITH_HOL_ALGEBRA)
|
|
HEAP_HOL_ALGEBRA=""
|
|
EXTRA_HOL+=-m HOL-Algebra
|
|
.else
|
|
HEAP_HOL_ALGEBRA="@comment "
|
|
.endif
|
|
.if defined(WITH_HOL_NOMINAL)
|
|
HEAP_HOL_NOMINAL=""
|
|
EXTRA_HOL+=-m HOL-Nominal
|
|
.else
|
|
HEAP_HOL_NOMINAL="@comment "
|
|
.endif
|
|
.if defined(WITH_HOL_NSA)
|
|
HEAP_HOL_NSA=""
|
|
EXTRA_HOL+=-m HOL-NSA
|
|
.else
|
|
HEAP_HOL_NSA="@comment "
|
|
.endif
|
|
.if defined(WITH_HOL_WORD)
|
|
HEAP_HOL_WORD=""
|
|
EXTRA_HOL+=-m HOL-Word
|
|
.else
|
|
HEAP_HOL_WORD="@comment "
|
|
.endif
|
|
.if defined(WITH_HOL_TLA)
|
|
HEAP_HOL_TLA=""
|
|
EXTRA_HOL+=-m TLA
|
|
.else
|
|
HEAP_HOL_TLA="@comment "
|
|
.endif
|
|
.if defined(WITH_HOL_HOL4)
|
|
HEAP_HOL_HOL4=""
|
|
EXTRA_HOL+=-m HOL4
|
|
.else
|
|
HEAP_HOL_HOL4="@comment "
|
|
.endif
|
|
|
|
.if !defined(WITH_POLYML)
|
|
ML_SYSTEM= smlnj-110
|
|
ML_HOME= ${LOCALBASE}/smlnj/bin
|
|
ML_OPTIONS= -Ccontrol.poly-eq-warn=false @SMLdebug=/dev/null
|
|
.else
|
|
ML_SYSTEM= polyml-5.3
|
|
ML_HOME= ${LOCALBASE}/bin
|
|
ML_OPTIONS= -H 500
|
|
ML_DBASE= ""
|
|
.endif
|
|
ML_PLATFORM= x86-bsd
|
|
|
|
PLIST_SUB+= HEAPSUBDIR=${ML_SYSTEM}_${ML_PLATFORM} \
|
|
HEAP_HOL_ALGEBRA=${HEAP_HOL_ALGEBRA} \
|
|
HEAP_HOL_NOMINAL=${HEAP_HOL_NOMINAL} \
|
|
HEAP_HOL_NSA=${HEAP_HOL_NSA} \
|
|
HEAP_HOL_WORD=${HEAP_HOL_WORD} \
|
|
HEAP_HOL_TLA=${HEAP_HOL_TLA} \
|
|
HEAP_HOL_HOL4=${HEAP_HOL_HOL4}
|
|
.if !defined(WITH_POLYML)
|
|
BUILD_DEPENDS+= smlnj-devel>=110.71:${PORTSDIR}/lang/sml-nj-devel
|
|
MAKE_ENV+= SMLNJ_DEVEL=yes
|
|
.else
|
|
BUILD_DEPENDS+= polyml>=5.2.1:${PORTSDIR}/lang/polyml
|
|
RUN_DEPENDS+= polyml>=5.2.1:${PORTSDIR}/lang/polyml
|
|
.endif
|
|
|
|
NO_INSTALL_MANPAGES=yes
|
|
|
|
post-extract:
|
|
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
|
|
|
|
post-patch:
|
|
@${MV} ${WRKSRC}/etc/settings ${WRKSRC}/etc/settings.presed
|
|
@${SED} "s|%%ML_SYSTEM%%|${ML_SYSTEM}|; \
|
|
s|%%ML_HOME%%|${ML_HOME}|; \
|
|
s|%%ML_OPTIONS%%|\"${ML_OPTIONS}\"|; \
|
|
s|%%ML_DBASE%%|${ML_DBASE}|; \
|
|
s|%%ML_PLATFORM%%|${ML_PLATFORM}|; \
|
|
s|%%PREFIX%%|${PREFIX}|; \
|
|
s|%%LINE_EDIT%%|${LINE_EDIT}|; \
|
|
s|%%SYSTMPDIR%%|/tmp|; \
|
|
s|%%JAVASHAREDIR%%|${PREFIX}/share/java|; \
|
|
s|%%EMACS_SITE_LISPDIR%%|${EMACS_SITE_LISPDIR}|" \
|
|
${WRKSRC}/etc/settings.presed > ${WRKSRC}/etc/settings
|
|
@${RM} ${WRKSRC}/etc/settings.presed
|
|
@${TOUCH} ${WRKSRC}/contrib/.keep
|
|
@${REINPLACE_CMD} -e 's|%%SMLNJ_VERSION%%|SMLNJ_DEVEL=yes|' \
|
|
${WRKSRC}/lib/scripts/run-smlnj
|
|
|
|
post-build:
|
|
.if defined(EXTRA_HOL)
|
|
${WRKSRC}/build -b ${EXTRA_HOL} HOL
|
|
.endif
|
|
|
|
post-install:
|
|
${WRKSRC}/bin/isabelle install \
|
|
-d ${PREFIX}/share/isabelle \
|
|
-p ${PREFIX}/bin
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for file in ${DOCFILES}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
|
|
.endfor
|
|
(cd ${WRKSRC}; \
|
|
${FIND} -d browser_info -type d -exec ${MKDIR} ${DOCSDIR}/{} \; ; \
|
|
${FIND} -d browser_info -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;)
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|