41 lines
735 B
Plaintext
Executable File
41 lines
735 B
Plaintext
Executable File
#!/usr/bin/env modbuild
|
|
|
|
#if [[ ${V_MAJOR} == 1 ]]; then
|
|
# pbuild::compile_in_sourcetree
|
|
#fi
|
|
|
|
export LC_CTYPE=C
|
|
pbuild::post_prep() {
|
|
./autogen.sh
|
|
}
|
|
|
|
pbuild::pre_configure() {
|
|
pbuild::add_configure_args "--enable-parallel"
|
|
pbuild::add_configure_args "--enable-debug"
|
|
pbuild::add_configure_args "--enable-shared"
|
|
pbuild::add_configure_args "--with-hdf5=$HDF5_PREFIX"
|
|
pbuild::add_configure_args "--with-pic"
|
|
if (( V_MAJOR >= 2 )); then
|
|
: pbuild::add_configure_args "--enable-python"
|
|
fi
|
|
case "${COMPILER}" in
|
|
"clang-macos" )
|
|
:
|
|
;;
|
|
* )
|
|
pbuild::add_configure_args '--enable-fortran'
|
|
;;
|
|
esac
|
|
}
|
|
|
|
pbuild::compile() {
|
|
make -C src
|
|
make -C tools
|
|
}
|
|
|
|
pbuild::install() {
|
|
make -C src install
|
|
make -C tools install
|
|
}
|
|
|