2010-10-17 21:16:08 +02:00
|
|
|
# $NetBSD: options.mk,v 1.5 2010/10/17 19:16:08 asau Exp $
|
2008-12-01 17:29:23 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.maxima
|
|
|
|
PKG_OPTIONS_REQUIRED_GROUPS= lisp
|
|
|
|
PKG_OPTIONS_GROUP.lisp= clisp sbcl ecl
|
|
|
|
|
|
|
|
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
|
|
|
|
.if !empty(PKG_OPTIONS:Mecl)
|
2008-12-20 00:35:05 +01:00
|
|
|
DEPENDS+= ecl-[0-9]*:../../lang/ecl
|
2008-12-01 17:29:23 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ecl
|
2008-12-20 00:35:05 +01:00
|
|
|
.include "../../lang/ecl/buildlink3.mk"
|
2010-10-17 21:16:08 +02:00
|
|
|
.include "../../devel/libffi/buildlink3.mk"
|
2008-12-01 17:29:23 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# Modify PLIST
|
|
|
|
PLIST_VARS+= ${PKG_OPTIONS_GROUP.lisp}
|
|
|
|
.for opt in ${PKG_OPTIONS_GROUP.lisp}
|
|
|
|
. if !empty(PKG_OPTIONS:M${opt})
|
|
|
|
PLIST.${opt}= yes
|
|
|
|
. endif
|
|
|
|
.endfor
|