openbsd-ports/math/hdf5/Makefile

43 lines
1001 B
Makefile

# gfortran
ONLY_FOR_ARCHS = ${GCC49_ARCHS}
COMMENT = Hierarchical Data Format 5 Technology suite
GH_ACCOUNT = HDFGroup
GH_PROJECT = hdf5
GH_TAGNAME = 1.14.1
SHARED_LIBS += hdf5 5.0 # 311.0
SHARED_LIBS += hdf5_cpp 9.0 # 310.1
SHARED_LIBS += hdf5_hl 4.0 # 310.1
SHARED_LIBS += hdf5_hl_cpp 5.0 # 310.1
SHARED_LIBS += hdf5_fortran 2.0 # 311.0
SHARED_LIBS += hdf5hl_fortran 1.0 # 310.1
CATEGORIES = math
HOMEPAGE = https://www.hdfgroup.org/HDF5/
MAINTAINER = Martin Reindl <martin@catai.org>
# https://www.hdfgroup.org/ftp/HDF5/current/src/unpacked/COPYING
PERMIT_PACKAGE = Yes
WANTLIB += c m ${COMPILER_LIBCXX} z
COMPILER = base-clang ports-gcc base-gcc
MODULES = fortran
SEPARATE_BUILD = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --enable-cxx \
--enable-fortran \
FC=egfortran \
--with-examplesdir=${PREFIX}/share/examples/hdf5
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/hdf5
${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/hdf5
.include <bsd.port.mk>