diff options
author | Giancarlo Dessì <slack@giand.it> | 2023-04-13 21:37:03 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-04-15 07:15:24 +0700 |
commit | fdf7c1f2fed86a63827b1a8635def14fab6c4e5c (patch) | |
tree | 384b219817061654fce318740c29b1d48f0ee01a /academic/avogadrolibs | |
parent | 7eabfdcc71723238ff460ce9ff3df46dc2eeecf2 (diff) |
academic/avogadrolibs: Add VTK as optional dependency.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/avogadrolibs')
-rw-r--r-- | academic/avogadrolibs/README | 5 | ||||
-rw-r--r-- | academic/avogadrolibs/avogadrolibs.SlackBuild | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/academic/avogadrolibs/README b/academic/avogadrolibs/README index 4877412d767da..788ee02b79bc2 100644 --- a/academic/avogadrolibs/README +++ b/academic/avogadrolibs/README @@ -15,6 +15,7 @@ LIBMSYM=yes|no (default: yes, libmsym required) SPGLIB=yes|no (default: yes, spglib required) MMTF=yes|no (default: yes, mmtf-cpp required) HDF5=yes|no (default: no, hdf5 required) +VTK=yes|no (default: no, VTK required) The extension Avogadro Generators (disabled by default) installs Python input generators that can be run by the Avogadro 2 application @@ -26,3 +27,7 @@ To enable the extension the dependency pybind11 is required and you have to pass the variable PYTHON=yes to the slackbuild script: PYTHON=yes ./avogadrolibs.SlackBuild + +WARNING: the build enabling the support of VTK libraries works only +with VTK < 9.0 or VTK >= 9.2.6. The build against VTK 9.0.x fails. +Other versions of VTK 9.x earlier than 9.2.6 are not tested. diff --git a/academic/avogadrolibs/avogadrolibs.SlackBuild b/academic/avogadrolibs/avogadrolibs.SlackBuild index 8910378f05452..825baf7b68203 100644 --- a/academic/avogadrolibs/avogadrolibs.SlackBuild +++ b/academic/avogadrolibs/avogadrolibs.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=avogadrolibs VERSION=${VERSION:-1.97.0} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} MVERSION=${MVERSION:-1.0.0} @@ -49,6 +49,7 @@ fi #These are features which are disabled by default USEHDF5="" ; [ "${HDF5:-no}" = "yes" ] && USEHDF5="-DUSE_HDF5=ON" USEPYTHON="" ; [ "${PYTHON:-no}" = "yes" ] && USEPYTHON="-DUSE_PYTHON=ON" +USEVTK="" ; [ "${VTK:-no}" = "yes" ] && USEVTK="-DUSE_VTK=ON" #These are features which are enabled by default USELIBMSYM="" ; [ "${LIBMSYM:-yes}" = "no" ] && USELIBMSYM="-DUSE_LIBMSYM=OFF" @@ -131,6 +132,7 @@ cd build $USELIBMSYM \ $USESPGLIB \ $USEMMTF \ + $USEVTK \ .. make make install DESTDIR=$PKG |