summaryrefslogtreecommitdiff
path: root/math/oleo
diff options
context:
space:
mode:
Diffstat (limited to 'math/oleo')
-rw-r--r--math/oleo/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/math/oleo/Makefile b/math/oleo/Makefile
index 65c57d843312..ce23279377e3 100644
--- a/math/oleo/Makefile
+++ b/math/oleo/Makefile
@@ -47,7 +47,13 @@ pre-everything::
.endif
post-patch:
- @${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} \
- ${REINPLACE_CMD} -e "s|<malloc.h>|<stdlib.h>|g"
+ @${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|malloc\.h|stdlib.h|g'
+
+pre-build:
+.for file in src/io-term.c
+ cd ${WRKSRC} && ${MV} ${file} ${file}.pre_iconv \
+ && iconv -c -t ascii ${file}.pre_iconv > ${file} || ${TRUE}
+.endfor
.include <bsd.port.post.mk>