2012-12-20 06:41:13 +01:00
|
|
|
# Created by: mi
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1997-11-03 13:10:43 +01:00
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= hdf
|
2012-12-20 06:41:13 +01:00
|
|
|
DISTVERSION= 4.2.8
|
2012-04-21 20:07:21 +02:00
|
|
|
PORTEPOCH= 1
|
2004-02-29 10:10:21 +01:00
|
|
|
CATEGORIES= science archivers graphics
|
2012-12-20 06:41:13 +01:00
|
|
|
MASTER_SITES= http://www.hdfgroup.org/ftp/HDF/releases/%SUBDIR%/
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:U}${PORTVERSION}/src/
|
1997-11-03 13:10:43 +01:00
|
|
|
|
2009-01-13 06:30:45 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Hierarchical Data Format library (from NCSA)
|
1997-11-03 13:10:43 +01:00
|
|
|
|
2012-04-21 20:07:21 +02:00
|
|
|
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
|
|
|
|
sz:${PORTSDIR}/science/szip
|
1997-11-03 13:10:43 +01:00
|
|
|
|
2004-03-24 19:55:25 +01:00
|
|
|
CONFLICTS= netcdf-*
|
|
|
|
|
2012-04-21 20:07:21 +02:00
|
|
|
USE_BZIP2= yes
|
2009-01-14 07:00:46 +01:00
|
|
|
USE_FORTRAN= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2012-12-20 06:41:13 +01:00
|
|
|
CONFIGURE_ARGS= --with-jpeg="${LOCALBASE}" \
|
|
|
|
--with-szlib="${LOCALBASE}" \
|
2012-04-21 20:07:21 +02:00
|
|
|
--enable-shared
|
2012-12-20 06:41:13 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
MAKE_JOBS_SAFE= yes
|
2005-03-17 20:04:23 +01:00
|
|
|
|
1998-08-22 01:11:03 +02:00
|
|
|
MAN1= hdf.1 hdfunpac.1 ncdump.1 ncgen.1
|
2012-04-21 20:07:21 +02:00
|
|
|
MAN3= gr_chunk.3
|
1997-11-03 13:10:43 +01:00
|
|
|
|
2012-09-08 09:49:05 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "powerpc"
|
|
|
|
BROKEN= Does not compile on powerpc
|
|
|
|
.endif
|
|
|
|
|
2012-12-20 06:41:13 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/PROD_/s|=.*|=""|' ${WRKSRC}/config/freebsd
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/hdfunpac.1 ${MAN1PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/gr_chunk.3 ${MAN3PREFIX}/man/man3
|
|
|
|
|
|
|
|
check regression-test test: build
|
|
|
|
${MAKE} -C ${WRKSRC}/hdf/test check
|
|
|
|
|
2012-09-08 09:49:05 +02:00
|
|
|
.include <bsd.port.post.mk>
|