From cb5fa463a690099fdbddf9b59180d9cab2682c6d Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Sat, 18 Jun 2022 08:51:05 +0200 Subject: [PATCH] maxima: enable sbcl option only on supported archs --- srcpkgs/maxima/template | 12 ++++++++++-- srcpkgs/sbcl/template | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/srcpkgs/maxima/template b/srcpkgs/maxima/template index 69af367ca11d..69e85ec833e8 100644 --- a/srcpkgs/maxima/template +++ b/srcpkgs/maxima/template @@ -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() { diff --git a/srcpkgs/sbcl/template b/srcpkgs/sbcl/template index cd2e813dc7f8..43e3045f5fc9 100644 --- a/srcpkgs/sbcl/template +++ b/srcpkgs/sbcl/template @@ -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"