pkgsrc/math/maxima/options.mk
reinoud 99e0a33322 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.
2008-01-28 12:08:49 +00:00

28 lines
628 B
Makefile

# $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