blob: 9827872758f02d784d240aa30023ac9fc7dd83af (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD$
PORTNAME= hdf5
PORTVERSION= 1.8.10
CATEGORIES= science archivers graphics
MASTER_SITES= http://www.hdfgroup.org/ftp/HDF5/current/src/ \
ftp://ftp.hdfgroup.org/HDF5/current/src/ \
http://www.hdfgroup.org/ftp/HDF5/releases/${DISTNAME}/src/ \
ftp://ftp.hdfgroup.org/HDF5/releases/${DISTNAME}/src/
DISTNAME= ${PORTNAME}-${PORTVERSION}-patch1
PKGNAMESUFFIX= -18
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Hierarchical Data Format library (from NCSA)
OPTIONS_DEFINE= DEBUG EXAMPLES FORTRAN SZIP
CONFLICTS_INSTALL= hdf-4.[0-9]* hdf5-1.6.[0-9]*
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
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--disable-production --enable-debug=all
.endif
.if ${PORT_OPTIONS:MFORTRAN}
USES+= fortran
CONFIGURE_ARGS+=--enable-fortran
CONFIGURE_ENV+= F9X=${FC}
PLIST_SUB+= FORTRAN=""
.else
PLIST_SUB+= FORTRAN="@comment "
.endif
.if ${PORT_OPTIONS:MSZIP}
LIB_DEPENDS+= sz:${PORTSDIR}/science/szip
CONFIGURE_ARGS+=--with-szlib=${LOCALBASE}
.endif
.include <bsd.port.pre.mk>
.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'`
@${REINPLACE_CMD} -e 's|\[ -a|\[ -f|g' `${FIND} ${WRKSRC} -name \*.sh\*`
.if !${PORT_OPTIONS:MEXAMPLES}
@${REINPLACE_CMD} -e '/^install:/ s|install-examples||' ${WRKSRC}/Makefile.in
.endif
regression-test test: build
cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE} check
.include <bsd.port.post.mk>
|