summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--biology/nab/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/biology/nab/Makefile b/biology/nab/Makefile
index 295a46787784..669b522af9c7 100644
--- a/biology/nab/Makefile
+++ b/biology/nab/Makefile
@@ -27,6 +27,10 @@ INCS= defreal.h nab.h nabcode.h nabtypes.h
post-extract:
@${CP} ${FILESDIR}/config.h ${WRKSRC}
+pre-patch:
+ @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \
+ ${WRKSRC}/cifparse/cifparse.c
+
pre-install:
@cd ${WRKSRC}/src && \
${SETENV} PREFIX=${PREFIX} ${MAKE} beforerealinstall