summaryrefslogtreecommitdiffstats
path: root/math/oleo/Makefile
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2003-09-04 14:27:56 +0000
committerkrion <krion@FreeBSD.org>2003-09-04 14:27:56 +0000
commitc05633e89337c5c9cc05a266d46fa04076485b93 (patch)
tree92aea9fe160722e4b56dd013c13cfab7fd337e53 /math/oleo/Makefile
parentcea07c4f2a228618dd56e2e77fe4d3d90a9cce64 (diff)
downloadFreeBSD-ports-c05633e89337c5c9cc05a266d46fa04076485b93.zip
FreeBSD-ports-c05633e89337c5c9cc05a266d46fa04076485b93.tar.gz
- Fix build
PR: 56436 Submitted by: Ports Fury
Diffstat (limited to 'math/oleo/Makefile')
-rw-r--r--math/oleo/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/math/oleo/Makefile b/math/oleo/Makefile
index 65c57d8..ce23279 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>
OpenPOWER on IntegriCloud