2002-07-07 14:34:37 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: HDF5
|
|
|
|
# Date created: Jul 7, 2002
|
|
|
|
# Whom: ijliao
|
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
|
2005-05-11 05:44:40 +02:00
|
|
|
PORTVERSION= 1.6.4
|
2006-02-23 11:40:44 +01:00
|
|
|
PORTREVISION= 1
|
2004-02-25 23:53:22 +01:00
|
|
|
CATEGORIES= science archivers graphics
|
2005-02-15 21:11:35 +01:00
|
|
|
MASTER_SITES= ftp://hdf.ncsa.uiuc.edu/pub/outgoing/hdf5/${PORTVERSION}/
|
1997-11-03 13:10:43 +01:00
|
|
|
|
2004-02-25 23:53:22 +01:00
|
|
|
MAINTAINER= koziol@ncsa.uiuc.edu
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= Hierarchical Data Format library (from NCSA)
|
1997-11-03 13:10:43 +01:00
|
|
|
|
2002-07-07 14:34:37 +02:00
|
|
|
USE_REINPLACE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2002-07-13 19:25:05 +02:00
|
|
|
LIBTOOLFILES= configure c++/configure
|
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
2002-07-07 14:34:37 +02:00
|
|
|
CONFIGURE_ARGS= --enable-cxx --enable-production \
|
|
|
|
--enable-threadsafe --disable-debug \
|
2004-02-25 23:53:22 +01:00
|
|
|
--with-pthread
|
|
|
|
ALL_TARGET= lib progs
|
2002-07-07 14:34:37 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
1997-11-03 13:10:43 +01:00
|
|
|
|
2004-03-07 00:26:19 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
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
|
2004-02-25 23:53:22 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \
|
|
|
|
s|[\$$]LDFLAGS -pthread|\$$LDFLAGS ${PTHREAD_LIBS}|g' \
|
2002-07-13 19:25:05 +02:00
|
|
|
${WRKSRC}/config/freebsd
|
2004-02-25 23:53:22 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \
|
|
|
|
s|[\$$]LDFLAGS -pthread|\$$LDFLAGS ${PTHREAD_LIBS}|g' \
|
|
|
|
${WRKSRC}/c++/config/freebsd
|
2003-11-13 06:33:55 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/config/gnu-flags
|
2002-07-13 19:25:05 +02:00
|
|
|
|
|
|
|
post-install:
|
2005-05-11 05:44:40 +02:00
|
|
|
.for i in gif2h5 h52gif h5debug h5diff h5dump h5import h5ls h5repart h5jam h5unjam
|
2003-11-13 06:33:55 +01:00
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/${i}
|
2002-07-13 19:25:05 +02:00
|
|
|
.endfor
|
1997-11-03 13:10:43 +01:00
|
|
|
|
2004-03-07 00:26:19 +01:00
|
|
|
.include <bsd.port.post.mk>
|