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
|
2011-04-11 10:04:08 +02:00
|
|
|
PORTVERSION= 5.24.0
|
2010-08-09 10:38:48 +02:00
|
|
|
CATEGORIES= math lisp tk
|
2009-08-27 17:04:16 +02:00
|
|
|
MASTER_SITES= SF/maxima/Maxima-source/${PORTVERSION}-source
|
2003-01-19 14:22:15 +01:00
|
|
|
|
2010-07-08 14:51:37 +02:00
|
|
|
MAINTAINER= bf@FreeBSD.org
|
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
|
|
|
|
2010-08-20 06:41:28 +02:00
|
|
|
LICENSE= GPLv2
|
2008-12-14 11:18:32 +01:00
|
|
|
USE_TK = 84+
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_PERL5_BUILD= yes
|
2011-04-11 10:04:08 +02:00
|
|
|
USE_PYTHON_BUILD= yes
|
|
|
|
GNU_CONFIGURE= yes
|
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)
|
2011-04-11 10:04:08 +02:00
|
|
|
. if ${ARCH} == "i386"
|
|
|
|
DYNAMIC_SPACE_SIZE?= 512
|
|
|
|
. endif
|
|
|
|
. if defined(DYNAMIC_SPACE_SIZE)
|
|
|
|
MAXIMA_LISP_OPTIONS+= --dynamic-space-size ${DYNAMIC_SPACE_SIZE}
|
|
|
|
. endif
|
|
|
|
. if defined(MAXIMA_LISP_OPTIONS) && !empty(MAXIMA_LISP_OPTIONS)
|
|
|
|
LISPSELECT= --with-sbcl="sbcl ${MAXIMA_LISP_OPTIONS}"
|
|
|
|
. else
|
2005-02-07 08:04:45 +01:00
|
|
|
LISPSELECT= --enable-sbcl
|
2011-04-11 10:04:08 +02:00
|
|
|
. endif
|
2005-02-07 08:04:45 +01:00
|
|
|
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:
|
2009-04-27 01:25:39 +02:00
|
|
|
${FIND} -X ${WRKSRC}/archive ${WRKSRC}/interfaces/xmaxima \
|
2011-04-11 10:04:08 +02:00
|
|
|
-name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} -e "s;tclsh;${TCLSH};g"
|
|
|
|
${REINPLACE_CMD} -e "s;/usr;${LOCALBASE};g" ${WRKSRC}/src/intl.lisp
|
|
|
|
(cd ${WRKSRC}/doc/info ; ${LOCALBASE}/bin/bash ./fix_crlf ; \
|
|
|
|
${LOCALBASE}/bin/bash ./fix_tab)
|
|
|
|
.if defined(MAXIMA_LISP_OPTIONS) && !empty(MAXIMA_LISP_OPTIONS)
|
|
|
|
${REINPLACE_CMD} -e 's;"@SBCL_NAME@";@SBCL_NAME@;' \
|
|
|
|
${WRKSRC}/src/maxima.in
|
|
|
|
.endif
|
2003-01-19 14:22:15 +01:00
|
|
|
|
2011-04-11 10:04:08 +02:00
|
|
|
test check: build
|
|
|
|
(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${_MAKE_JOBS} \
|
|
|
|
${MAKE_ARGS} check)
|
2008-09-03 17:17:34 +02:00
|
|
|
|
2005-02-07 08:04:45 +01:00
|
|
|
.include <bsd.port.post.mk>
|