-# use development version?
-CANDI_ADOLC_FROM_GIT=1
+################################################################################
+## ADOLC ##
+################################################################################
-if [ -n "$CANDI_ADOLC_FROM_GIT" ]; then
- # download git repository
- VERSION=master
- EXTRACTSTO=ADOL-C-master
-
- NAME=ADOL-C.git
- PACKING=git
- SOURCE=https://github.com/coin-or/
+# Option {ON|OFF}: Choose whether to load the tarball or the git repository.
+CANDI_ADOLC_LOAD_TARBALL=ON
-else
+if [ ${CANDI_ADOLC_LOAD_TARBALL} = ON ]; then
# download release tarball
-
VERSION=2.7.2
+ CHECKSUM=701e0856baae91b98397960d5e0a87a549988de9d4002d0e9a56fa08f5455f6e
+ CHECKSUM="${CHECKSUM} 372c86eaa8b11f83825b2d9e0719b5ce3cb7066d"
+ CHECKSUM="${CHECKSUM} ea05bd8e0d6c92d474204876fdcad04d"
+
NAME=${VERSION}
- EXTRACTSTO=ADOL-C-releases-${VERSION}
SOURCE=https://github.com/coin-or/ADOL-C/archive/releases/
- CHECKSUM=ea05bd8e0d6c92d474204876fdcad04d
+ EXTRACTSTO=ADOL-C-releases-${VERSION}
PACKING=.tar.gz
+else
+ # download git repository
+ VERSION=master
+ NAME=ADOL-C.git
+ SOURCE=https://github.com/coin-or/
+ EXTRACTSTO=ADOL-C-master
+ PACKING=git
fi
-unset CANDI_ADOLC_FROM_GIT
-
+unset CANDI_ADOLC_LOAD_TARBALL
BUILDCHAIN=autotools
package_specific_conf () {
# Generate configuration file
CONFIG_FILE=${CONFIGURATION_PATH}/adolc-${VERSION}
- rm -f $CONFIG_FILE
+ rm -f ${CONFIG_FILE}
echo "
export ADOLC_DIR=${INSTALL_PATH}
" >> $CONFIG_FILE
-D GMSH_DIR=${GMSH_DIR}"
fi
+########################################
+# ADOLC
+if [[ ${PACKAGES_OFF} =~ 'adolc' ]]; then
+ if [ ! -z "${ADOLC_DIR}" ]; then
+ cecho ${INFO} "deal.II: unset ADOLC_DIR due to forced DEAL_II_WITH_ADOLC:BOOL=OFF option"
+ unset ADOLC_DIR
+ fi
+fi
+
+if [ ! -z "${ADOLC_DIR}" ]; then
+ cecho ${INFO} "deal.II: configuration with ADOLC"
+ CONFOPTS="${CONFOPTS} \
+ -D DEAL_II_WITH_ADOLC:BOOL=ON"
+fi
+
################################################################################
package_specific_install() {