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