Files
MX_Pmodule/Compiler/hdf5_serial/build

24 lines
514 B
Plaintext
Executable File

#!/usr/bin/env modbuild
SOURCE_URL="https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${V_MAJOR}.${V_MINOR}/hdf5-$V/src/hdf5-$V.tar.bz2"
pbuild::configure() {
test "$(basename "$CPP")" = "pgprepro" && {
CPP=cpp
CXX=g++
echo "INFO: substituted pgprepro with cpp, and pgc++ with g++!"
}
"${SRC_DIR}"/configure \
--prefix="${PREFIX}" \
--enable-shared \
--enable-cxx \
--enable-unsupported \
--enable-threadsafe \
--with-pic \
|| exit 1
}
pbuild::add_to_group 'Compiler'
pbuild::make_all