09f9633cb6
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which has now moved from GCC 6 to GCC 7 by default. This includes ports - featuring USE_GCC=yes or USE_GCC=any, - featuring USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and those - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x, c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib. PR: 222542
51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
# Created by: mi
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= hdf
|
|
PORTVERSION= 4.2.11
|
|
PORTREVISION= 5
|
|
PORTEPOCH= 1
|
|
CATEGORIES= science archivers graphics
|
|
MASTER_SITES= http://www.hdfgroup.org/ftp/HDF/releases/HDF${PORTVERSION}/src/ \
|
|
ftp://ftp.hdfgroup.org/HDF/releases/HDF${PORTVERSION}/src/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Hierarchical Data Format library (from NCSA)
|
|
|
|
LIB_DEPENDS= libsz.so:science/szip
|
|
|
|
BROKEN_powerpc64= Does not build: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'you'
|
|
NOT_FOR_ARCHS= aarch64 armv6 armv7
|
|
NOT_FOR_ARCHS_REASON= fails to compile: no machine type has been defined
|
|
|
|
CONFLICTS_INSTALL= netcdf-4.[0-9]*
|
|
|
|
USES= fortran jpeg libtool tar:bzip2
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-shared --with-jpeg=${LOCALBASE} \
|
|
--with-szlib=${LOCALBASE}
|
|
USE_LDCONFIG= yes
|
|
INSTALL_TARGET= install-strip
|
|
TEST_TARGET= check
|
|
|
|
PORTDATA= *
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/PROD_/ s|=.*|=""|' ${WRKSRC}/config/freebsd
|
|
# Allow to build on PowerPC
|
|
@${REINPLACE_CMD} -e '/if defined (__APPLE__)/ \
|
|
s,),) || defined(__powerpc__),' ${WRKSRC}/hdf/src/hdfi.h
|
|
@${REINPLACE_CMD} -e 's/ || (__APPLE__.*//' \
|
|
${WRKSRC}/hdf/test/fortest.c
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/man/hdfunpac.1 \
|
|
${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/man/gr_chunk.3 \
|
|
${STAGEDIR}${MAN3PREFIX}/man/man3
|
|
|
|
.include <bsd.port.mk>
|