Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions srcpkgs/vtk/template
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Template file for 'vtk'
pkgname=vtk
version=9.5.0
revision=2
revision=3
build_style=cmake
build_helper=qemu
# vtk can be huge, especially with -DVTK_BUILD_ALL_MODULES=ON"
# Build only the core modules plus python bindings for now
configure_args="-DBUILD_SHARED_LIBS=ON -DVTK_FORBID_DOWNLOADS=ON
Expand Down Expand Up @@ -30,7 +31,6 @@ license="BSD-3-Clause"
homepage="https://www.vtk.org"
distfiles="https://www.vtk.org/files/release/${version:0:3}/VTK-${version}.tar.gz"
checksum=04ae86246b9557c6b61afbc534a6df099244fbc8f3937f82e6bc0570953af87d
nocross="It seems to need vtk compile tools for the host"

case "$XBPS_TARGET_MACHINE" in
# List of supported architectures copied from openmpi.
Expand All @@ -54,9 +54,13 @@ post_extract() {
post_install() {
vlicense Copyright.txt

# Mangle CPython extension names in CMake like xbps-src will do
vsed -e 's,\(vtkmodules/vtk.*\)\.cpython-.*\.so,\1.so,' \
-i "${DESTDIR}/usr/lib/cmake/vtk-${version:0:3}/VTKPython-targets-none.cmake"
case "$XBPS_TARGET_MACHINE" in
x86_64*)
# Mangle CPython extension names in CMake like xbps-src will do
vsed -e 's,\(vtkmodules/vtk.*\)\.cpython-.*\.so,\1.so,' \
-i "${DESTDIR}/usr/lib/cmake/vtk-${version:0:3}/VTKPython-targets-none.cmake"
;;
esac
}

vtk-devel_package() {
Expand Down