aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorbf <bf@FreeBSD.org>2011-12-09 20:54:44 +0800
committerbf <bf@FreeBSD.org>2011-12-09 20:54:44 +0800
commitd96fbd52d918a281127877bb3cd01221e3f95cba (patch)
treec3310dc0d016fed203bf2205b3889466a4779a9a /math
parente1c23f621630e1d514657d9233a0bdf530579f2f (diff)
downloadfreebsd-ports-gnome-d96fbd52d918a281127877bb3cd01221e3f95cba.tar.gz
freebsd-ports-gnome-d96fbd52d918a281127877bb3cd01221e3f95cba.tar.zst
freebsd-ports-gnome-d96fbd52d918a281127877bb3cd01221e3f95cba.zip
update lang/sbcl to 1.0.54, and adjust dependent ports (this allows sbcl to
be build WITH_THREADS on recent versions of FreeBSD once again) [1]; rename *.core files in sbcl and math/maxima so that they are not removed by disk-cleaning scripts [2]; make it possible to use the makesum target in sbcl WITH_SBCL; fix maxima build WITH_CMUCL, and place a default memory cap of 1GiB on amd64; reduce default output from a few targets in maxima, and defer patch cleaning to the pre-build target to make debugging easier PR: 162017 [1], 162680 [2] Approved by: pav (portmgr) Feature safe: yes
Diffstat (limited to 'math')
-rw-r--r--math/fricas/Makefile2
-rw-r--r--math/maxima/Makefile38
-rw-r--r--math/maxima/pkg-message12
-rw-r--r--math/open-axiom/Makefile1
4 files changed, 32 insertions, 21 deletions
diff --git a/math/fricas/Makefile b/math/fricas/Makefile
index c505a670eb3d..30a21db1ea27 100644
--- a/math/fricas/Makefile
+++ b/math/fricas/Makefile
@@ -7,7 +7,7 @@
PORTNAME= fricas
PORTVERSION= 1.1.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION}-full
diff --git a/math/maxima/Makefile b/math/maxima/Makefile
index e40849057dd2..e63f04a7e295 100644
--- a/math/maxima/Makefile
+++ b/math/maxima/Makefile
@@ -7,20 +7,21 @@
PORTNAME= maxima
PORTVERSION= 5.25.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= math lisp tk
MASTER_SITES= SF/maxima/Maxima-source/${PORTVERSION}-source
MAINTAINER= bf@FreeBSD.org
COMMENT= Symbolic mathematics program
+LICENSE= GPLv2
+
BUILD_DEPENDS= ${LOCALBASE}/bin/${LISPPORT}
PATCH_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
RUN_DEPENDS= ${LOCALBASE}/bin/${LISPPORT} \
${LOCALBASE}/bin/gnuplot:${PORTSDIR}/math/gnuplot \
${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
-LICENSE= GPLv2
USE_TK = 84+
USE_GMAKE= yes
USE_PERL5_BUILD= yes
@@ -60,7 +61,8 @@ LISPPORT= lisp:${PORTSDIR}/lang/cmucl
BINDIRECTORY= binary-cmucl
LISPBINARY= lisp
PLIST_SUB+= LISPBINARY=""
-MAXIMABINARY= maxima.core
+MAXIMABINARY= maxima_core
+STRIP= #strip(1) chokes on LISPBINARY
.elif defined(WITHOUT_CLISP) && defined(WITHOUT_CMUCL) && defined(WITH_GCL) && defined(WITHOUT_SBCL)
LISPSELECT= --enable-gcl
LISPPORT= gcl:${PORTSDIR}/lang/gcl
@@ -71,6 +73,8 @@ MAXIMABINARY= maxima
.elif defined(WITHOUT_CLISP) && defined(WITHOUT_CMUCL) && defined(WITHOUT_GCL) && defined(WITH_SBCL)
. if ${ARCH} == "i386"
DYNAMIC_SPACE_SIZE?= 512
+. else
+DYNAMIC_SPACE_SIZE?= 1024
. endif
. if defined(DYNAMIC_SPACE_SIZE)
MAXIMA_LISP_OPTIONS+= --dynamic-space-size ${DYNAMIC_SPACE_SIZE}
@@ -84,29 +88,37 @@ 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
+MAXIMABINARY= maxima_core
.else
IGNORE= define only one lisp
.endif
post-patch:
- ${FIND} -X ${WRKSRC}/archive ${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)
+ @${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
.if defined(MAXIMA_LISP_OPTIONS) && !empty(MAXIMA_LISP_OPTIONS)
- ${REINPLACE_CMD} -e 's;"@SBCL_NAME@";@SBCL_NAME@;' \
+ @${REINPLACE_CMD} -e 's;"@SBCL_NAME@";@SBCL_NAME@;g' \
${WRKSRC}/src/maxima.in
.endif
+pre-build:
+ @${FIND} ${WRKSRC} \( -name '*.bak' -o -name '*.fbsd10bak' -o \
+ -name '*.orig' \) -delete
+
post-install:
@${ECHO_MSG} ""
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG} ""
-test check: build
- (cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${_MAKE_JOBS} \
- ${MAKE_ARGS} check)
+check test: build
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${_MAKE_JOBS} \
+ ${MAKE_ARGS} check
.include <bsd.port.post.mk>
diff --git a/math/maxima/pkg-message b/math/maxima/pkg-message
index 0c12e3ea65cd..ac35095ac1a2 100644
--- a/math/maxima/pkg-message
+++ b/math/maxima/pkg-message
@@ -1,7 +1,5 @@
-When built with sbcl, maxima imposes a default memory
-limit of 512MB on i386. A limit can be imposed on other
-architectures, or changed on i386, by defining
-DYNAMIC_SPACE_SIZE appropriately in the build environment.
-The limit can be overridden at runtime, via the
--X/--lisp-options option, or by defining the environment
-variable MAXIMA_LISP_OPTIONS.
+When built with sbcl, maxima imposes a default memory limit of 512MiB on i386,
+and 1GiB on amd64. The limit can be changed by defining DYNAMIC_SPACE_SIZE
+in the build environment. The limit can be overridden later, at run-time,
+via the -X or --lisp-options options, or by defining the environment variable
+MAXIMA_LISP_OPTIONS.
diff --git a/math/open-axiom/Makefile b/math/open-axiom/Makefile
index f19b7e2c93fd..f2c76be0687c 100644
--- a/math/open-axiom/Makefile
+++ b/math/open-axiom/Makefile
@@ -7,6 +7,7 @@
PORTNAME= open-axiom
PORTVERSION= 1.4.1
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}