]> https://gitweb.dealii.org/ - candi.git/commitdiff
candi/deal: every package is installed in its own dir (untested)
authorUwe Köcher <koecher@hsu-hamburg.de>
Mon, 2 Nov 2015 17:45:19 +0000 (18:45 +0100)
committerUwe Köcher <koecher@hsu-hamburg.de>
Mon, 2 Nov 2015 17:45:19 +0000 (18:45 +0100)
16 files changed:
candi.sh
deal.II-toolchain/packages/boost.package
deal.II-toolchain/packages/bzip2.package
deal.II-toolchain/packages/cmake.package
deal.II-toolchain/packages/dealii-prepare.package
deal.II-toolchain/packages/dealii-stable.package
deal.II-toolchain/packages/dealii.package
deal.II-toolchain/packages/hwloc.package [deleted file]
deal.II-toolchain/packages/opencascade.package
deal.II-toolchain/packages/p4est.package
deal.II-toolchain/packages/parmetis.package
deal.II-toolchain/packages/petsc.package
deal.II-toolchain/packages/slepc.package
deal.II-toolchain/packages/superlu_dist.package
deal.II-toolchain/packages/trilinos.package
deal.II-toolchain/packages/zlib.package

index 00fb119073871e48d768ca7c59c12ca22d36a13b..3cdf6032c0c198e9956236a744db9f617c2afe71 100755 (executable)
--- a/candi.sh
+++ b/candi.sh
@@ -765,7 +765,6 @@ mkdir -p ${DOWNLOAD_PATH}
 mkdir -p ${UNPACK_PATH}
 mkdir -p ${BUILD_PATH}
 mkdir -p ${INSTALL_PATH}
-mkdir -p ${INSTALL_PATH}/lib
 
 ORIG_INSTALL_PATH=${INSTALL_PATH}
 ORIG_PROCS=${PROCS}
@@ -828,7 +827,7 @@ for PACKAGE in ${PACKAGES[@]}; do
     package_specific_install () { true; }
     package_specific_register () { true; }
     package_specific_conf() { true; }
-
+    
     # Fetch information pertinent to the package
     source ${PROJECT}/packages/${PACKAGE}.package
     
@@ -893,4 +892,3 @@ cecho ${GOOD} "Build finished in $((TOC_GLOBAL/1000000000)) seconds."
 echo
 echo "Summary of timings:"
 echo -e "$TIMINGS"
