7 CATEGORIES= science archivers graphics
8 MASTER_SITES= ftp://ftp.hdfgroup.org/HDF5/current16/src/ \
9 ftp://ftp.hdfgroup.org/HDF5/prev-releases/ \
10 ftp://ftp.hdfgroup.org/HDF5/prev-releases/hdf5-${PORTVERSION}/src/ \
13 MAINTAINER= koziol@hdfgroup.org
14 COMMENT= Hierarchical Data Format library (from NCSA)
19 USE_AUTOTOOLS= libtool
21 LIBTOOLFILES= configure c++/configure
22 CONFIGURE_ARGS= --disable-debug \
26 --enable-strict-format-checks \
35 .include <bsd.port.pre.mk>
37 .if defined(WITH_FORTRAN)
38 LIBTOOLFILES+= fortran/configure
40 CONFIGURE_ENV+= F9X=${FC}
41 CONFIGURE_ARGS+= --enable-fortran
42 PLIST_SUB+= FORTRAN=""
44 PLIST_SUB+= FORTRAN="@comment "
47 .if ${ARCH} == "sparc64"
48 BROKEN= Does not compile on ${ARCH}
52 @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
53 @${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g' \
54 -e 's|[\$$]LDFLAGS -pthread|\$$LDFLAGS ${PTHREAD_LIBS}|g' \
55 ${WRKSRC}/config/freebsd ${WRKSRC}/c++/config/freebsd
56 @${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/config/gnu-flags
57 @${REINPLACE_CMD} -e 's|objformat=|#objformat=|g' \
58 -e 's|\(version_type=freebsd\)-.*|\1-elf|g' \
59 ${WRKSRC}/aclocal.m4 ${WRKSRC}/configure
60 .if defined(NOPORTEXAMPLES)
61 .for i in . c++ hl fortran
63 -e 's,\((cd examples && $$(MAKE) $$@) || exit 1;\),#\1,g' \
64 ${WRKSRC}/${i}/Makefile.in
69 .for i in gif2h5 h52gif h5debug h5diff h5dump h5import h5jam h5ls h5repack h5repart h5unjam
70 @${STRIP_CMD} ${PREFIX}/bin/${i}
73 regression-test: build
74 @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
76 .include <bsd.port.post.mk>