2008-11-24 05:29:55 +00:00
|
|
|
# New ports collection makefile for: hdf5-18
|
|
|
|
# Date created: Nov 20, 2008
|
|
|
|
# Whom: Wen Heping <wenheping@gmail.com>
|
1997-11-03 12:10:43 +00:00
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1997-11-03 12:10:43 +00:00
|
|
|
#
|
|
|
|
|
2002-07-07 12:34:37 +00:00
|
|
|
PORTNAME= hdf5
|
2011-07-15 06:58:28 +00:00
|
|
|
PORTVERSION= 1.8.7
|
2004-02-25 22:53:22 +00:00
|
|
|
CATEGORIES= science archivers graphics
|
2011-03-12 10:07:53 +00:00
|
|
|
MASTER_SITES= ftp://ftp.hdfgroup.org/HDF5/prev-releases/hdf5-${PORTVERSION}/src/
|
|
|
|
#DISTNAME= ${PORTNAME}-${PORTVERSION}-patch1
|
1997-11-03 12:10:43 +00:00
|
|
|
|
2007-03-08 17:33:53 +00:00
|
|
|
MAINTAINER= koziol@hdfgroup.org
|
2003-02-20 18:08:19 +00:00
|
|
|
COMMENT= Hierarchical Data Format library (from NCSA)
|
1997-11-03 12:10:43 +00:00
|
|
|
|
2010-05-04 17:50:41 +00:00
|
|
|
CONFLICTS= hdf-4.* hdf5-1.6.*
|
2009-05-31 20:31:08 +00:00
|
|
|
NO_LATEST_LINK= yes
|
2008-11-24 05:29:55 +00:00
|
|
|
|
2010-05-04 17:50:41 +00:00
|
|
|
USE_BZIP2= yes
|
2007-02-10 18:41:54 +00:00
|
|
|
USE_LDCONFIG= yes
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2011-01-09 11:00:35 +00:00
|
|
|
CONFIGURE_ARGS= --enable-cxx \
|
2008-02-29 16:59:01 +00:00
|
|
|
--enable-instrument \
|
|
|
|
--enable-strict-format-checks \
|
|
|
|
--with-pthread=/usr \
|
|
|
|
--with-zlib=/usr
|
1997-11-03 12:10:43 +00:00
|
|
|
|
2011-01-09 11:00:35 +00:00
|
|
|
OPTIONS= DEBUG "Debug" off \
|
|
|
|
FORTRAN "Fortran support" off \
|
2010-05-04 17:50:41 +00:00
|
|
|
SZIP "SZIP support" off
|
|
|
|
|
2004-03-06 23:26:19 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-03-12 10:07:53 +00:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug=all --disable-production
|
2011-01-09 11:00:35 +00:00
|
|
|
.endif
|
|
|
|
|
2008-05-31 22:42:50 +00:00
|
|
|
.if defined(WITH_FORTRAN)
|
2011-01-09 11:00:35 +00:00
|
|
|
USE_FORTRAN= yes
|
|
|
|
CONFIGURE_ENV+= F9X=${FC}
|
|
|
|
CONFIGURE_ARGS+=--enable-fortran
|
|
|
|
PLIST_SUB+= FORTRAN=""
|
2008-05-31 22:42:50 +00:00
|
|
|
.else
|
2011-01-09 11:00:35 +00:00
|
|
|
PLIST_SUB+= FORTRAN="@comment "
|
2008-05-31 22:42:50 +00:00
|
|
|
.endif
|
|
|
|
|
2010-05-04 17:50:41 +00:00
|
|
|
.if defined(WITH_SZIP)
|
2011-01-09 11:00:35 +00:00
|
|
|
LIB_DEPENDS+= sz.2:${PORTSDIR}/science/szip
|
|
|
|
CONFIGURE_ARGS+=--with-szlib=${LOCALBASE}
|
2010-05-04 17:50:41 +00:00
|
|
|
.endif
|
|
|
|
|
2007-08-01 07:57:45 +00:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on ${ARCH}
|
|
|
|
.endif
|
|
|
|
|
1999-11-14 02:32:21 +00:00
|
|
|
post-patch:
|
2002-07-13 17:25:05 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
2003-11-13 05:33:55 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/config/gnu-flags
|
2011-01-09 11:00:35 +00:00
|
|
|
@${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'`
|
|
|
|
.if defined(NOPORTEXAMPLES)
|
|
|
|
@${REINPLACE_CMD} -e '/^install:/ s|install-examples||' ${WRKSRC}/Makefile.in
|
2008-11-24 05:29:55 +00:00
|
|
|
.endif
|
1997-11-03 12:10:43 +00:00
|
|
|
|
2008-06-21 09:17:06 +00:00
|
|
|
regression-test: build
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
|
|
|
|
|
2004-03-06 23:26:19 +00:00
|
|
|
.include <bsd.port.post.mk>
|