From af49fc46e435a6c069d1f59c354fe6d467a888b2 Mon Sep 17 00:00:00 2001 From: Fabian Castelli <50630942+gfcas@users.noreply.github.com> Date: Thu, 27 May 2021 10:47:25 +0200 Subject: [PATCH] Add GSL 2.6 (#178) * Add GSL * Add to package list in cfg file * Remove multiple newlines * Fix typo * Update from koecher --- candi.cfg | 1 + deal.II-toolchain/packages/gsl.package | 34 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 deal.II-toolchain/packages/gsl.package diff --git a/candi.cfg b/candi.cfg index 449b080..fd67358 100644 --- a/candi.cfg +++ b/candi.cfg @@ -59,6 +59,7 @@ PACKAGES="load:dealii-prepare" #PACKAGES="${PACKAGES} once:adolc" #PACKAGES="${PACKAGES} once:arpack-ng" #PACKAGES="${PACKAGES} once:assimp" +#PACKAGES="${PACKAGES} once:gsl" PACKAGES="${PACKAGES} once:opencascade" PACKAGES="${PACKAGES} once:parmetis" #PACKAGES="${PACKAGES} once:sundials" diff --git a/deal.II-toolchain/packages/gsl.package b/deal.II-toolchain/packages/gsl.package new file mode 100644 index 0000000..3beda01 --- /dev/null +++ b/deal.II-toolchain/packages/gsl.package @@ -0,0 +1,34 @@ +################################################################################ +## GSL ## +################################################################################ + +VERSION=release-2-6 +NAME=gsl +EXTRACTSTO=${NAME}-${VERSION} +SOURCE=https://git.savannah.gnu.org/git/ +PACKING=git +BUILDCHAIN=autotools + +BUILDDIR=${BUILD_PATH}/${NAME}-${VERSION} +INSTALL_PATH=${INSTALL_PATH}/${NAME}-${VERSION} + +CONFOPTS="--enable-maintainer-mode" + +package_specific_setup () { + # We need to do a specific bootstrap before running the autotools build chain + cd ${UNPACK_PATH}/${EXTRACTSTO} + ./autogen.sh +} + +package_specific_register () { + export GSL_DIR=${INSTALL_PATH} +} + +package_specific_conf () { + # Generate configuration file + CONFIG_FILE=${CONFIGURATION_PATH}/${NAME} + rm -f $CONFIG_FILE + echo " +export GSL_DIR=${INSTALL_PATH} +" >> $CONFIG_FILE +} -- 2.39.5