freebsd-ports/science/hdf5-18/Makefile

46 lines
1.3 KiB
Makefile
Raw Normal View History

2002-07-07 14:34:37 +02:00
# ex:ts=8
# New ports collection makefile for: HDF5
# Date created: Jul 7, 2002
# Whom: ijliao
#
1999-08-25 08:16:32 +02:00
# $FreeBSD$
#
2002-07-07 14:34:37 +02:00
PORTNAME= hdf5
PORTVERSION= 1.6.4
PORTREVISION= 1
CATEGORIES= science archivers graphics
MASTER_SITES= ftp://hdf.ncsa.uiuc.edu/pub/outgoing/hdf5/${PORTVERSION}/
MAINTAINER= koziol@ncsa.uiuc.edu
2003-02-20 19:08:19 +01:00
COMMENT= Hierarchical Data Format library (from NCSA)
2002-07-07 14:34:37 +02:00
USE_REINPLACE= yes
GNU_CONFIGURE= yes
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 \
--with-pthread
ALL_TARGET= lib progs
2002-07-07 14:34:37 +02:00
INSTALLS_SHLIB= yes
2004-03-07 00:26:19 +01:00
.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 h5jam h5unjam
@${STRIP_CMD} ${PREFIX}/bin/${i}
.endfor
2004-03-07 00:26:19 +01:00
.include <bsd.port.post.mk>