summaryrefslogtreecommitdiff
path: root/print/lgrind
diff options
context:
space:
mode:
authorkristerw <kristerw>2005-07-18 00:09:38 +0000
committerkristerw <kristerw>2005-07-18 00:09:38 +0000
commit8ad8baa652e53bd6b223dbcdc49f766835662580 (patch)
tree7762064d41070d9dd9e93eb8b7df1aeb38cdc4c5 /print/lgrind
parentcd00b3d3cc93a2ee5997e5ebbbfedebc3699ea31 (diff)
downloadpkgsrc-8ad8baa652e53bd6b223dbcdc49f766835662580.tar.gz
The sources assume <malloc.h> exists. Create a fake one for platforms
that don't have it.
Diffstat (limited to 'print/lgrind')
-rw-r--r--print/lgrind/Makefile10
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"