From: Timo Heister Date: Fri, 2 Feb 2018 19:55:33 +0000 (-0500) Subject: add assimp v3.3.1 X-Git-Tag: v8.5.1~7^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F64%2Fhead;p=candi.git add assimp v3.3.1 optional dependency for deal.II 9.0 --- 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 +} +