Index: head/science/hdf5/Makefile =================================================================== --- head/science/hdf5/Makefile (revision 459017) +++ head/science/hdf5/Makefile (revision 459018) @@ -1,58 +1,55 @@ # Created by: ijliao # $FreeBSD$ PORTNAME= hdf5 PORTVERSION= 1.10.1 PORTREVISION= 1 CATEGORIES= science archivers graphics MASTER_SITES= https://www.hdfgroup.org/ftp/HDF5/releases/hdf5-${PORTVERSION:R}/${DISTNAME}/src/ \ MASTER_SITES= https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${PORTVERSION:R}/${DISTNAME}/src/ \ ftp://support.hdfgroup.org/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]* -NOT_FOR_ARCHS= sparc64 -NOT_FOR_ARCHS_REASON= does not compile - OPTIONS_DEFINE= DEBUG EXAMPLES FORTRAN SZIP OPTIONS_DEFAULT=SZIP OPTIONS_SUB= yes CONFIGURE_ARGS= --enable-cxx \ --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 USES= libtool localbase tar:bzip2 PORTEXAMPLES= * 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 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 Index: head/science/hdf5-18/Makefile =================================================================== --- head/science/hdf5-18/Makefile (revision 459017) +++ head/science/hdf5-18/Makefile (revision 459018) @@ -1,93 +1,91 @@ # Created by: Wen Heping # $FreeBSD$ PORTNAME= hdf5 PORTVERSION= 1.8.20 # When PORTVERSION changes, please update french/med/files/patch-configure CATEGORIES= science archivers graphics MASTER_SITES= https://support.hdfgroup.org/ftp/HDF5/current18/src/ \ http://support.hdfgroup.org/ftp/HDF5/current18/src/ \ ftp://ftp.hdfgroup.org/HDF5/current18/src/ PKGNAMESUFFIX= -18 MAINTAINER= thierry@FreeBSD.org COMMENT= Hierarchical Data Format library (from NCSA) 1.8 LICENSE= BSD4CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_sparc64= Does not compile on ${ARCH} - OPTIONS_DEFINE= DEBUG EXAMPLES FORTRAN SZIP USES= libtool:keepla localbase tar:bzip2 USE_LDCONFIG= yes GNU_CONFIGURE= yes PORTSUFF= ${PORTNAME}${PKGNAMESUFFIX} CONFIGURE_ARGS= --enable-cxx \ --enable-instrument \ --enable-strict-format-checks \ --with-pthread=/usr \ --with-zlib=/usr \ --program-suffix=${PKGNAMESUFFIX} \ --includedir=${PREFIX}/include/${PORTSUFF} EXAMPLESDIR= ${PREFIX}/share/examples/${PORTSUFF} SUFF2FIX= tools/misc/h5cc.in tools/misc/h5redeploy.in \ c++/src/h5c++.in fortran/src/h5fc.in .include .if ${PORT_OPTIONS:MDEBUG} CONFIGURE_ARGS+=--disable-production --enable-debug=all .endif .if ${PORT_OPTIONS:MFORTRAN} USES+= fortran CONFIGURE_ARGS+=--enable-fortran CONFIGURE_ENV+= F9X=${FC} PLIST_SUB+= FORTRAN="" FCFLAGS_f90= ${FCFLAGS} LIBS+= -lstdc++ .else PLIST_SUB+= FORTRAN="@comment " .endif .if ${PORT_OPTIONS:MSZIP} LIB_DEPENDS+= libsz.so:science/szip CONFIGURE_ARGS+=--with-szlib=${LOCALBASE} .endif pre-configure: ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure ${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\*` .if !${PORT_OPTIONS:MEXAMPLES} ${REINPLACE_CMD} -e '/^install:/ s|install-examples||' ${WRKSRC}/Makefile.in .endif ${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \ ${REINPLACE_CMD} -e 's|libhdf5|libhdf5${PKGNAMESUFFIX}|g' ${REINPLACE_CMD} -e 's|libhdf5|libhdf5${PKGNAMESUFFIX}|g' \ ${WRKSRC}/test/testlibinfo.sh.in .for pf in ${SUFF2FIX} ${REINPLACE_CMD} -e 's|%%SUFF%%|${PKGNAMESUFFIX}|g' ${WRKSRC}/${pf} .endfor post-configure: ${CP} -p ${WRKSRC}/src/libhdf5.settings.in \ ${WRKSRC}/src/libhdf5${PKGNAMESUFFIX}.settings.in ${CP} -p ${WRKSRC}/src/libhdf5.settings \ ${WRKSRC}/src/libhdf5${PKGNAMESUFFIX}.settings post-stage: .if ${PORT_OPTIONS:MFORTRAN} ${MV} ${STAGEDIR}${PREFIX}/bin/h5fc ${STAGEDIR}${PREFIX}/bin/h5fc${PKGNAMESUFFIX} .endif regression-test test: build cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE} check .include