summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--science/hdf5-18/Makefile8
-rw-r--r--science/hdf5/Makefile8
2 files changed, 14 insertions, 2 deletions
diff --git a/science/hdf5-18/Makefile b/science/hdf5-18/Makefile
index 4d23e7fdc9c0..0facac7ed391 100644
--- a/science/hdf5-18/Makefile
+++ b/science/hdf5-18/Makefile
@@ -26,6 +26,12 @@ CONFIGURE_ARGS= --enable-cxx --enable-production \
ALL_TARGET= lib progs
INSTALLS_SHLIB= yes
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "sparc64"
+BROKEN= "Configure fails on sparc64"
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \
@@ -41,4 +47,4 @@ post-install:
@${STRIP_CMD} ${PREFIX}/bin/${i}
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/science/hdf5/Makefile b/science/hdf5/Makefile
index 4d23e7fdc9c0..0facac7ed391 100644
--- a/science/hdf5/Makefile
+++ b/science/hdf5/Makefile
@@ -26,6 +26,12 @@ CONFIGURE_ARGS= --enable-cxx --enable-production \
ALL_TARGET= lib progs
INSTALLS_SHLIB= yes
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "sparc64"
+BROKEN= "Configure fails on sparc64"
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \
@@ -41,4 +47,4 @@ post-install:
@${STRIP_CMD} ${PREFIX}/bin/${i}
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>