imath: build without python support on i686
This commit is contained in:
parent
414492a093
commit
778bf7da6f
@ -4,21 +4,25 @@ _realname=imath
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
pkgver=3.1.11
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='A C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics (mingw-w64)'
|
||||
url='https://www.openexr.com/'
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
|
||||
url='https://www.openexr.com/'
|
||||
msys2_repository_url="https://github.com/AcademySoftwareFoundation/Imath"
|
||||
license=('spdx:BSD-3-Clause')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
|
||||
"${MINGW_PACKAGE_PREFIX}-cmake"
|
||||
"${MINGW_PACKAGE_PREFIX}-ninja"
|
||||
"${MINGW_PACKAGE_PREFIX}-boost"
|
||||
"${MINGW_PACKAGE_PREFIX}-python"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-numpy")
|
||||
optdepends=("${MINGW_PACKAGE_PREFIX}-python: python bindings"
|
||||
"${MINGW_PACKAGE_PREFIX}-boost: python bindings")
|
||||
$([[ ${CARCH} == i686 ]] || echo \
|
||||
"${MINGW_PACKAGE_PREFIX}-boost" \
|
||||
"${MINGW_PACKAGE_PREFIX}-python" \
|
||||
"${MINGW_PACKAGE_PREFIX}-python-numpy"))
|
||||
if [[ ${CARCH} != i686 ]]; then
|
||||
optdepends=("${MINGW_PACKAGE_PREFIX}-python: python bindings"
|
||||
"${MINGW_PACKAGE_PREFIX}-boost: python bindings")
|
||||
fi
|
||||
source=("https://github.com/AcademySoftwareFoundation/Imath/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz"
|
||||
0001-cmake-libs-name.patch
|
||||
0002-fix-openexr-clang-build.patch)
|
||||
@ -44,6 +48,12 @@ build() {
|
||||
_extra_config+=("-DCMAKE_BUILD_TYPE=Debug")
|
||||
fi
|
||||
|
||||
if [[ ${CARCH} != i686 ]]; then
|
||||
_extra_config+=("-DPYTHON=ON" "-DPYBIND11=OFF")
|
||||
else
|
||||
_extra_config+=("-DPYTHON=OFF" "-DPYBIND11=OFF")
|
||||
fi
|
||||
|
||||
# https://github.com/AcademySoftwareFoundation/Imath/issues/312
|
||||
CFLAGS="-DPLATFORM_VISIBILITY_AVAILABLE -fvisibility=hidden -fvisibility-inlines-hidden" \
|
||||
CXXFLAGS="-DPLATFORM_VISIBILITY_AVAILABLE -fvisibility=hidden -fvisibility-inlines-hidden" \
|
||||
@ -54,7 +64,6 @@ build() {
|
||||
-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DBUILD_TESTING=OFF \
|
||||
-DPYTHON=ON \
|
||||
-DPython_EXECUTABLE=${MINGW_PREFIX}/bin/python.exe \
|
||||
-DPython3_EXECUTABLE=${MINGW_PREFIX}/bin/python.exe \
|
||||
-DIMATH_INSTALL_PKG_CONFIG=ON \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user