summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorreinoud <reinoud@pkgsrc.org>2008-01-28 12:08:49 +0000
committerreinoud <reinoud@pkgsrc.org>2008-01-28 12:08:49 +0000
commit99e0a33322e58c04395c1f1fb3090340d16b9de1 (patch)
treecb6401d01d94472b2e37166cb995cfab1c3fb96c /math
parentd72c861a635ecb9d62c400f4dec29586906a60e6 (diff)
downloadpkgsrc-99e0a33322e58c04395c1f1fb3090340d16b9de1.tar.gz
Update math/maxima package to allow it to choose between clisp and sbcl. No
version has been bumped as its default has not changed and sbcl is only working in pkgsrc-wip.
Diffstat (limited to 'math')
-rw-r--r--math/maxima/Makefile7
-rw-r--r--math/maxima/PLIST14
-rw-r--r--math/maxima/options.mk28
3 files changed, 40 insertions, 9 deletions
diff --git a/math/maxima/Makefile b/math/maxima/Makefile
index a9cf1b8f49c..00893724512 100644
--- a/math/maxima/Makefile
+++ b/math/maxima/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2008/01/04 18:49:14 joerg Exp $
+# $NetBSD: Makefile,v 1.17 2008/01/28 12:08:49 reinoud Exp $
#
DISTNAME= maxima-5.14.0
@@ -12,17 +12,18 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://maxima.sourceforge.net/
COMMENT= Computer algebra system
-DEPENDS+= clisp-[0-9]*:../../lang/clisp
+# Note: lisp backend is depended and setup up for in options.mk
DEPENDS+= tk-[0-9]*:../../x11/tk
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+= --enable-clisp
USE_TOOLS+= perl
REPLACE_SH= doc/misc/grepforvariables.sh
INFO_FILES= yes
TEST_TARGET= check
+.include "options.mk"
+
.include "../../mk/bsd.pkg.mk"
diff --git a/math/maxima/PLIST b/math/maxima/PLIST
index f68ccd9bc2a..9dca5c70f70 100644
--- a/math/maxima/PLIST
+++ b/math/maxima/PLIST
@@ -1,12 +1,13 @@
-@comment $NetBSD: PLIST,v 1.8 2008/01/03 20:13:26 tonio Exp $
+@comment $NetBSD: PLIST,v 1.9 2008/01/28 12:08:49 reinoud Exp $
bin/maxima
bin/rmaxima
bin/xmaxima
info/maxima-index.lisp
info/maxima.info
info/xmaxima.info
-lib/maxima/${PKGVERSION}/binary-clisp/lisp.run
-lib/maxima/${PKGVERSION}/binary-clisp/maxima.mem
+${clisp}lib/maxima/${PKGVERSION}/binary-clisp/lisp.run
+${clisp}lib/maxima/${PKGVERSION}/binary-clisp/maxima.mem
+${sbcl}lib/maxima/${PKGVERSION}/binary-sbcl/maxima.core
libexec/maxima/${PKGVERSION}/mgnuplot
man/man1/maxima.1
share/maxima/${PKGVERSION}/demo/array.dem
@@ -481,13 +482,13 @@ share/maxima/${PKGVERSION}/share/contrib/gf/gf_roots.mac
share/maxima/${PKGVERSION}/share/contrib/gf/gf_roots_test.mac
share/maxima/${PKGVERSION}/share/contrib/ggf.mac
share/maxima/${PKGVERSION}/share/contrib/graph2d.lisp
-share/maxima/${PKGVERSION}/share/contrib/graphs/create_graph.mac
share/maxima/${PKGVERSION}/share/contrib/graphs/cgraphs.mac
+share/maxima/${PKGVERSION}/share/contrib/graphs/create_graph.mac
share/maxima/${PKGVERSION}/share/contrib/graphs/demoucron.lisp
share/maxima/${PKGVERSION}/share/contrib/graphs/draw_graph.mac
+share/maxima/${PKGVERSION}/share/contrib/graphs/graph6.lisp
share/maxima/${PKGVERSION}/share/contrib/graphs/graph_core.lisp
share/maxima/${PKGVERSION}/share/contrib/graphs/graph_polynomials.mac
-share/maxima/${PKGVERSION}/share/contrib/graphs/graph6.lisp
share/maxima/${PKGVERSION}/share/contrib/graphs/graphio.mac
share/maxima/${PKGVERSION}/share/contrib/graphs/graphs.mac
share/maxima/${PKGVERSION}/share/contrib/graphs/graphs.system
@@ -1645,6 +1646,7 @@ share/maxima/${PKGVERSION}/xmaxima/plotmaxima.html
@dirrm share/maxima
@dirrm libexec/maxima/${PKGVERSION}
@dirrm libexec/maxima
-@dirrm lib/maxima/${PKGVERSION}/binary-clisp
+${clisp}@dirrm lib/maxima/${PKGVERSION}/binary-clisp
+${sbcl}@dirrm lib/maxima/${PKGVERSION}/binary-sbcl
@dirrm lib/maxima/${PKGVERSION}
@dirrm lib/maxima
diff --git a/math/maxima/options.mk b/math/maxima/options.mk
new file mode 100644
index 00000000000..3484ea750fb
--- /dev/null
+++ b/math/maxima/options.mk
@@ -0,0 +1,28 @@
+# $NetBSD: options.mk,v 1.1 2008/01/28 12:08:49 reinoud Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.maxima
+PKG_OPTIONS_REQUIRED_GROUPS= lisp
+PKG_OPTIONS_GROUP.lisp= clisp sbcl
+
+PKG_SUGGESTED_OPTIONS+= clisp
+
+.include "../../mk/bsd.options.mk"
+
+# Select Lisp backend
+.if !empty(PKG_OPTIONS:Mclisp)
+DEPENDS+= clisp-[0-9]*:../../lang/clisp
+CONFIGURE_ARGS+= --enable-clisp
+.endif
+.if !empty(PKG_OPTIONS:Msbcl)
+DEPENDS+= sbcl-[0-9]*:../../lang/sbcl
+CONFIGURE_ARGS+= --enable-sbcl
+.endif
+
+# Modify PLIST
+.for opt in clisp sbcl
+.if !empty(PKG_OPTIONS:M${opt})
+PLIST_SUBST+= ${opt}=""
+.else
+PLIST_SUBST+= ${opt}="@comment "
+.endif
+.endfor