build-scripts reviewed
This commit is contained in:
+10
-23
@@ -1,31 +1,18 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
SOURCE_URL="http://amas.web.psi.ch/Downloads/$P/src/$P-$V.tar.bz2"
|
||||
pbuild::set_download_url "http://amas.web.psi.ch/Downloads/$P/src/$P-$V.tar.bz2"
|
||||
pbuild::add_to_group 'MPI'
|
||||
|
||||
config_args=()
|
||||
|
||||
case ${OS} in
|
||||
Darwin )
|
||||
:
|
||||
;;
|
||||
Linux )
|
||||
pbuild::pre_configure_Linux() {
|
||||
if (( V_MAJOR < 2)); then
|
||||
config_args+=( '-DENABLE_DKS=ON' )
|
||||
pbuild::add_configure_args '-DENABLE_DKS=ON'
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# add -fopenmp to CC and CXX, if you want to compile with OpenMP
|
||||
pbuild::configure() {
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DENABLE_SAAMG_SOLVER=TRUE \
|
||||
"${config_args[@]}" \
|
||||
"${SRC_DIR}"
|
||||
}
|
||||
|
||||
pbuild::add_to_group 'MPI'
|
||||
pbuild::set_supported_compilers 'gcc/5.4.0' 'gcc/5.5.0' 'gcc/6.4.0' 'gcc/7.3.0'
|
||||
pbuild::make_all
|
||||
# add -fopenmp to CC and CXX, if you want to compile with OpenMP
|
||||
pbuild::pre_configure() {
|
||||
pbuild::add_configure_args "-DCMAKE_BUILD_TYPE=Release"
|
||||
pbuild::add_configure_args "-DENABLE_SAAMG_SOLVER=TRUE"
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
# :FIXME: need review!
|
||||
|
||||
pbuild::configure() {
|
||||
case ${COMPILER} in
|
||||
gcc )
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
# :FIXME: download url must be added and script must be reviewed!
|
||||
|
||||
#pbuild::supported_os 'Linux'
|
||||
|
||||
case $OS in
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
# :FIXME: script does not work any more!
|
||||
|
||||
SOURCE_URL="dks-1.1.2.tar.gz"
|
||||
|
||||
declare -ra vers=( ${V//./ } )
|
||||
|
||||
+10
-14
@@ -1,23 +1,19 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
SOURCE_URL="http://ftp.gromacs.org/pub/$P/$P-$V.tar.gz"
|
||||
|
||||
pbuild::configure() {
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
||||
-DCMAKE_BUILD_TYPE=RELEASE \
|
||||
-DGMX_MPI=on \
|
||||
-DGMX_GPU=off \
|
||||
-DGMX_SIMD=SSE2 \
|
||||
-DGMX_BUILD_OWN_FFTW=on \
|
||||
"${SRC_DIR}" \
|
||||
|| exit 1
|
||||
}
|
||||
pbuild::set_download_url "http://ftp.gromacs.org/pub/$P/$P-${V_PKG}.tar.gz"
|
||||
|
||||
pbuild::add_to_group 'MPI'
|
||||
pbuild::install_docfiles \
|
||||
AUTHORS \
|
||||
COPYING \
|
||||
README
|
||||
pbuild::make_all
|
||||
|
||||
pbuild::pre_configure() {
|
||||
pbuild::add_configure_args "-DCMAKE_BUILD_TYPE=RELEASE"
|
||||
pbuild::add_configure_args "-DGMX_MPI=on"
|
||||
pbuild::add_configure_args "-DGMX_GPU=off"
|
||||
pbuild::add_configure_args "-DGMX_SIMD=SSE2"
|
||||
pbuild::add_configure_args "-DGMX_BUILD_OWN_FFTW=on"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user