maxima: enable sbcl option only on supported archs

This commit is contained in:
Michal Vasilek 2022-06-18 08:51:05 +02:00
parent 9ec6b061e5
commit 8cd3cd6576
2 changed files with 11 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# Template file for 'maxima'
pkgname=maxima
version=5.45.1
revision=3
revision=4
build_style=gnu-configure
configure_args="$(vopt_enable clisp) $(vopt_enable sbcl sbcl-exec) $(vopt_enable ecl)"
hostmakedepends="python3 perl emacs texinfo patchelf"
@ -28,7 +28,15 @@ build_options="clisp sbcl ecl"
desc_option_clisp="Build with CLISP"
desc_option_sbcl="Build with SBCL"
desc_option_ecl="Build with ECL"
build_options_default="sbcl ecl"
build_options_default="ecl"
# sbcl is only available for these architectures
case "$XBPS_TARGET_MACHINE" in
i686|x86_64*|armv7l|aarch64|ppc64le*)
build_options_default+=" sbcl"
;;
esac
vopt_conflict clisp sbcl
post_configure() {

View file

@ -2,6 +2,7 @@
pkgname=sbcl
version=2.2.5
revision=1
# make sure the sbcl option in maxima is enabled for the same archs
archs="i686 x86_64* armv7l aarch64 ppc64le*"
hostmakedepends="iana-etc texinfo"
makedepends="zlib-devel"