summaryrefslogtreecommitdiff
path: root/science/hdf5-18/Makefile
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-13 17:25:05 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-07-13 17:25:05 +0000
commit829b6335879a4990a54d262655ea362ab61f1f8d (patch)
treead1d145a9a954a659c3bd9e836083826c0bdeb87 /science/hdf5-18/Makefile
parentfix malloc.h bug in -current (diff)
- GNU_CONFIGURE -> USE_LIBTOOL
- Support CFLAGS/PTHREAD_CFLAGS/PTHREAD_LIBS properly - Strip binaries PR: 40498 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=62898
Diffstat (limited to 'science/hdf5-18/Makefile')
-rw-r--r--science/hdf5-18/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/science/hdf5-18/Makefile b/science/hdf5-18/Makefile
index 42a21b0b35dc..c43f4784cb27 100644
--- a/science/hdf5-18/Makefile
+++ b/science/hdf5-18/Makefile
@@ -17,14 +17,25 @@ USE_REINPLACE= yes
USE_PERL5= yes
USE_OPENSSL= yes
USE_LIBTOOL= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ENV= LDFLAGS="${PTHREAD_LIBS}"
+LIBTOOLFILES= configure c++/configure
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}"
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|-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' \
+ ${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>