1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/science/hdf5/Makefile
Sunpoet Po-Chuan Hsieh 5b45f9d53f - Mark MAKE_JOBS_UNSAFE
- Fix PLIST
- Bump PORTREVISION for package change

PR:		ports/190138
Submitted by:	Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
2014-05-24 06:50:24 +00:00

63 lines
1.7 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= hdf5
PORTVERSION= 1.8.13
PORTREVISION= 1
CATEGORIES= science archivers graphics
MASTER_SITES= http://www.hdfgroup.org/ftp/HDF5/releases/${DISTNAME}/src/ \
ftp://ftp.hdfgroup.org/HDF5/releases/${DISTNAME}/src/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Hierarchical Data Format library (from NCSA)
LICENSE= BSD4CLAUSE
CONFLICTS_INSTALL= hdf-4.[0-9]* hdf5-1.6.[0-9]*
OPTIONS_DEFINE= DEBUG EXAMPLES FORTRAN SZIP
OPTIONS_SUB= yes
#CFLAGS+= -D__BSD_VISIBLE
CONFIGURE_ARGS= --enable-cxx \
--enable-hl \
--enable-instrument \
--enable-strict-format-checks \
--with-pthread=/usr \
--with-zlib=/usr
GNU_CONFIGURE= yes
MAKE_ENV= INSTALL_STRIP_FLAG=${STRIP}
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
USES= libtool tar:bzip2
PORTEXAMPLES= *
NOT_FOR_ARCHS= sparc64
NOT_FOR_ARCHS_REASON= does not compile
DEBUG_CONFIGURE_OFF= --enable-production
DEBUG_CONFIGURE_ON= --disable-production --enable-debug=all
FORTRAN_CONFIGURE_ENV= F9X=${FC}
FORTRAN_CONFIGURE_OFF= --disable-fortran --disable-fortran2003
FORTRAN_CONFIGURE_ON= --enable-fortran --enable-fortran2003
FORTRAN_USES= fortran
SZIP_CONFIGURE_ARGS= --with-szlib=${LOCALBASE}
SZIP_LIB_DEPENDS= libsz.so:${PORTSDIR}/science/szip
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|-pthread|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'`
@${REINPLACE_CMD} -e 's|\[ -a|\[ -f|g' `${FIND} ${WRKSRC} -name \*.sh\*`
regression-test test: build
cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check
.include <bsd.port.mk>