From: Daniel Arndt Date: Mon, 14 May 2018 19:48:05 +0000 (+0200) Subject: Fix building ParMETIS shared libraries X-Git-Tag: v9.0.0~15^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6e293838e286b44e2031e5734d6579dd4220fbe;p=candi.git Fix building ParMETIS shared libraries --- diff --git a/deal.II-toolchain/packages/parmetis.package b/deal.II-toolchain/packages/parmetis.package index a33042f..99e44e7 100644 --- a/deal.II-toolchain/packages/parmetis.package +++ b/deal.II-toolchain/packages/parmetis.package @@ -35,6 +35,14 @@ package_specific_build() { quit_if_fail "parmetis make install failed" } +package_specific_patch () { + if [ "$VERSION" = "4.0.3" ]; then + cd ${UNPACK_PATH}/${EXTRACTSTO} + cecho ${WARN} "applying patch for building METIS shared libraries" + patch -p0 --forward < ${ORIG_DIR}/${PROJECT}/patches/parmetis.patch || true + fi +} + package_specific_register () { export METIS_DIR=${INSTALL_PATH} export PARMETIS_DIR=${INSTALL_PATH} diff --git a/deal.II-toolchain/patches/parmetis.patch b/deal.II-toolchain/patches/parmetis.patch new file mode 100644 index 0000000..c63b3a1 --- /dev/null +++ b/deal.II-toolchain/patches/parmetis.patch @@ -0,0 +1,13 @@ +--- CMakeLists.txt 2013-03-30 17:24:50.000000000 +0100 ++++ CMakeLists.txt 2018-05-14 21:43:26.577097734 +0200 +@@ -19,8 +19,10 @@ + # Prepare libraries. + if(SHARED) + set(ParMETIS_LIBRARY_TYPE SHARED) ++ set(METIS_LIBRARY_TYPE SHARED) + else() + set(ParMETIS_LIBRARY_TYPE STATIC) ++ set(METIS_LIBRARY_TYPE STATIC) + endif() + + include(${GKLIB_PATH}/GKlibSystem.cmake)