aboutsummaryrefslogtreecommitdiffstats
path: root/math/maxima/Makefile
blob: 842e57f4497b7e10345f84169fff10e0f393293a (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
# New ports collection makefile for:    maxima
# Date created:             Jun 26 2002
# Whom:                 Scott Flatman <sf@dsinw.com>
#
# $FreeBSD$
#

PORTNAME=   maxima
PORTVERSION=    5.9.0
PORTREVISION=   1
CATEGORIES= math
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}

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/bash2

BROKEN=     "Does not compile"

USE_XLIB=   yes
USE_GMAKE=  yes
USE_AUTOMAKE_VER=   14
USE_AUTOCONF_VER=   213
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=  LISPBIN=${LISPBINARY}

#Only define ONE of these!
USE_CMUCL=  yes
#USE_GCL=   yes
#USE_CLISP= yes

.if defined(USE_CMUCL)
LISPSELECT= --enable-cmucl
LISPPORT=   lisp:${PORTSDIR}/lang/cmucl
LISPBINARY= binary-cmucl/maxima.core
.endif

.if defined(USE_GCL)
LISPSELECT= --enable-gcl
LISPPORT=   gcl:${PORTSDIR}/lang/gcl
LISPBINARY= binary-gcl/maxima
.endif

.if defined(USE_CLISP)
LISPSELECT= --enable-clisp
LISPPORT=   clisp:${PORTSDIR}/lang/clisp
# The value for LISPBINARY is a guess. Fix when the core dump is sorted out.
LISPBINARY= binary-clisp/maxima.core
BROKEN=     "Dumps core while compiling bessel.fas in CURRENT"
.endif

post-extract:
        @${RM} -f ${WRKSRC}/doc/info/*.info*

.include <bsd.port.mk>