summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-03-06 22:37:22 +0000
committeramdmi3 <amdmi3@FreeBSD.org>2014-03-06 22:37:22 +0000
commit54bc806b9dcc8212401e065fe1da94ac494cacfd (patch)
treebb94f021e2e4a342d3d42497807c91184987ab92
parent245aaa2faa82cee65207d5a4a2684314a0e968bc (diff)
downloadFreeBSD-ports-54bc806b9dcc8212401e065fe1da94ac494cacfd.zip
FreeBSD-ports-54bc806b9dcc8212401e065fe1da94ac494cacfd.tar.gz
- Fix build on 10.x
-rw-r--r--math/libneural/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/math/libneural/Makefile b/math/libneural/Makefile
index 792f040..6bfe93e 100644
--- a/math/libneural/Makefile
+++ b/math/libneural/Makefile
@@ -17,5 +17,8 @@ USE_LDCONFIG= yes
post-patch:
@${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|iostream.h|iostream|; s|fstream.h|fstream|; s|iomanip.h|iomanip|; \
+ s|endl|std::&|g; s|cerr|std::&|g; s|cout|std::&|g; s|cin|std::&|g; s|[oi]fstream |std::&|g' \
+ ${WRKSRC}/lib/neuron.cc ${WRKSRC}/lib/nnwork.cc ${WRKSRC}/examples/*.cc
.include <bsd.port.mk>
OpenPOWER on IntegriCloud