aboutsummaryrefslogtreecommitdiff
path: root/science/hdf5/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'science/hdf5/Makefile')
-rw-r--r--science/hdf5/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/science/hdf5/Makefile b/science/hdf5/Makefile
index 42a21b0b35dc..c43f4784cb27 100644
--- a/science/hdf5/Makefile
+++ b/science/hdf5/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>