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