aboutsummaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-06-16 22:33:27 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-06-16 22:33:27 +0000
commit499a93b228a8f8ac7f0a056bc0c49b758bc2a574 (patch)
tree4e3cf46514d3b6a88af50b4ba7e9d806995e1181 /science
parent331ac64f1b3ad22f6f2346657c56820728ee87db (diff)
downloadports-499a93b228a8f8ac7f0a056bc0c49b758bc2a574.tar.gz
ports-499a93b228a8f8ac7f0a056bc0c49b758bc2a574.zip
science/hdf: add back the previously removed powerpc workaround
Diffstat (limited to 'science')
-rw-r--r--science/hdf/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/science/hdf/Makefile b/science/hdf/Makefile
index bc9528d31ca9..a565101a1f89 100644
--- a/science/hdf/Makefile
+++ b/science/hdf/Makefile
@@ -46,6 +46,9 @@ post-patch:
post-install:
${INSTALL_MAN} ${WRKSRC}/man/hdfunpac.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1
+ # Allow to build on PowerPC
+ @${REINPLACE_CMD} -e '/if defined (__APPLE__)/ \
+ s,),) || defined(__powerpc__),' ${WRKSRC}/hdf/src/hdfi.h
${INSTALL_MAN} ${WRKSRC}/man/gr_chunk.3 \
${STAGEDIR}${MAN3PREFIX}/man/man3