2013-01-05 14:13:46 +00:00
|
|
|
# Created by: Scott Flatman <sf@dsinw.com>
|
2003-01-19 13:22:15 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= maxima
|
2013-11-20 10:06:40 +00:00
|
|
|
PORTVERSION= 5.31.3
|
2010-08-09 08:38:48 +00:00
|
|
|
CATEGORIES= math lisp tk
|
2009-08-27 15:04:16 +00:00
|
|
|
MASTER_SITES= SF/maxima/Maxima-source/${PORTVERSION}-source
|
2003-01-19 13:22:15 +00:00
|
|
|
|
2014-07-31 17:56:59 +00:00
|
|
|
MAINTAINER= bf@FreeBSD.org
|
2003-09-16 15:38:46 +00:00
|
|
|
COMMENT= Symbolic mathematics program
|
2003-01-19 13:22:15 +00:00
|
|
|
|
2012-12-16 05:34:02 +00:00
|
|
|
LICENSE= GPLv2
|
2011-12-09 12:54:44 +00:00
|
|
|
|
2007-06-11 05:15:28 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/${LISPPORT}
|
2008-06-25 08:34:01 +00:00
|
|
|
PATCH_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
|
2003-09-16 15:38:46 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/${LISPPORT} \
|
2003-05-16 12:45:57 +00:00
|
|
|
${LOCALBASE}/bin/gnuplot:${PORTSDIR}/math/gnuplot \
|
2006-03-29 20:46:27 +00:00
|
|
|
${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
|
2003-01-19 13:22:15 +00:00
|
|
|
|
2014-06-26 13:51:14 +00:00
|
|
|
USES= gmake makeinfo perl5 tk:84+
|
2013-09-16 16:32:07 +00:00
|
|
|
USE_PERL5= build
|
2011-04-11 08:04:08 +00:00
|
|
|
USE_PYTHON_BUILD= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2003-05-16 12:45:57 +00:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX} \
|
2003-09-16 15:38:46 +00:00
|
|
|
--with-posix-shell=${LOCALBASE}/bin/bash \
|
2008-04-27 03:56:22 +00:00
|
|
|
--with-wish=${WISH} \
|
2003-09-16 15:38:46 +00:00
|
|
|
${LISPSELECT}
|
2003-01-19 13:22:15 +00:00
|
|
|
|
2008-06-25 08:34:01 +00:00
|
|
|
INFO= maxima imaxima xmaxima
|
2003-09-16 15:38:46 +00:00
|
|
|
|
2005-02-07 07:04:45 +00:00
|
|
|
PLIST_SUB= BINDIR=${BINDIRECTORY}
|
|
|
|
PLIST_SUB+= LISPBIN=${LISPBINARY}
|
|
|
|
PLIST_SUB+= MAXIMABIN=${MAXIMABINARY}
|
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
2003-09-16 15:38:46 +00:00
|
|
|
|
2012-09-13 08:17:46 +00:00
|
|
|
OPTIONS_SINGLE= LISP
|
2012-05-29 10:53:43 +00:00
|
|
|
OPTIONS_SINGLE_LISP= CLISP CMUCL GCL SBCL
|
|
|
|
|
|
|
|
OPTIONS_DEFAULT= SBCL
|
|
|
|
|
|
|
|
CLISP_DESC= Build with Clisp
|
|
|
|
CMUCL_DESC= Build with CMU Common Lisp
|
|
|
|
GCL_DESC= Build with GNU Common Lisp
|
|
|
|
SBCL_DESC= Build with Steel Bank Common Lisp
|
2007-07-31 02:55:59 +00:00
|
|
|
|
2005-02-07 07:04:45 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-09-16 15:38:46 +00:00
|
|
|
|
2005-02-07 07:04:45 +00:00
|
|
|
# Lisp to build with. Define only ONE of these!
|
2012-05-29 10:53:43 +00:00
|
|
|
.if ${PORT_OPTIONS:MCLISP}
|
2005-12-27 04:37:38 +00:00
|
|
|
LISPSELECT= --enable-clisp
|
|
|
|
LISPPORT= clisp:${PORTSDIR}/lang/clisp
|
|
|
|
BINDIRECTORY= binary-clisp
|
|
|
|
LISPBINARY= lisp.run
|
|
|
|
PLIST_SUB+= LISPBINARY=""
|
|
|
|
MAXIMABINARY= maxima.mem
|
2012-05-29 10:53:43 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MCMUCL}
|
2003-09-16 15:38:46 +00:00
|
|
|
LISPSELECT= --enable-cmucl
|
|
|
|
LISPPORT= lisp:${PORTSDIR}/lang/cmucl
|
2005-02-07 07:04:45 +00:00
|
|
|
BINDIRECTORY= binary-cmucl
|
|
|
|
LISPBINARY= lisp
|
2005-12-27 04:37:38 +00:00
|
|
|
PLIST_SUB+= LISPBINARY=""
|
2011-12-09 12:54:44 +00:00
|
|
|
MAXIMABINARY= maxima_core
|
|
|
|
STRIP= #strip(1) chokes on LISPBINARY
|
2012-05-29 10:53:43 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGCL}
|
2003-09-16 15:38:46 +00:00
|
|
|
LISPSELECT= --enable-gcl
|
|
|
|
LISPPORT= gcl:${PORTSDIR}/lang/gcl
|
2005-02-07 07:04:45 +00:00
|
|
|
BINDIRECTORY= binary-gcl
|
2005-12-27 04:37:38 +00:00
|
|
|
#LISPBINARY is null so fudge this so deinstall works cleanly
|
|
|
|
PLIST_SUB+= LISPBINARY="@comment "
|
2005-02-07 07:04:45 +00:00
|
|
|
MAXIMABINARY= maxima
|
2012-05-29 10:53:43 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MSBCL}
|
2011-04-11 08:04:08 +00:00
|
|
|
. if ${ARCH} == "i386"
|
|
|
|
DYNAMIC_SPACE_SIZE?= 512
|
2011-12-09 12:54:44 +00:00
|
|
|
. else
|
|
|
|
DYNAMIC_SPACE_SIZE?= 1024
|
2011-04-11 08:04:08 +00:00
|
|
|
. 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 07:04:45 +00:00
|
|
|
LISPSELECT= --enable-sbcl
|
2011-04-11 08:04:08 +00:00
|
|
|
. endif
|
2005-02-07 07:04:45 +00:00
|
|
|
LISPPORT= sbcl:${PORTSDIR}/lang/sbcl
|
|
|
|
BINDIRECTORY= binary-sbcl
|
2005-12-27 04:37:38 +00:00
|
|
|
#LISPBINARY is null so fudge this so deinstall works cleanly
|
|
|
|
PLIST_SUB+= LISPBINARY="@comment "
|
2011-12-09 12:54:44 +00:00
|
|
|
MAXIMABINARY= maxima_core
|
2005-02-07 07:04:45 +00:00
|
|
|
.endif
|
|
|
|
|
2008-06-25 08:34:01 +00:00
|
|
|
post-patch:
|
2011-12-09 12:54:44 +00:00
|
|
|
@${GREP} -Fe '.core' -l -r ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e 's;\.core;_core;g'
|
|
|
|
@${FIND} -X ${WRKSRC}/interfaces/xmaxima -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
|
|
|
|
@${REINPLACE_CMD} -e 's;$$maxima_image_base;$${maxima_image_base};g' \
|
|
|
|
${WRKSRC}/src/maxima.in
|
2011-04-11 08:04:08 +00:00
|
|
|
.if defined(MAXIMA_LISP_OPTIONS) && !empty(MAXIMA_LISP_OPTIONS)
|
2011-12-09 12:54:44 +00:00
|
|
|
@${REINPLACE_CMD} -e 's;"@SBCL_NAME@";@SBCL_NAME@;g' \
|
2011-04-11 08:04:08 +00:00
|
|
|
${WRKSRC}/src/maxima.in
|
2012-09-13 08:17:46 +00:00
|
|
|
@${REINPLACE_CMD} -e 's;"$$(SBCL_NAME)";$$(SBCL_NAME);g' \
|
|
|
|
${WRKSRC}/src/Makefile.in
|
2011-04-11 08:04:08 +00:00
|
|
|
.endif
|
2003-01-19 13:22:15 +00:00
|
|
|
|
2011-12-09 12:54:44 +00:00
|
|
|
pre-build:
|
|
|
|
@${FIND} ${WRKSRC} \( -name '*.bak' -o -name '*.fbsd10bak' -o \
|
|
|
|
-name '*.orig' \) -delete
|
|
|
|
|
2012-05-22 19:16:09 +00:00
|
|
|
check regression-test test: build
|
2013-10-03 13:47:44 +00:00
|
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} \
|
|
|
|
check
|
2008-09-03 15:17:34 +00:00
|
|
|
|
2005-02-07 07:04:45 +00:00
|
|
|
.include <bsd.port.post.mk>
|