diff options
Diffstat (limited to 'math/femlab/Makefile')
-rw-r--r-- | math/femlab/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/math/femlab/Makefile b/math/femlab/Makefile index 65cd34167c5c..a159f8085c10 100644 --- a/math/femlab/Makefile +++ b/math/femlab/Makefile @@ -20,6 +20,13 @@ USE_X_PREFIX= yes FEMLAB_HOME= ${PREFIX}/lib/X11/femlab +pre-patch: + @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \ + ${WRKSRC}/source/graph.c ${WRKSRC}/source/y.tab.c \ + ${WRKSRC}/source/newdata.c ${WRKSRC}/source/post.c \ + ${WRKSRC}/source/kraftwerk.c ${WRKSRC}/source/list.c \ + ${WRKSRC}/include/xv.h ${WRKSRC}/fsource/y.tab.c + do-install: ${MKDIR} ${FEMLAB_HOME}/bin ${INSTALL_PROGRAM} ${WRKSRC}/source/femlab ${FEMLAB_HOME}/bin |