# Remove the file and check if that was successful
rm -f ${ARCHIVE_FILE}
if [ $? = 0 ]; then
- cecho ${GOOD} "corrupted ${ARCHIVE_FILE} has been removed"
+ cecho ${INFO} "corrupted ${ARCHIVE_FILE} has been removed"
else
cecho ${BAD} "corrupted ${ARCHIVE_FILE} could not be removed."
cecho ${INFO} "Please remove the file ${DOWNLOAD_PATH}/${ARCHIVE_FILE} on your own!"
# Set up complete url
url=${source}${ARCHIVE_FILE}
- cecho ${GOOD} "Trying to download ${url}"
+ cecho ${INFO} "Trying to download ${url}"
# Download.
# If curl or wget is failing, continue this loop for trying an other mirror.
package_specific_build () {
cp -rf ${UNPACK_PATH}/${NAME}/* .
./bootstrap.sh --prefix=${INSTALL_PATH}
+ quit_if_fail "boost build ./bootstrap.sh failed"
+
echo "using mpi ;" > user-config.jam
./b2 -j ${PROCS} --user-config=user-config.jam --build-dir=candi_build_dir link=shared install ${CONFOPTS}
+ quit_if_fail "boost build ./b2 failed"
}
package_specific_register () {
-NAME=bzip2-1.0.6
-SOURCE=http://www.bzip.org/1.0.6/
+VERSION=1.0.6
+NAME=bzip2-${VERSION}
+SOURCE=http://www.bzip.org/${VERSION}/
PACKING=.tar.gz
CHECKSUM=00b516f4704d4a7cb50a1d97e6e8e15b
BUILDCHAIN=custom
cp -rf ${UNPACK_PATH}/${NAME}/* .
# patch the Makefile
- patch -p1 --forward < ${ORIG_DIR}/${PROJECT}/patches/bzip2-1.0.6.patch || true
+ patch -p1 --forward < ${ORIG_DIR}/${PROJECT}/patches/bzip2-${VERSION}.patch || true
# compile bzip2
make install
SuperLUDist=ON
fi
-
# Transform upper case to lower case.
PACKAGES_OFF=${PACKAGES_OFF,,}
package_specific_register () {
export HDF5_DIR=${INSTALL_PATH}
}
-
# choose names for fast and debug build directories
BUILD_FAST="${BUILD_PATH}/${NAME}/FAST"
BUILD_DEBUG="${BUILD_PATH}/${NAME}/DEBUG"
-
+
# choose names for fast and debug installation directories
INSTALL_FAST="${INSTALL_PATH}/FAST"
INSTALL_DEBUG="${INSTALL_PATH}/DEBUG"
echo "Install FAST: $INSTALL_FAST"
echo "Install DEBUG: $INSTALL_DEBUG"
echo "Checking environment: CFLAGS P4EST_CFLAGS_FAST P4EST_CFLAGS_DEBUG"
-
+
test -f "${UNPACK_PATH}/${EXTRACTSTO}/src/p4est.h" || bdie "Main header file missing"
test -f "${UNPACK_PATH}/${EXTRACTSTO}/configure" || bdie "Configure script missing"
# remove old versions
if test -d "${BUILD_PATH}/${NAME}"; then
rm -rf "${BUILD_PATH}/${NAME}"
+ quit_if_fail "p4est: rm -rf ${BUILD_PATH}/${NAME} failed"
fi
-
+
echo "Build FAST version in $BUILD_FAST"
mkdir -p "$BUILD_FAST"
cd "$BUILD_FAST"
touch candi_successful_build
}
-
package_specific_register () {
export P4EST_DIR=${INSTALL_PATH}
}
package_specific_build() {
cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .
+
+ # Firstly build metis
cd metis
+
make config prefix=${INSTALL_PATH} shared=1
+ quit_if_fail "parmetis/metis make config failed"
+
make -j ${PROCS}
+ quit_if_fail "parmetis/metis make failed"
+
make install
+ quit_if_fail "parmetis/metis make install failed"
+
+ # Secondly build parmetis
cd ..
+
make config prefix=${INSTALL_PATH} shared=1
+ quit_if_fail "parmetis make config failed"
+
make -j ${PROCS}
+ quit_if_fail "parmetis make failed"
+
make install
+ quit_if_fail "parmetis make install failed"
}
package_specific_register () {
CONFOPTS="${CONFOPTS} --download-${external_pkg}=1"
done
-if [ "$CC" ]; then
+if [ ! -z "$CC" ]; then
CONFOPTS="${CONFOPTS} CC=$CC"
fi
-if [ "$CXX" ]; then
+if [ ! -z "$CXX" ]; then
CONFOPTS="${CONFOPTS} CXX=$CXX"
fi
-if [ "$FC" ]; then
+if [ ! -z "$FC" ]; then
CONFOPTS="${CONFOPTS} FC=$FC"
fi
-if [ "$F77" ]; then
+if [ ! -z "$F77" ]; then
CONFOPTS="${CONFOPTS} F77=$F77"
fi
-if [ "$F90" ]; then
+if [ ! -z "$F90" ]; then
CONFOPTS="${CONFOPTS} F90=$F90"
fi
cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .
./configure --prefix=${INSTALL_PATH} ${CONFOPTS}
+ quit_if_fail "petsc ./configure failed"
+
make all install
+ quit_if_fail "petsc make all install failed"
}
package_specific_register () {
export PETSC_DIR=${INSTALL_PATH}
}
-
cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .
./configure --prefix=${INSTALL_PATH} ${CONFOPTS}
+ quit_if_fail "slepc ./configure failed"
+
make SLEPC_DIR=$PWD PETSC_DIR=${PETSC_DIR} all install
+ quit_if_fail "slepc make all install failed"
}
package_specific_register () {
# now compile superlu_dist
make superlulib
+ quit_if_fail "superlu_dist make superlulib failed"
+
mkdir -p ${INSTALL_PATH}/include/superlu
cp SRC/*.h ${INSTALL_PATH}/include/superlu
}
package_specific_register () {
export SUPERLU_DIR=${INSTALL_PATH}
}
-
+if [ -z "${TRILINOS_MAJOR_VERSION}" ]; then
+ TRILINOS_MAJOR_VERSION=AUTO
+fi
+
if [ ${TRILINOS_MAJOR_VERSION} = "AUTO" ] || [ ${TRILINOS_MAJOR_VERSION} = "12" ]; then
SOURCE=http://trilinos.csbsju.edu/download/files/
VERSION=12.2.1
package_specific_build () {
cp -rf ${UNPACK_PATH}/${NAME}/* .
./configure --prefix=${INSTALL_PATH}
+ quit_if_fail "zlib configure failed"
+
make install
+ quit_if_fail "zlib make install failed"
}
-
package_specific_register () {
export ZLIB_DIR=${INSTALL_PATH}/
export ZLIB_INCLUDE=${INSTALL_PATH}/include