From fe1858f28aac480fac80b6b42e3b259ec74c6774 Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Thu, 17 Mar 2005 19:04:23 +0000 Subject: . Update to 4.2r1. . Convert to using the autoconf build infrastructure that is part of the distribution rather than rolling our own build infrastructure. . Take maintainership. [1] Approved by: mi [1] (previous maintainer) --- science/hdf/Makefile | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'science/hdf/Makefile') diff --git a/science/hdf/Makefile b/science/hdf/Makefile index 1002a5f48cd1..f648d4e7fb03 100644 --- a/science/hdf/Makefile +++ b/science/hdf/Makefile @@ -6,26 +6,28 @@ # PORTNAME= hdf -PORTVERSION= 4.1r5 +PORTVERSION= 4.2r1 CATEGORIES= science archivers graphics -MASTER_SITES= ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF${PORTVERSION}/tar/ +MASTER_SITES= ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF${PORTVERSION}/src/ DISTNAME= HDF${PORTVERSION} -MAINTAINER= mi@aldan.algebra.com +MAINTAINER= glewis@FreeBSD.org COMMENT= Hierarchical Data Format library (from NCSA) +BUILD_DEPENDS= ${LOCALBASE}/bin/libtool15:${PORTSDIR}/devel/libtool15 LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg CONFLICTS= netcdf-* +GNU_CONFIGURE= yes +CONFIGURE_ARGS+=--with-jpeg="${LOCALBASE}" +USE_REINPLACE= yes + MAN1= hdf.1 hdfunpac.1 ncdump.1 ncgen.1 -MAN3= gr_chunk.3 -MANCOMPRESSED= maybe +MANCOMPRESSED= no INSTALLS_SHLIB= yes -MAKE_ARGS= PREFIX="${PREFIX}" -j 2 - .include .if ${ARCH} != "i386" && ${ARCH} != "alpha" @@ -33,16 +35,10 @@ BROKEN= "Does not compile on !i386 and !alpha" .endif post-patch: - ${RM} -rf ${WRKSRC}/hdf/jpeg - ${RM} -rf ${WRKSRC}/hdf/zlib - -do-configure: - ${CP} -rp ${FILESDIR}/Makefile ${FILESDIR}/hdf \ - ${FILESDIR}/mfhdf ${FILESDIR}/man ${WRKSRC} - ${LN} -s config/netcdf-fbsd.h ${WRKSRC}/mfhdf/libsrc/netcdf.h - ${LN} -s netcdf-fbsd.inc ${WRKSRC}/mfhdf/fortran/config/netcdf.inc + ${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" \ + ${WRKSRC}/hdf/src/Makefile.in ${WRKSRC}/mfhdf/libsrc/Makefile.in test: build - cd ${WRKSRC}; ${MAKE} test + cd ${WRKSRC}/hdf/test && ${MAKE} check .include -- cgit