aboutsummaryrefslogtreecommitdiff
path: root/science/hdf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'science/hdf/Makefile')
-rw-r--r--science/hdf/Makefile28
1 files changed, 12 insertions, 16 deletions
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 <bsd.port.pre.mk>
.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 <bsd.port.post.mk>