e4b7b9118a
lang/gcc which have moved from GCC 4.8.5 to GCC 4.9.4 (at least under some circumstances such as versions of FreeBSD or platforms), part II. The first part covered ports with USE_GCC=yes, USE_GCC=any, or one of gcc-c++11-lib, openmp, nestedfct, c++11-lib as well as c++14-lang, c++11-lang, c++0x, c11 requested via USES=compiler. This adds ports with USES=fortran and ports using Mk/bsd.octave.mk which in turn has USES=fortran. PR: 214965 Reported by: thierry
59 lines
1.7 KiB
Makefile
59 lines
1.7 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= hdf5
|
|
PORTVERSION= 1.10.0
|
|
PORTREVISION= 2
|
|
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
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-patch1
|
|
|
|
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_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= *
|
|
|
|
NOT_FOR_ARCHS= sparc64
|
|
NOT_FOR_ARCHS_REASON= does not compile
|
|
|
|
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 <bsd.port.mk>
|