void-packages/srcpkgs/opencamlib/template

37 lines
1.1 KiB
Bash

# Template file for 'opencamlib'
pkgname=opencamlib
version=2019.07
revision=9
build_style=cmake
configure_args="-DBUILD_PY_LIB=ON -DUSE_PY_3=ON -DVERSION_STRING=${version}"
hostmakedepends="python3"
makedepends="python3-devel boost-devel libgomp-devel"
short_desc="Open source computer aided manufacturing algorithms library"
maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
license="LGPL-2.1-or-later"
homepage="http://www.anderswallin.net/CAM"
distfiles="https://github.com/aewallin/opencamlib/archive/${version}.tar.gz"
checksum=e08ab50672e24b51d30938ac60a6caa38bd8f5fb5f8fa3375dec0e69031cb620
subpackages="opencamlib-devel"
# opencamlib-python3 cannot be cross compiled because of vtk-python3
if [ -z "$CROSS_BUILD" ]; then
subpackages+=" opencamlib-python3"
fi
opencamlib-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
}
}
opencamlib-python3_package() {
short_desc+=" - Python3 bindings"
depends="${sourcepkg}>=${version}_${revision} vtk-python3"
pkg_install() {
vmove "usr/lib/python3*"
}
}