2011-12-20 09:23:12 +01:00
|
|
|
# $NetBSD: options.mk,v 1.3 2011/12/20 08:23:12 asau Exp $
|
Import openaxiom-1.2.0 as math/openaxiom.
Packaged by Aleksej Saushev through the pkgsrc-wip project.
OpenAxiom is an open source platform for symbolic, algebraic,
and numerical computations. It offers an interactive environment,
an expressive programming language, a compiler, a large set of
mathematical libraries of interest to researchers and practitioners
of computational sciences.
OpenAxiom strives to support ubiquitous, advanced, high quality
open source computer algebra on major operating systems,
in particular major Unix variants, GNU/Linux variants, Windows,
and handheld devices. It aims at being the open source computer
algebra system of choice for research, teaching, engineering, etc.
2008-08-28 22:07:51 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.openaxiom
|
|
|
|
PKG_OPTIONS_REQUIRED_GROUPS= lisp
|
|
|
|
PKG_OPTIONS_GROUP.lisp= clisp sbcl ecl
|
|
|
|
|
|
|
|
PKG_SUPPORTED_OPTIONS+= x11
|
|
|
|
|
|
|
|
PKG_SUGGESTED_OPTIONS+= clisp x11
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
# Select Lisp backend
|
|
|
|
.if !empty(PKG_OPTIONS:Mclisp)
|
|
|
|
FASL= fas
|
2009-04-18 13:17:33 +02:00
|
|
|
BUILD_DEPENDS+= clisp>=2.41:../../lang/clisp
|
Import openaxiom-1.2.0 as math/openaxiom.
Packaged by Aleksej Saushev through the pkgsrc-wip project.
OpenAxiom is an open source platform for symbolic, algebraic,
and numerical computations. It offers an interactive environment,
an expressive programming language, a compiler, a large set of
mathematical libraries of interest to researchers and practitioners
of computational sciences.
OpenAxiom strives to support ubiquitous, advanced, high quality
open source computer algebra on major operating systems,
in particular major Unix variants, GNU/Linux variants, Windows,
and handheld devices. It aims at being the open source computer
algebra system of choice for research, teaching, engineering, etc.
2008-08-28 22:07:51 +02:00
|
|
|
CONFIGURE_ARGS+= --with-lisp=clisp
|
|
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Msbcl)
|
|
|
|
FASL= fasl
|
2009-04-18 13:17:33 +02:00
|
|
|
BUILD_DEPENDS+= sbcl-[0-9]*:../../lang/sbcl
|
Import openaxiom-1.2.0 as math/openaxiom.
Packaged by Aleksej Saushev through the pkgsrc-wip project.
OpenAxiom is an open source platform for symbolic, algebraic,
and numerical computations. It offers an interactive environment,
an expressive programming language, a compiler, a large set of
mathematical libraries of interest to researchers and practitioners
of computational sciences.
OpenAxiom strives to support ubiquitous, advanced, high quality
open source computer algebra on major operating systems,
in particular major Unix variants, GNU/Linux variants, Windows,
and handheld devices. It aims at being the open source computer
algebra system of choice for research, teaching, engineering, etc.
2008-08-28 22:07:51 +02:00
|
|
|
CONFIGURE_ARGS+= --with-lisp=sbcl
|
|
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mecl)
|
|
|
|
FASL= fas
|
|
|
|
CONFIGURE_ARGS+= --with-lisp=ecl
|
2011-12-20 09:23:12 +01:00
|
|
|
.include "../../devel/libffi/buildlink3.mk"
|
Import openaxiom-1.2.0 as math/openaxiom.
Packaged by Aleksej Saushev through the pkgsrc-wip project.
OpenAxiom is an open source platform for symbolic, algebraic,
and numerical computations. It offers an interactive environment,
an expressive programming language, a compiler, a large set of
mathematical libraries of interest to researchers and practitioners
of computational sciences.
OpenAxiom strives to support ubiquitous, advanced, high quality
open source computer algebra on major operating systems,
in particular major Unix variants, GNU/Linux variants, Windows,
and handheld devices. It aims at being the open source computer
algebra system of choice for research, teaching, engineering, etc.
2008-08-28 22:07:51 +02:00
|
|
|
.include "../../lang/ecl/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Fix suffix for "fast load" files:
|
|
|
|
PLIST_SUBST+= FASL=${FASL:Q}
|
|
|
|
|
|
|
|
# Generalize "fast load" files
|
|
|
|
PRINT_PLIST_AWK+= {gsub(/\.${FASL}$$/, ".$${FASL}");}
|
|
|
|
.if !empty(PKG_OPTIONS:Mclisp)
|
|
|
|
# Handle CLISP-specific files
|
|
|
|
PRINT_PLIST_AWK+= {if ($$0 ~ /\.lib$$/) {$$0 = "$${clisp}" $$0;}}
|
|
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mecl)
|
|
|
|
# Handle ECL-specific files
|
|
|
|
PRINT_PLIST_AWK+= {if ($$0 ~ /\.o$$/) {$$0 = "$${ecl}" $$0;}}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# X11
|
|
|
|
.if !empty(PKG_OPTIONS:Mx11)
|
|
|
|
CONFIGURE_ARGS+= --with-x=yes
|
|
|
|
CONFIGURE_ENV+= X_LIBS=${LDFLAGS:M*:Q}
|
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-x=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.for opt in clisp sbcl ecl x11
|
|
|
|
. if !empty(PKG_OPTIONS:M${opt})
|
|
|
|
PLIST_SUBST+= ${opt}=""
|
|
|
|
. else
|
|
|
|
PLIST_SUBST+= ${opt}="@comment "
|
|
|
|
. endif
|
|
|
|
.endfor
|