source:
issm/oecreview/Archive/18296-19100/ISSM-18330-18331.diff@
19102
Last change on this file since 19102 was 19102, checked in by , 10 years ago | |
---|---|
File size: 2.8 KB |
-
../trunk-jpl/externalpackages/dakota/install-5.3.1-macosx64-snowleopard.sh
1 #!/bin/bash 2 set -eu 3 4 #Some cleanup 5 rm -rf Dakota 6 rm -rf src 7 rm -rf build 8 rm -rf install 9 mkdir src build install 10 11 #Download from ISSM server 12 $ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/dakota-5.3.1-public-src.tar.gz' 'dakota-5.3.1-public-src.tar.gz' 13 14 #Untar 15 tar -zxvf dakota-5.3.1-public-src.tar.gz 16 17 #Move Dakota to src directory 18 mv dakota-5.3.1.src/* src 19 rm -rf dakota-5.3.1.src 20 21 #Set up Dakota cmake variables and config 22 export DAK_SRC=$ISSM_DIR/externalpackages/dakota/src 23 export DAK_BUILD=$ISSM_DIR/externalpackages/dakota/build 24 cp $DAK_SRC/cmake/BuildDakotaTemplate.cmake $DAK_SRC/cmake/BuildDakotaCustom.cmake 25 patch $DAK_SRC/cmake/BuildDakotaCustom.cmake configs/5.3.1/BuildDakotaCustom.cmake.patch 26 patch $DAK_SRC/cmake/DakotaDev.cmake configs/5.3.1/DakotaDev.cmake.patch 27 28 #Apply patches 29 patch src/src/ParallelLibrary.cpp configs/5.3.1/ParallelLibrary.cpp.patch 30 patch src/src/ParallelLibrary.hpp configs/5.3.1/ParallelLibrary.hpp.patch 31 patch src/src/NonDSampling.cpp configs/5.3.1/NonDSampling.cpp.patch 32 patch src/src/NonDLocalReliability.cpp configs/5.3.1/NonDLocalReliability.cpp.patch 33 patch src/packages/pecos/src/pecos_global_defs.hpp configs/5.3.1/pecos_global_defs.hpp.patch 34 35 #Configure dakota 36 cd $DAK_BUILD 37 #cmake -D CMAKE_C_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gcc -D CMAKE_CXX_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-g++ -D CMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran -D BOOST_ROOT=/opt/local -D Boost_INCLUDE_DIR=/opt/local/include -C $DAK_SRC/cmake/BuildDakotaCustom.cmake -C $DAK_SRC/cmake/DakotaDev.cmake $DAK_SRC 38 cmake -D CMAKE_C_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gcc -D CMAKE_CXX_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-g++ -D CMAKE_Fortran_COMPILER=/usr/local/gfortran/bin/x86_64-apple-darwin10-gfortran -D LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH -D LDFLAGS="-L/usr/lib -lstdc++" -C $DAK_SRC/cmake/BuildDakotaCustom.cmake -C $DAK_SRC/cmake/DakotaDev.cmake $DAK_SRC 39 cd .. 40 41 #Compile and install dakota 42 cd $DAK_BUILD 43 if [ $# -eq 0 ]; 44 then 45 make 46 make install 47 else 48 make -j $1 49 make -j $1 install 50 fi 51 cd ..
Note:
See TracBrowser
for help on using the repository browser.