2003-01-19 14:22:15 +01:00
|
|
|
# New ports collection makefile for: maxima
|
|
|
|
# Date created: Jun 26 2002
|
|
|
|
# Whom: Scott Flatman <sf@dsinw.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= maxima
|
2008-09-03 17:17:34 +02:00
|
|
|
PORTVERSION= 5.16.3
|
2008-12-01 20:33:14 +01:00
|
|
|
PORTREVISION= 4
|
2008-04-27 05:56:22 +02:00
|
|
|
CATEGORIES= math tk
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
MASTER_SITES= SF
|
2003-01-19 14:22:15 +01:00
|
|
|
|
2008-09-03 17:17:34 +02:00
|
|
|
MAINTAINER= bf2006a@yahoo.com
|
2003-09-16 17:38:46 +02:00
|
|
|
COMMENT= Symbolic mathematics program
|
2003-01-19 14:22:15 +01:00
|
|
|
|
2007-06-11 07:15:28 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/${LISPPORT}
|
2008-06-25 10:34:01 +02:00
|
|
|
PATCH_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
|
2003-09-16 17:38:46 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/${LISPPORT} \
|
2003-05-16 14:45:57 +02:00
|
|
|
${LOCALBASE}/bin/gnuplot:${PORTSDIR}/math/gnuplot \
|
2006-03-29 22:46:27 +02:00
|
|
|
${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
|
2003-01-19 14:22:15 +01:00
|
|
|
|
2008-04-27 05:56:22 +02:00
|
|
|
USE_TK= 84+
|
2003-05-16 14:45:57 +02:00
|
|
|
USE_GMAKE= yes
|
2008-08-20 02:57:32 +02:00
|
|
|
USE_AUTOTOOLS= aclocal:110 autoconf:262
|
2003-05-16 14:45:57 +02:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX} \
|
2003-09-16 17:38:46 +02:00
|
|
|
--with-posix-shell=${LOCALBASE}/bin/bash \
|
2008-04-27 05:56:22 +02:00
|
|
|
--with-wish=${WISH} \
|
2003-09-16 17:38:46 +02:00
|
|
|
${LISPSELECT}
|
2003-01-19 14:22:15 +01:00
|
|
|
|
2006-03-29 22:46:27 +02:00
|
|
|
MAN1= maxima.1
|
2008-06-25 10:34:01 +02:00
|
|
|
INFO= maxima imaxima xmaxima
|
2003-09-16 17:38:46 +02:00
|
|
|
|
2005-02-07 08:04:45 +01:00
|
|
|
PLIST_SUB= BINDIR=${BINDIRECTORY}
|
|
|
|
PLIST_SUB+= LISPBIN=${LISPBINARY}
|
|
|
|
PLIST_SUB+= MAXIMABIN=${MAXIMABINARY}
|
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
2003-09-16 17:38:46 +02:00
|
|
|
|
2007-07-31 04:55:59 +02:00
|
|
|
OPTIONS= CLISP "Build with Clisp" off \
|
|
|
|
CMUCL "Build with CMU Common Lisp" off \
|
|
|
|
GCL "Build with GNU Common Lisp" off \
|
|
|
|
SBCL "Build with Steel Bank Common Lisp" on
|
|
|
|
|
2005-02-07 08:04:45 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-09-16 17:38:46 +02:00
|
|
|
|
2005-02-07 08:04:45 +01:00
|
|
|
# Lisp to build with. Define only ONE of these!
|
2007-07-31 04:55:59 +02:00
|
|
|
.if defined(WITH_CLISP) && defined(WITHOUT_CMUCL) && defined(WITHOUT_GCL) && defined(WITHOUT_SBCL)
|
2005-12-27 05:37:38 +01:00
|
|
|
LISPSELECT= --enable-clisp
|
|
|
|
LISPPORT= clisp:${PORTSDIR}/lang/clisp
|
|
|
|
BINDIRECTORY= binary-clisp
|
|
|
|
LISPBINARY= lisp.run
|
|
|
|
PLIST_SUB+= LISPBINARY=""
|
|
|
|
MAXIMABINARY= maxima.mem
|
2007-07-31 04:55:59 +02:00
|
|
|
.elif defined(WITHOUT_CLISP) && defined(WITH_CMUCL) && defined(WITHOUT_GCL) && defined(WITHOUT_SBCL)
|
2003-09-16 17:38:46 +02:00
|
|
|
LISPSELECT= --enable-cmucl
|
|
|
|
LISPPORT= lisp:${PORTSDIR}/lang/cmucl
|
2005-02-07 08:04:45 +01:00
|
|
|
BINDIRECTORY= binary-cmucl
|
|
|
|
LISPBINARY= lisp
|
2005-12-27 05:37:38 +01:00
|
|
|
PLIST_SUB+= LISPBINARY=""
|
2005-02-07 08:04:45 +01:00
|
|
|
MAXIMABINARY= maxima.core
|
2007-07-31 04:55:59 +02:00
|
|
|
.elif defined(WITHOUT_CLISP) && defined(WITHOUT_CMUCL) && defined(WITH_GCL) && defined(WITHOUT_SBCL)
|
2003-09-16 17:38:46 +02:00
|
|
|
LISPSELECT= --enable-gcl
|
|
|
|
LISPPORT= gcl:${PORTSDIR}/lang/gcl
|
2005-02-07 08:04:45 +01:00
|
|
|
BINDIRECTORY= binary-gcl
|
2005-12-27 05:37:38 +01:00
|
|
|
#LISPBINARY is null so fudge this so deinstall works cleanly
|
|
|
|
PLIST_SUB+= LISPBINARY="@comment "
|
2005-02-07 08:04:45 +01:00
|
|
|
MAXIMABINARY= maxima
|
2007-07-31 04:55:59 +02:00
|
|
|
.elif defined(WITHOUT_CLISP) && defined(WITHOUT_CMUCL) && defined(WITHOUT_GCL) && defined(WITH_SBCL)
|
2005-02-07 08:04:45 +01:00
|
|
|
LISPSELECT= --enable-sbcl
|
|
|
|
LISPPORT= sbcl:${PORTSDIR}/lang/sbcl
|
|
|
|
BINDIRECTORY= binary-sbcl
|
2005-12-27 05:37:38 +01:00
|
|
|
#LISPBINARY is null so fudge this so deinstall works cleanly
|
|
|
|
PLIST_SUB+= LISPBINARY="@comment "
|
2005-02-07 08:04:45 +01:00
|
|
|
MAXIMABINARY= maxima.core
|
2007-07-31 04:55:59 +02:00
|
|
|
.else
|
|
|
|
IGNORE= define only one lisp
|
2005-02-07 08:04:45 +01:00
|
|
|
.endif
|
|
|
|
|
2008-06-25 10:34:01 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e "s;tclsh;${TCLSH};g" ${WRKSRC}/interfaces/xmaxima/Makefile.am \
|
|
|
|
${WRKSRC}/interfaces/xmaxima/Makefile.in
|
|
|
|
( cd ${WRKSRC}/doc/info ; ${LOCALBASE}/bin/bash ./fix_crlf ; \
|
|
|
|
${LOCALBASE}/bin/bash ./fix_tab )
|
2003-01-19 14:22:15 +01:00
|
|
|
|
2008-09-03 17:17:34 +02:00
|
|
|
regression-test: build
|
|
|
|
${LOCALBASE}/bin/bash ${WRKSRC}/src/maxima --batch-string='run_testsuite();'
|
|
|
|
|
2005-02-07 08:04:45 +01:00
|
|
|
.include <bsd.port.post.mk>
|