1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/science/hdf5/Makefile

44 lines
1.2 KiB
Makefile
Raw Normal View History

2002-07-07 12:34:37 +00:00
# ex:ts=8
# New ports collection makefile for: HDF5
# Date created: Jul 7, 2002
# Whom: ijliao
#
1999-08-25 06:16:32 +00:00
# $FreeBSD$
#
2002-07-07 12:34:37 +00:00
PORTNAME= hdf5
2003-02-06 15:59:40 +00:00
PORTVERSION= 1.4.5
CATEGORIES= graphics
MASTER_SITES= http://fresh.t-systems-sfr.com/unix/src/misc/
2002-07-07 12:34:37 +00:00
MAINTAINER= ports@FreeBSD.org
2003-02-20 18:08:19 +00:00
COMMENT= Hierarchical Data Format library (from NCSA)
2002-07-07 12:34:37 +00:00
USE_REINPLACE= yes
USE_PERL5= yes
USE_OPENSSL= yes
USE_LIBTOOL= yes
LIBTOOLFILES= configure c++/configure
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}"
2002-07-07 12:34:37 +00:00
CONFIGURE_ARGS= --enable-cxx --enable-production \
--enable-threadsafe --disable-debug \
--with-ssl --with-pthread
INSTALLS_SHLIB= yes
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|[\$$]CFLAGS -pthread|\$$CFLAGS|g ; \
s|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \
s|[\$$]LDFLAGS -pthread|\$$LDFLAGS ${PTHREAD_LIBS}|g ; \
s|-lcipher||g' \
${WRKSRC}/config/freebsd
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/config/gnu-flags
post-install:
.for file in gif2h5 h52gif h5debug h5dump h5import h5ls h5perf h5repart
@${STRIP_CMD} ${PREFIX}/bin/${file}
.endfor
.include <bsd.port.mk>