1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00
freebsd-ports/science/hdf5-18/Makefile

73 lines
1.8 KiB
Makefile
Raw Normal View History

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