50 lines
1.6 KiB
Bash
50 lines
1.6 KiB
Bash
# Template file for 'vtk'
|
|
#
|
|
# vtk can be huge, especially with -DVTK_BUILD_ALL_MODULES=ON" or qt5
|
|
# Here only the bare minimum set of modules for freecad is enabled
|
|
pkgname=vtk
|
|
version=8.1.0
|
|
revision=2
|
|
wrksrc=VTK-${version}
|
|
build_style=cmake
|
|
configure_args="-DBUILD_SHARED_LIBS=ON -DVTK_USE_SYSTEM_LIBRARIES=ON
|
|
-DVTK_Group_StandAlone=ON
|
|
-DModule_vtkIOMPIParallel=ON
|
|
-DModule_vtkParallelMPI=ON"
|
|
|
|
# vtk needs specific libharu patches, so use built-in.
|
|
# https://github.com/libharu/libharu/pull/157
|
|
configure_args+=" -DVTK_USE_SYSTEM_LIBHARU=OFF"
|
|
|
|
# fails, so use built-in
|
|
configure_args+=" -DVTK_USE_SYSTEM_NETCDFCPP=OFF"
|
|
|
|
# may be disabled when gl2ps > 1.4.0 is available
|
|
# vtk relies on gl2psTextOptColorBL(), which is not yet in a realeased gl2ps
|
|
configure_args+=" -DVTK_USE_SYSTEM_GL2PS=OFF"
|
|
|
|
makedepends="zlib-devel freetype-devel lz4-devel expat-devel MesaLib-devel
|
|
libXt-devel libjpeg-turbo-devel tiff-devel proj-devel hdf5-devel netcdf-devel
|
|
gl2ps-devel libxml2-devel jsoncpp-devel openmpi-devel libogg-devel
|
|
libtheora-devel"
|
|
|
|
short_desc="System for 3D computer graphics, image processing, and visualization"
|
|
maintainer="Piraty <piraty1@inbox.ru>"
|
|
license="3-clause-BSD"
|
|
homepage="https://www.vtk.org"
|
|
distfiles="https://www.vtk.org/files/release/${version:0:3}/VTK-${version}.tar.gz"
|
|
checksum=6e269f07b64fb13774f5925161fb4e1f379f4e6a0131c8408c555f6b58ef3cb7
|
|
|
|
post_install() {
|
|
vlicense Copyright.txt
|
|
}
|
|
|
|
vtk-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/cmake
|
|
}
|
|
}
|