blob: 181526105c47662d020ec79d4c78ea3ecce8a4c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# New ports collection makefile for: maxima
# Date created: Jun 26 2002
# Whom: Scott Flatman <sf@dsinw.com>
#
# $FreeBSD$
#
PORTNAME= maxima
PORTVERSION= 5.10.0
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=${PORTNAME}
MAINTAINER= sf@slappy.org
COMMENT= Symbolic mathematics program
BUILD_DEPENDS= ${LISPPORT}
LIB_DEPENDS= tk84:${PORTSDIR}/x11-toolkits/tk84
RUN_DEPENDS= ${LOCALBASE}/bin/${LISPPORT} \
${LOCALBASE}/bin/gnuplot:${PORTSDIR}/math/gnuplot \
${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
USE_XLIB= yes
USE_GMAKE= yes
USE_AUTOTOOLS= automake:19 autoconf:259
CONFIGURE_ARGS+= --prefix=${PREFIX} \
--with-posix-shell=${LOCALBASE}/bin/bash \
--with-wish=${LOCALBASE}/bin/wish8.4 \
${LISPSELECT}
# don't pass "-s" to install to avoid trying to strip a shell script
CONFIGURE_ENV= INSTALL_PROGRAM="${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}"
MAN1= maxima.1
INFO= maxima
PLIST_SUB= BINDIR=${BINDIRECTORY}
PLIST_SUB+= LISPBIN=${LISPBINARY}
PLIST_SUB+= MAXIMABIN=${MAXIMABINARY}
PLIST_SUB+= PORTVERSION=${PORTVERSION}
.include <bsd.port.pre.mk>
# Lisp to build with. Define only ONE of these!
#WITH_CLISP= yes
#WITH_CMUCL= yes
#WITH_GCL= yes
WITH_SBCL= yes
.if defined(WITH_CLISP)
LISPSELECT= --enable-clisp
LISPPORT= clisp:${PORTSDIR}/lang/clisp
BINDIRECTORY= binary-clisp
LISPBINARY= lisp.run
PLIST_SUB+= LISPBINARY=""
MAXIMABINARY= maxima.mem
.endif
.if defined(WITH_CMUCL)
LISPSELECT= --enable-cmucl
LISPPORT= lisp:${PORTSDIR}/lang/cmucl
BINDIRECTORY= binary-cmucl
LISPBINARY= lisp
PLIST_SUB+= LISPBINARY=""
MAXIMABINARY= maxima.core
.endif
.if defined(WITH_GCL)
LISPSELECT= --enable-gcl
LISPPORT= gcl:${PORTSDIR}/lang/gcl
BINDIRECTORY= binary-gcl
#LISPBINARY is null so fudge this so deinstall works cleanly
PLIST_SUB+= LISPBINARY="@comment "
MAXIMABINARY= maxima
.endif
.if defined(WITH_SBCL)
LISPSELECT= --enable-sbcl
LISPPORT= sbcl:${PORTSDIR}/lang/sbcl
BINDIRECTORY= binary-sbcl
#LISPBINARY is null so fudge this so deinstall works cleanly
PLIST_SUB+= LISPBINARY="@comment "
MAXIMABINARY= maxima.core
.endif
pre-everything::
@${ECHO} ""
@${ECHO} "Maxima has the following tunable options:"
@${ECHO} " WITH_CLISP Build with Clisp"
@${ECHO} " WITH_CMUCL Build with CMU Common Lisp"
@${ECHO} " WITH_GCL Build with GNU Common Lisp"
@${ECHO} " WITH_SBCL Build with Steel Bank Common Lisp (default)"
@${ECHO} ""
# rebuild older aclocal.m4
pre-configure:
(cd ${WRKSRC} ; ${CP} -p aclocal.m4 aclocal.m4.orig ; ${ACLOCAL})
post-install:
@${RM} -f ${PREFIX}/info/contrib.info
@${RM} -f ${PREFIX}/info/descriptive.info
@${RM} -f ${PREFIX}/info/distrib.info
@${RM} -f ${PREFIX}/info/numericalio.info
@${RM} -f ${PREFIX}/info/simplex.info
@${RM} -f ${PREFIX}/info/solve_rec.info
@${RM} -f ${PREFIX}/info/stringproc.info
@${RM} -f ${PREFIX}/info/linearalgebra.info
@${RM} -f ${PREFIX}/info/orthopoly.info
@${RM} -f ${PREFIX}/info/simplification.info
.include <bsd.port.post.mk>
|