From 838d2658fb417bd2065c395b07fe086a342d474a Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Wed, 18 Dec 2024 21:51:50 -0500 Subject: [PATCH] opencamlib: fully disable python bindings on cross/32bit --- srcpkgs/opencamlib/template | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/srcpkgs/opencamlib/template b/srcpkgs/opencamlib/template index 6bdd53869fb..8e507348286 100644 --- a/srcpkgs/opencamlib/template +++ b/srcpkgs/opencamlib/template @@ -1,11 +1,10 @@ # Template file for 'opencamlib' pkgname=opencamlib version=2019.07 -revision=12 +revision=13 build_style=cmake -configure_args="-DBUILD_PY_LIB=ON -DUSE_PY_3=ON -DVERSION_STRING=${version}" -hostmakedepends="python3" -makedepends="python3-devel boost-devel boost-python3 libgomp-devel" +configure_args="-DVERSION_STRING=${version}" +makedepends="boost-devel libgomp-devel" short_desc="Open source computer aided manufacturing algorithms library" maintainer="Karl Nilsson " license="LGPL-2.1-or-later" @@ -15,8 +14,13 @@ checksum=e08ab50672e24b51d30938ac60a6caa38bd8f5fb5f8fa3375dec0e69031cb620 subpackages="opencamlib-devel" # opencamlib-python3 cannot be cross compiled because of vtk-python3 -if [ -z "$CROSS_BUILD" ]; then +if [ -z "$CROSS_BUILD" ] && [ "$XBPS_TARGET_WORDSIZE" -eq 64 ]; then subpackages+=" opencamlib-python3" + configure_args+=" -DBUILD_PY_LIB=ON -DUSE_PY_3=ON" + hostmakedepends="python3" + makedepends+=" python3-devel boost-python3" +else + configure_args+=" -DBUILD_PY_LIB=OFF" fi opencamlib-devel_package() {