- variants for versions 1.0.2 and 1.1.0 added - compile version 1.1.0 with DKS_FULL=ON
33 lines
488 B
Plaintext
Executable File
33 lines
488 B
Plaintext
Executable File
#!/usr/bin/env modbuild
|
|
|
|
declare -ra vers=( ${V//./ } )
|
|
|
|
conf=()
|
|
if (( ${vers[0]} >= 1 && ${vers[1]} >= 1 )); then
|
|
conf+=("-DDKS_FULL=ON")
|
|
fi
|
|
|
|
pbuild::configure() {
|
|
export CXX=mpicxx
|
|
export CC=mpicc
|
|
cmake \
|
|
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
|
"${conf[@]}" \
|
|
"${MODULE_SRCDIR}" \
|
|
|| exit 1
|
|
}
|
|
|
|
pbuild::install() {
|
|
install -d "${PREFIX}/lib"
|
|
make install
|
|
}
|
|
|
|
pbuild::add_to_group 'MPI'
|
|
pbuild::make_all
|
|
|
|
# Local Variables:
|
|
# mode: sh
|
|
# sh-basic-offset: 8
|
|
# tab-width: 8
|
|
# End:
|