3f651573ad
Begin autotools sanitization sequence by requiring ports to explicitly specify which version of {libtool,autoconf,automake} they need, erasing the concept of a "system default". For ports-in-waiting: USE_LIBTOOL=YES -> USE_LIBTOOL_VER=13 USE_AUTOCONF=YES -> USE_AUTOCONF_VER=213 USE_AUTOMAKE=YES -> USE_AUTOMAKE_VER=14 Ports attempting to use the old style system after June 1st 2004 will be sorely disappointed.
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# ex:ts=8
|
|
# New ports collection makefile for: HDF5
|
|
# Date created: Jul 7, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= hdf5
|
|
PORTVERSION= 1.6.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= science archivers graphics
|
|
MASTER_SITES= ftp://hdf.ncsa.uiuc.edu/pub/outgoing/hdf5/snapshots/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-post2
|
|
|
|
MAINTAINER= koziol@ncsa.uiuc.edu
|
|
COMMENT= Hierarchical Data Format library (from NCSA)
|
|
|
|
USE_BZIP2= yes
|
|
USE_REINPLACE= yes
|
|
USE_LIBTOOL_VER=13
|
|
LIBTOOLFILES= configure c++/configure
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ARGS= --enable-cxx --enable-production \
|
|
--enable-threadsafe --disable-debug \
|
|
--with-pthread
|
|
ALL_TARGET= lib progs
|
|
INSTALLS_SHLIB= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \
|
|
s|[\$$]LDFLAGS -pthread|\$$LDFLAGS ${PTHREAD_LIBS}|g' \
|
|
${WRKSRC}/config/freebsd
|
|
@${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \
|
|
s|[\$$]LDFLAGS -pthread|\$$LDFLAGS ${PTHREAD_LIBS}|g' \
|
|
${WRKSRC}/c++/config/freebsd
|
|
@${REINPLACE_CMD} -e 's|-O3||g' ${WRKSRC}/config/gnu-flags
|
|
|
|
post-install:
|
|
.for i in gif2h5 h52gif h5debug h5diff h5dump h5import h5ls h5repart
|
|
@${STRIP_CMD} ${PREFIX}/bin/${i}
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|