diff options
author | Giancarlo Dessì <slack@giand.it> | 2022-04-24 18:34:17 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-30 13:52:02 +0700 |
commit | 0bdd9e124ce185f232fc726fadcb5b147486a11b (patch) | |
tree | b09b2d3f07a739ff89be9b0ab08c65ec393f2d6d /academic/avogadroapp | |
parent | 509b40e4f430cc423a9be76e4b57a1894cc97d6e (diff) | |
download | slackbuilds-0bdd9e124ce185f232fc726fadcb5b147486a11b.tar.gz |
academic/avogadroapp: Provide option to build shared/static.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/avogadroapp')
-rw-r--r-- | academic/avogadroapp/README | 15 | ||||
-rw-r--r-- | academic/avogadroapp/avogadroapp.SlackBuild | 3 |
2 files changed, 15 insertions, 3 deletions
diff --git a/academic/avogadroapp/README b/academic/avogadroapp/README index 4409746260..690df5da4f 100644 --- a/academic/avogadroapp/README +++ b/academic/avogadroapp/README @@ -8,6 +8,15 @@ a powerful plugin architecture. Managed by OpenChemistry, Avogadro 2 it is based on QT5 libraries and it is a rewrite of the old Avogadro 1.x. -Warning: the computational settings made through the Input Generator -require the MoleQueue server running to submit jobs to local -applications or remote HPC clusters. +By default avogadroapp is built with static libraries. If you +want to enable the building with shared libraries, pass the variable +SHARED=yes to the script: + + SHARED=yes ./avogadroapp.SlackBuild + +Note that if you build avogadroapp with shared libraries, hdf5 is +not required as needed dependency. + +Warning: the computational settings made through the Input Generator +require the MoleQueue server running to submit jobs to local +applications or remote HPC clusters. diff --git a/academic/avogadroapp/avogadroapp.SlackBuild b/academic/avogadroapp/avogadroapp.SlackBuild index 4168f008c3..506cf84432 100644 --- a/academic/avogadroapp/avogadroapp.SlackBuild +++ b/academic/avogadroapp/avogadroapp.SlackBuild @@ -43,6 +43,8 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then exit 0 fi +SHAREDLIBS="" ; [ "${SHARED:-no}" = "yes" ] && SHAREDLIBS="-DBUILD_SHARED_LIBS=ON" + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -89,6 +91,7 @@ cd build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ + $SHAREDLIBS \ .. make make install DESTDIR=$PKG |