opencamllib: Fix dependencies

This commit is contained in:
مهدي شينون (Mehdi Chinoune) 2024-09-29 08:14:38 +01:00
parent 6e249df69c
commit ac5039904f

View File

@ -5,14 +5,14 @@ pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}"
"${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=2023.01.11
pkgrel=1
pkgrel=2
pkgdesc='Multi-Purpose CNC Toolpath Library (mingw-w64)'
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
url='https://github.com/aewallin/opencamlib'
license=('spdx:LGPL-2.1')
depends=("${MINGW_PACKAGE_PREFIX}-boost"
$([[ ${MINGW_PACKAGE_PREFIX} != *-clang-* ]] || echo "${MINGW_PACKAGE_PREFIX}-openmp"))
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-omp")
makedepends=("${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-cmake"
@ -79,6 +79,7 @@ build() {
-DUSE_OPENMP=ON \
-DUSE_PY_3=ON \
-DPython3_EXECUTABLE=${MINGW_PREFIX}/bin/python3.exe \
-DBoost_USE_STATIC_LIBS=OFF \
../${_realname}-${pkgver}
${MINGW_PREFIX}/bin/cmake --build .
@ -95,8 +96,9 @@ package_opencamlib() {
}
package_python-opencamlib() {
pkgdesc+=" (documentation)"
depends+=("${MINGW_PACKAGE_PREFIX}-python")
pkgdesc+=" - Python bindings"
depends+=("${MINGW_PACKAGE_PREFIX}-boost"
"${MINGW_PACKAGE_PREFIX}-python")
cd "${srcdir}/build-${MSYSTEM}-py"