diff options
Diffstat (limited to 'print/lgrind')
-rw-r--r-- | print/lgrind/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/print/lgrind/Makefile b/print/lgrind/Makefile index b78c73ca9e4..d6ea253ff30 100644 --- a/print/lgrind/Makefile +++ b/print/lgrind/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2005/06/01 18:03:20 jlam Exp $ +# $NetBSD: Makefile,v 1.21 2005/07/18 00:15:13 kristerw Exp $ DISTNAME= lgrind PKGNAME= lgrind-3.5 @@ -37,4 +37,12 @@ pre-install: post-install: ${PREFIX}/bin/texconfig rehash +# The sources assume <malloc.h> exists. Create a fake one for platforms +# that don't have it. +post-wrapper: + if ${TEST} ! -f /usr/include/malloc.h; then \ + ${ECHO} "#include <stdlib.h>" \ + > ${BUILDLINK_DIR}/include/malloc.h; \ + fi + .include "../../mk/bsd.pkg.mk" |