-
index 0c34641e5cc7ee9be775e184ec2896de17281d04..25578797444245e50b97c299363058ec73fbafd9 100644 (file)
@@ -4,16 +4,18 @@ PACKING=.tar.gz
 CHECKSUM=51528a0e3b33d9e10aaa311d9eb451e3
 BUILDCHAIN=custom
 
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
+
 package_specific_build () {
     cp -rf ${UNPACK_PATH}/${NAME}/* .
-    ./bootstrap.sh --prefix=${INSTALL_PATH}/${NAME}
+    ./bootstrap.sh --prefix=${INSTALL_PATH}
     echo "using mpi ;" > user-config.jam
     ./b2 -j ${PROCS} --user-config=user-config.jam --build-dir=candi_build_dir link=shared install ${CONFOPTS}
 }
 
 package_specific_register () {
-    export BOOST_ROOT=${INSTALL_PATH}/${NAME}
-    export BOOST_INCLUDEDIR=${INSTALL_PATH}/${NAME}/include
-    export BOOST_LIBRARYDIR=${INSTALL_PATH}/${NAME}/lib
+    export BOOST_ROOT=${INSTALL_PATH}
+    export BOOST_INCLUDEDIR=${INSTALL_PATH}/include
+    export BOOST_LIBRARYDIR=${INSTALL_PATH}/lib
     export BOOST_USE_MULTITHREADED=OFF
 }
index 3d2c5fcc327358ca5a0bb021433cd02a8c425757..ef4d77e567eabe22932ac958ccc7f038b5b4a871 100644 (file)
@@ -1,14 +1,15 @@
 NAME=bzip2-1.0.6
 SOURCE=http://www.bzip.org/1.0.6/
 PACKING=.tar.gz
-DOWNLOADER=curl
 CHECKSUM=00b516f4704d4a7cb50a1d97e6e8e15b
 BUILDCHAIN=custom
 
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
+
 package_specific_build () {
     cp -rf ${UNPACK_PATH}/${NAME}/* .
-  
-    # patch the Makefile 
+    
+    # patch the Makefile
     patch -p1 --forward < ${ORIG_DIR}/${PROJECT}/patches/bzip2-1.0.6.patch || true
     
     # compile bzip2
@@ -16,6 +17,6 @@ package_specific_build () {
 }
 
 package_specific_register () {
-    export BZIP2_INCLUDE=${INSTALL_PATH}/${NAME}/include
-    export BZIP2_LIBPATH=${INSTALL_PATH}/${NAME}/lib
+    export BZIP2_INCLUDE=${INSTALL_PATH}/include
+    export BZIP2_LIBPATH=${INSTALL_PATH}/lib
 }
index d0eeb5691de8ccaa0a01adcc3fa647a8d5165485..a19f64cb2dc7d7aac68ef8b4f2b15f3e67405046 100644 (file)
@@ -2,9 +2,10 @@ VERSION=3.4.0-rc2-Linux-x86_64
 NAME=cmake-${VERSION}
 SOURCE=https://cmake.org/files/v3.4/
 PACKING=.tar.gz
+CHECKSUM=511db6fe363aa323905e1c06f7b22425
 BUILDCHAIN=custom
 
-CHECKSUM=511db6fe363aa323905e1c06f7b22425
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
 
 package_specific_build () {
     cp -rf ${UNPACK_PATH}/${NAME}/* ${INSTALL_PATH}/
@@ -14,4 +15,3 @@ package_specific_build () {
 package_specific_register () {
     export PATH=${INSTALL_PATH}/bin:${PATH}
 }
-
index 10a5fd0ae52ad53651e00fb6ffc1e036a12641a2..75cc33f7163c67f1d3dc202c198d73e9db989097 100644 (file)
@@ -1,11 +1,6 @@
 NAME=dealii-prepare
 BUILDCHAIN=ignore
 
-#########################################################################
-# Install third-party libraries in opt
-INSTALL_PATH=${INSTALL_PATH}/opt
-
-
 #########################################################################
 # Loop over the options in DEAL_CONFOPTS and if the package is turned off, add
 # it to the PACKAGES_OFF list.
@@ -37,4 +32,3 @@ fi
 PACKAGES_OFF=${PACKAGES_OFF,,}
 
 PACKAGE=dealii-prepare
-
index 6e3f04a3837686617add92187e1d179526432442..d0cc724364deecf9167f88ef4a87f3b1bdd26bb9 100644 (file)
@@ -4,3 +4,5 @@ EXTRACTSTO=deal.II-${VERSION}
 SOURCE=https://github.com/dealii/
 PACKING=git
 BUILDCHAIN=cmake
+
+INSTALL_PATH=${INSTALL_PATH}/deal.II-${VERSION}
index 81d72d88d21c2b7d2580322e2403e50a54daa8ce..72af3af3682291a398df395fe7bf15b604569a5a 100644 (file)
@@ -5,7 +5,7 @@ SOURCE=https://github.com/dealii/
 PACKING=git
 BUILDCHAIN=cmake
 
-INSTALL_PATH=${INSTALL_PATH}/..
+INSTALL_PATH=${INSTALL_PATH}/deal.II-${VERSION}
 
 CONFOPTS=" \
 ${DEAL_CONFOPTS} \
@@ -90,4 +90,3 @@ setenv                  DEAL_II_DIR         ${INSTALL_PATH}
 
     export DEAL_II_DIR=${INSTALL_PATH}
 }
-
diff --git a/deal.II-toolchain/packages/hwloc.package b/deal.II-toolchain/packages/hwloc.package
deleted file mode 100644 (file)
index e0bbdc0..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-VERSION=1.9
-NAME=hwloc-${VERSION}
-SOURCE=http://www.open-mpi.org/software/hwloc/v${VERSION}/downloads/
-PACKING=.tar.gz
-CHECKSUM=1f9f9155682fe8946a97c08896109508
-BUILDCHAIN=autotools
-
index 1e5417ee9cd571495a49e20fdfb5ab6d656da473..30ae6415c907d3baf940bab7fe41ce550501e76c 100644 (file)
@@ -27,12 +27,14 @@ fi
 
 BUILDCHAIN=cmake
 
-CONFOPTS="-D OCE_INSTALL_PREFIX=${INSTALL_PATH}/${NAME} \
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
+
+CONFOPTS="-D OCE_INSTALL_PREFIX=${INSTALL_PATH} \
  -D OCE_VISUALISATION=OFF \
  -D OCE_DATAEXCHANGE=ON \
  -D OCE_OCAF=OFF \
 "
 
 package_specific_register () {
-    export OPENCASCADE_DIR=${INSTALL_PATH}/${NAME}
+    export OPENCASCADE_DIR=${INSTALL_PATH}
 }
index 47e8e49877e906282f738f9bbcf96ec5e736932c..5f867b9240ab4f3fa6fc6d655b3aab4eed077c53 100644 (file)
@@ -6,6 +6,8 @@ PACKING=.tar.gz
 CHECKSUM=37ba7f4410958cfb38a2140339dbf64f
 BUILDCHAIN=custom
 
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
+
 package_specific_setup () {
     function bdie () {
         echo "Error: $@"
@@ -31,8 +33,8 @@ package_specific_setup () {
     BUILD_DEBUG="${BUILD_PATH}/${NAME}/DEBUG"
 
     # choose names for fast and debug installation directories
-    INSTALL_FAST="${INSTALL_PATH}/${NAME}/FAST"
-    INSTALL_DEBUG="${INSTALL_PATH}/${NAME}/DEBUG"
+    INSTALL_FAST="${INSTALL_PATH}/FAST"
+    INSTALL_DEBUG="${INSTALL_PATH}/DEBUG"
     
     echo
     echo "This script tries configure and build the p4est library."
@@ -82,10 +84,10 @@ package_specific_setup () {
     echo
     
     cd "${BUILD_PATH}/${NAME}"
-    touch dorsal_successful_build
+    touch candi_successful_build
 }
 
 
 package_specific_register () {
-    export P4EST_DIR=${INSTALL_PATH}/${NAME}
+    export P4EST_DIR=${INSTALL_PATH}
 }
index 602c37a261fd5a025da7fc6c1347f6b5a4d0a826..57ae8b2d58c25f81b30783a0e34dad60bc97c62d 100644 (file)
@@ -4,6 +4,8 @@ PACKING=.tar.gz
 CHECKSUM=f69c479586bf6bb7aff6a9bc0c739628
 BUILDCHAIN=custom
 
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
+
 package_specific_build() {
     cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .
     cd metis
@@ -17,6 +19,6 @@ package_specific_build() {
 }
 
 package_specific_register () {
-    export PARMETIS_DIR=${INSTALL_PATH}
     export METIS_DIR=${INSTALL_PATH}
+    export PARMETIS_DIR=${INSTALL_PATH}
 }
index 8040532ab6252f1e7656d9bdcdfa1b23a64406ea..f3e2b967812d5fef514058fa8a464c9e842cbd4e 100644 (file)
@@ -3,9 +3,10 @@ NAME=petsc-${VERSION}
 SOURCE=http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/
 PACKING=.tar.gz
 CHECKSUM=28f842697159e16e2978732480571147
-#CHECKSUM=ignore
 BUILDCHAIN=custom
 
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
+
 #########################################################################
 
 CONFOPTS="
@@ -54,6 +55,6 @@ package_specific_setup () {
 }
 
 package_specific_register () {
-    export PETSC_DIR=${INSTALL_PATH}/${NAME}
+    export PETSC_DIR=${INSTALL_PATH}
 }
 
index 10fc3c3a1ba4f7ac45fd7b9da7ff0bffec3f006d..dbae55ba16187b35ede871ff7223791d9c36397f 100644 (file)
@@ -3,18 +3,18 @@ NAME=slepc-${VERSION}
 SOURCE=http://www.grycap.upv.es/slepc/download/download.php?filename=
 PACKING=.tar.gz
 CHECKSUM=560a634369fdab3fcaeea35c2cbab6f1
-#CHECKSUM=ignore
 BUILDCHAIN=custom
 
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
+
 package_specific_setup () {
     cd ${BUILDDIR}
     cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .
     
-    ./configure --prefix=${INSTALL_PATH}/${NAME} ${CONFOPTS}
+    ./configure --prefix=${INSTALL_PATH} ${CONFOPTS}
     make SLEPC_DIR=$PWD PETSC_DIR=${PETSC_DIR} all install
 }
 
 package_specific_register () {
-    export SLEPC_DIR=${INSTALL_PATH}/${NAME}
+    export SLEPC_DIR=${INSTALL_PATH}
 }
-
index 7a5119ae87eabd91fb3879db1990305d8736c628..6fedc4263b187196f7e401c09afe0ba428aa4d7c 100644 (file)
@@ -3,10 +3,11 @@ NAME=superlu_dist_${VERSION}
 EXTRACTSTO=SuperLU_DIST_${VERSION}
 SOURCE=http://crd-legacy.lbl.gov/~xiaoye/SuperLU/
 PACKING=.tar.gz
-DOWNLOADER=curl
 CHECKSUM=4edee38cc29f687bd0c8eb361096a455
 BUILDCHAIN=custom
 
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
+
 package_specific_build() {
     cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .
 
index 9b6df4a12753733e0a2294b34693802a60b1d7a6..6a59866756dd70368bfd3f913b044f1c5ccd2e6f 100644 (file)
@@ -24,9 +24,10 @@ fi
 
 NAME=trilinos-${VERSION}-Source
 PACKING=.tar.bz2
-DOWNLOADER=curl
 BUILDCHAIN=cmake
 
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
+
 #########################################################################
 # If you have further options for trilinos, please set:
 #TRILINOS_CONFOPTS=""
@@ -108,8 +109,6 @@ fi
 #########################################################################
 # General Trilinos configuration
 
-INSTALL_PATH=${INSTALL_PATH}/trilinos-${VERSION}
-
 CONFOPTS="${TRILINOS_CONFOPTS} \
           ${CONFOPTS} \
           -D TPL_ENABLE_MPI:BOOL=ON \
@@ -129,4 +128,3 @@ CONFOPTS="${TRILINOS_CONFOPTS} \
 package_specific_register () {
     export TRILINOS_DIR=${INSTALL_PATH}
 }
-
index 5e590ab311926f53bb889c958f899cc0b0ae84a4..7e0f3cb4f63934aba5efb9443f9c3c1ac3c3b2f8 100644 (file)
@@ -4,13 +4,15 @@ PACKING=.tar.gz
 CHECKSUM=44d667c142d7cda120332623eab69f40
 BUILDCHAIN=custom
 
+INSTALL_PATH=${INSTALL_PATH}/${NAME}
+
 package_specific_build () {
     cp -rf ${UNPACK_PATH}/${NAME}/* .
     ./configure --prefix=${INSTALL_PATH}
     make install
 }
 
-       
+
 package_specific_register () {
     export ZLIB_DIR=${INSTALL_PATH}/
     export ZLIB_INCLUDE=${INSTALL_PATH}/include

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.