1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/science/hdf5/Makefile
2019-12-30 16:57:12 +00:00

60 lines
1.6 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= hdf5
PORTVERSION= 1.10.6
CATEGORIES= science archivers graphics
MASTER_SITES= https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${PORTVERSION:R}/${DISTNAME}/src/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Hierarchical Data Format library (from NCSA)
LICENSE= BSD4CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
CONFLICTS_INSTALL= hdf-4.[0-9]* hdf5-1.6.[0-9]*
OPTIONS_DEFINE= DEBUG EXAMPLES FORTRAN SZIP
OPTIONS_RADIO= SUPPORT
OPTIONS_RADIO_SUPPORT= CXX PARALLEL
OPTIONS_DEFAULT=CXX SZIP
OPTIONS_SUB= yes
PARALLEL_DESC= Parallel support
USES= compiler:c11 libtool localbase tar:bzip2
CONFIGURE_ARGS= --enable-hl \
--enable-instrument \
--enable-strict-format-checks
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
MAKE_JOBS_UNSAFE= yes
TEST_TARGET= check
USE_LDCONFIG= yes
PORTEXAMPLES= *
CXX_CONFIGURE_ENABLE= cxx
DEBUG_CONFIGURE_OFF= --enable-build-mode=production
DEBUG_CONFIGURE_ON= --enable-build-mode=debug
FORTRAN_CONFIGURE_ENABLE= fortran
FORTRAN_CONFIGURE_ENV= F9X=${FC}
FORTRAN_USES= fortran
PARALLEL_CONFIGURE_ENABLE= parallel
PARALLEL_LDFLAGS= -L${LOCALBASE}/lib -lmpi
PARALLEL_LIB_DEPENDS= libmpi.so:net/mpich
SZIP_CONFIGURE_ON= --with-szlib=${LOCALBASE}
SZIP_LIB_DEPENDS= libsz.so:science/szip
post-patch:
@${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/config/gnu-flags
@${REINPLACE_CMD} \
-e '/LD_LIBRARY_PATH/ s|^|#|' \
-e 's|/share/hdf5_examples|/${EXAMPLESDIR_REL}|' \
-e 's|(INSTALL)|(INSTALL_DATA)|' \
`${FIND} ${WRKSRC} -regex '.*/examples/Makefile.in'`
@${REINPLACE_CMD} -e 's|\[ -a|\[ -f|g' `${FIND} ${WRKSRC} -name \*.sh\*`
.include <bsd.port.mk>