39 lines
1005 B
Makefile

# $OpenBSD: Makefile,v 1.19 2019/07/12 20:47:41 sthen Exp $
COMMENT = Hierarchical Data Format 5 Technology suite
V = 1.10.5
DISTNAME = hdf5-${V}
SHARED_LIBS += hdf5 2.0 # 104.0
SHARED_LIBS += hdf5_cpp 6.0 # 104.0
SHARED_LIBS += hdf5_hl 2.0 # 101.2
SHARED_LIBS += hdf5_hl_cpp 3.0 # 101.3
CATEGORIES = math
HOMEPAGE = https://www.hdfgroup.org/HDF5/
MAINTAINER = Ingo Feinerer <feinerer@logic.at>
# 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
MASTER_SITES = https://support.hdfgroup.org/ftp/HDF5/current/src/ \
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-${V}/src/
SEPARATE_BUILD = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --enable-cxx
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/hdf5
${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/hdf5
mv ${PREFIX}/share/hdf5_examples ${PREFIX}/share/examples/hdf5
.include <bsd.port.mk>