PACKAGES="${PACKAGES} once:trilinos"
PACKAGES="${PACKAGES} once:petsc"
PACKAGES="${PACKAGES} once:slepc"
+PACKAGES="${PACKAGES} once:symengine"
PACKAGES="${PACKAGES} dealii"
#########################################################################
-D GINKGO_DIR=${GINKGO_DIR}"
fi
+########################################
+# SYMENGINE
+if [[ ${PACKAGES_OFF} =~ 'symengine' ]]; then
+ if [ ! -z "${SYMENGINE_DIR}" ]; then
+ cecho ${INFO} "deal.II: unset SYMENGINE_DIR due to forced DEAL_II_WITH_SYMENGINE:BOOL=OFF option"
+ unset SYMENGINE_DIR
+ fi
+fi
+
+if [ ! -z "${SYMENGINE_DIR}" ]; then
+ cecho ${INFO} "deal.II: configuration with SYMENGINE"
+ CONFOPTS="${CONFOPTS} \
+ -D DEAL_II_WITH_SYMENGINE:BOOL=ON"
+fi
+
################################################################################
package_specific_install() {
--- /dev/null
+################################################################################
+## SYMENGINE ##
+################################################################################
+
+# Option {ON|OFF}: Choose whether to load the tarball or the git repository.
+CANDI_SYMENGINE_LOAD_TARBALL=OFF
+
+if [ ${CANDI_SYMENGINE_LOAD_TARBALL} = ON ]; then
+ # download release tarball
+ VERSION=0.7.0
+ CHECKSUM=72b8f1442fd3084c96e59d9fe87eec1a
+
+ NAME=symengine-${VERSION}
+ SOURCE=https://github.com/symengine/symengine/releases/download/v${VERSION}/
+ EXTRACTSTO=${NAME}
+ PACKING=.tar.gz
+else
+ # download git repository
+ VERSION=v0.7.0
+
+ NAME=symengine.git
+ SOURCE=https://github.com/symengine/
+ EXTRACTSTO=symengine-${VERSION}
+ PACKING=git
+fi
+unset CANDI_SYMENGINE_LOAD_TARBALL
+
+BUILDCHAIN=cmake
+
+BUILDDIR=${BUILD_PATH}/symengine-${VERSION}
+INSTALL_PATH=${INSTALL_PATH}/symengine-${VERSION}
+
+CONFOPTS="\
+ -D BUILD_SHARED_LIBS:BOOL=ON \
+ -D BUILD_TESTS:BOOL=OFF \
+ -D BUILD_BENCHMARKS:BOOL=OFF"
+
+package_specific_register () {
+ export SYMENGINE_DIR=${INSTALL_PATH}
+}
+
+package_specific_conf () {
+ # Generate configuration file
+ CONFIG_FILE=${CONFIGURATION_PATH}/${NAME}
+ rm -f ${CONFIG_FILE}
+ echo "
+export SYMENGINE_DIR=${INSTALL_PATH}
+" >> $CONFIG_FILE
+}
# bc python automake autoconf gfortran \
# openmpi-bin openmpi-common libopenmpi-dev cmake subversion git \
# libblas-dev liblapack-dev libblas3 liblapack3 \
-# libsuitesparse-dev libtool libboost-all-dev zlib1g-dev
+# libsuitesparse-dev libtool libboost-all-dev zlib1g-dev \
+# libgmp-dev
#
# Then run candi again.
##