From c7a31e1047a49870d56cc98a826a5f7daab6dca7 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 2 Feb 2018 14:55:33 -0500 Subject: [PATCH] add assimp v3.3.1 optional dependency for deal.II 9.0 --- candi.cfg | 1 + deal.II-toolchain/packages/assimp.package | 27 +++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 deal.II-toolchain/packages/assimp.package diff --git a/candi.cfg b/candi.cfg index 0a63947..ab98cbd 100644 --- a/candi.cfg +++ b/candi.cfg @@ -44,6 +44,7 @@ PACKAGES="load:dealii-prepare" # These packages determine the active components of deal.II: #PACKAGES="${PACKAGES} once:arpack-ng" +#PACKAGES="${PACKAGES} once:assimp" #PACKAGES="${PACKAGES} once:nanoflann" PACKAGES="${PACKAGES} once:opencascade" PACKAGES="${PACKAGES} once:parmetis" diff --git a/deal.II-toolchain/packages/assimp.package b/deal.II-toolchain/packages/assimp.package new file mode 100644 index 0000000..dcfb7a4 --- /dev/null +++ b/deal.II-toolchain/packages/assimp.package @@ -0,0 +1,27 @@ +VERSION=3.3.1 +NAME=v${VERSION} +EXTRACTSTO=assimp-${VERSION} +SOURCE=https://github.com/assimp/assimp/archive/ +CHECKSUM=fc57b024e80ebb13301bd0983826cad3 +PACKING=.tar.gz +BUILDCHAIN=cmake + +BUILDDIR=${BUILD_PATH}/assimp-${VERSION} +INSTALL_PATH=${INSTALL_PATH}/assimp-${VERSION} + +CONFOPTS="-D CMAKE_INSTALL_PREFIX=${INSTALL_PATH} \ + -D BUILD_SHARED_LIBS=ON" + +package_specific_register () { + export ASSIMP_DIR=${INSTALL_PATH} +} + +package_specific_conf () { + # Generate configuration file + CONFIG_FILE=${CONFIGURATION_PATH}/assimp-${NAME} + rm -f $CONFIG_FILE + echo " +export ASSIMP_DIR=${INSTALL_PATH} +" >> $CONFIG_FILE +} + -- 2.39.5