Lines 2-8
Link Here
|
2 |
# Date created: 08 August 2005 |
2 |
# Date created: 08 August 2005 |
3 |
# Whom: Timothy Bourke <timbob@bigpond.com> |
3 |
# Whom: Timothy Bourke <timbob@bigpond.com> |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/math/isabelle/Makefile,v 1.3 2006/08/10 12:04:59 rafan Exp $ |
5 |
# $FreeBSD$ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= isabelle |
8 |
PORTNAME= isabelle |
Lines 22-28
Link Here
|
22 |
COMMENT= A generic proof assistant |
22 |
COMMENT= A generic proof assistant |
23 |
|
23 |
|
24 |
OPTIONS= SMLNJ "Use SML/NJ (devel) instead of the faster Poly/ML" Off |
24 |
OPTIONS= SMLNJ "Use SML/NJ (devel) instead of the faster Poly/ML" Off |
25 |
NO_PACKAGE= Requires non-standard kernel setting. |
|
|
26 |
|
25 |
|
27 |
.include <bsd.port.pre.mk> |
26 |
.include <bsd.port.pre.mk> |
28 |
|
27 |
|
Lines 30-40
Link Here
|
30 |
ML_SYSTEM= smlnj-110 |
29 |
ML_SYSTEM= smlnj-110 |
31 |
ML_HOME= ${LOCALBASE}/smlnj/bin |
30 |
ML_HOME= ${LOCALBASE}/smlnj/bin |
32 |
ML_OPTIONS= @SMLdebug=/dev/null |
31 |
ML_OPTIONS= @SMLdebug=/dev/null |
|
|
32 |
ML_PLATFORM= x86-bsd |
33 |
.else |
33 |
.else |
34 |
ML_SYSTEM= polyml-4.2.0 |
34 |
ML_SYSTEM= polyml-5.0 |
35 |
ML_HOME= ${LOCALBASE}/lib/polyml/ |
35 |
ML_HOME= ${LOCALBASE}/bin |
36 |
ML_OPTIONS= -H 80 |
36 |
ML_OPTIONS= -H 500 |
37 |
ML_DBASE= "" |
37 |
ML_DBASE= "" |
|
|
38 |
ML_PLATFORM= "" |
38 |
.endif |
39 |
.endif |
39 |
|
40 |
|
40 |
USE_PERL5= yes |
41 |
USE_PERL5= yes |
Lines 43-54
Link Here
|
43 |
|
44 |
|
44 |
DOCFILES= Contents *.pdf *.eps *.ps *.dvi |
45 |
DOCFILES= Contents *.pdf *.eps *.ps *.dvi |
45 |
|
46 |
|
46 |
PLIST_SUB= HEAPSUBDIR=${ML_SYSTEM}_x86-bsd |
|
|
47 |
|
48 |
.if defined(WITH_SMLNJ) |
47 |
.if defined(WITH_SMLNJ) |
|
|
48 |
PLIST_SUB= HEAPSUBDIR=${ML_SYSTEM}_${ML_PLATFORM} |
49 |
BUILD_DEPENDS+= sml:${PORTSDIR}/lang/sml-nj-devel |
49 |
BUILD_DEPENDS+= sml:${PORTSDIR}/lang/sml-nj-devel |
50 |
RUN_DEPENDS+= sml:${PORTSDIR}/lang/sml-nj-devel |
50 |
RUN_DEPENDS+= sml:${PORTSDIR}/lang/sml-nj-devel |
51 |
.else |
51 |
.else |
|
|
52 |
PLIST_SUB= HEAPSUBDIR=${ML_SYSTEM} |
52 |
BUILD_DEPENDS+= poly:${PORTSDIR}/lang/polyml |
53 |
BUILD_DEPENDS+= poly:${PORTSDIR}/lang/polyml |
53 |
RUN_DEPENDS+= poly:${PORTSDIR}/lang/polyml |
54 |
RUN_DEPENDS+= poly:${PORTSDIR}/lang/polyml |
54 |
.endif |
55 |
.endif |
Lines 57-64
Link Here
|
57 |
|
58 |
|
58 |
post-extract: |
59 |
post-extract: |
59 |
@${CP} ${FILESDIR}/Makefile ${WRKSRC} |
60 |
@${CP} ${FILESDIR}/Makefile ${WRKSRC} |
60 |
@${CP} ${FILESDIR}/polyml-4.1.4-patch.ML ${WRKSRC}/src/Pure/ML-Systems/ |
61 |
@${CP} ${FILESDIR}/run-polyml-5.0 ${WRKSRC}/lib/scripts/ |
61 |
@${CP} ${FILESDIR}/polyml-4.2.0.ML ${WRKSRC}/src/Pure/ML-Systems/ |
62 |
@${CHMOD} ugo+x ${WRKSRC}/lib/scripts/run-polyml-5.0 |
|
|
63 |
@${CP} ${FILESDIR}/polyml-5.0.ML ${WRKSRC}/src/Pure/ML-Systems/ |
64 |
.if !defined(WITH_SMLNJ) |
65 |
@${CP} ${FILESDIR}/proofgeneral-settings.el ${WRKSRC}/etc/ |
66 |
.endif |
62 |
|
67 |
|
63 |
post-patch: |
68 |
post-patch: |
64 |
@${MV} ${WRKSRC}/etc/settings ${WRKSRC}/etc/settings.presed |
69 |
@${MV} ${WRKSRC}/etc/settings ${WRKSRC}/etc/settings.presed |
Lines 66-84
Link Here
|
66 |
s|%%ML_HOME%%|${ML_HOME}|; \ |
71 |
s|%%ML_HOME%%|${ML_HOME}|; \ |
67 |
s|%%ML_OPTIONS%%|\"${ML_OPTIONS}\"|; \ |
72 |
s|%%ML_OPTIONS%%|\"${ML_OPTIONS}\"|; \ |
68 |
s|%%ML_DBASE%%|${ML_DBASE}|; \ |
73 |
s|%%ML_DBASE%%|${ML_DBASE}|; \ |
|
|
74 |
s|%%ML_PLATFORM%%|${ML_PLATFORM}|; \ |
69 |
s|%%PREFIX%%|${PREFIX}|" \ |
75 |
s|%%PREFIX%%|${PREFIX}|" \ |
70 |
${WRKSRC}/etc/settings.presed > ${WRKSRC}/etc/settings |
76 |
${WRKSRC}/etc/settings.presed > ${WRKSRC}/etc/settings |
71 |
@${RM} ${WRKSRC}/etc/settings.presed |
77 |
@${RM} ${WRKSRC}/etc/settings.presed |
72 |
@${TOUCH} ${WRKSRC}/contrib/.keep |
78 |
@${TOUCH} ${WRKSRC}/contrib/.keep |
73 |
|
79 |
|
74 |
pre-build: |
|
|
75 |
.if !defined(WITH_SMLNJ) |
76 |
@if ${TEST} `ulimit -Hd` -lt 917504; then \ |
77 |
${CAT} ${FILESDIR}/badmaxdsiz; \ |
78 |
exit 1; \ |
79 |
fi |
80 |
.endif |
81 |
|
82 |
post-install: |
80 |
post-install: |
83 |
${WRKSRC}/bin/isatool ${INSTALL} -d ${PREFIX}/share/isabelle -p ${PREFIX}/bin |
81 |
${WRKSRC}/bin/isatool ${INSTALL} -d ${PREFIX}/share/isabelle -p ${PREFIX}/bin |
84 |
.if !defined(NOPORTDOCS) |
82 |
.if !defined(NOPORTDOCS) |