mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
opencamlib: fully disable python bindings on cross/32bit
This commit is contained in:
parent
8363263761
commit
838d2658fb
1 changed files with 9 additions and 5 deletions
|
@ -1,11 +1,10 @@
|
||||||
# Template file for 'opencamlib'
|
# Template file for 'opencamlib'
|
||||||
pkgname=opencamlib
|
pkgname=opencamlib
|
||||||
version=2019.07
|
version=2019.07
|
||||||
revision=12
|
revision=13
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DBUILD_PY_LIB=ON -DUSE_PY_3=ON -DVERSION_STRING=${version}"
|
configure_args="-DVERSION_STRING=${version}"
|
||||||
hostmakedepends="python3"
|
makedepends="boost-devel libgomp-devel"
|
||||||
makedepends="python3-devel boost-devel boost-python3 libgomp-devel"
|
|
||||||
short_desc="Open source computer aided manufacturing algorithms library"
|
short_desc="Open source computer aided manufacturing algorithms library"
|
||||||
maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
|
maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
|
||||||
license="LGPL-2.1-or-later"
|
license="LGPL-2.1-or-later"
|
||||||
|
@ -15,8 +14,13 @@ checksum=e08ab50672e24b51d30938ac60a6caa38bd8f5fb5f8fa3375dec0e69031cb620
|
||||||
|
|
||||||
subpackages="opencamlib-devel"
|
subpackages="opencamlib-devel"
|
||||||
# opencamlib-python3 cannot be cross compiled because of vtk-python3
|
# 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"
|
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
|
fi
|
||||||
|
|
||||||
opencamlib-devel_package() {
|
opencamlib-devel_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue