diff options
author | kristerw <kristerw@pkgsrc.org> | 2005-07-18 00:09:38 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2005-07-18 00:09:38 +0000 |
commit | 52c422ce23298bdfd755d9aca61ac76dbf30f0d0 (patch) | |
tree | 7762064d41070d9dd9e93eb8b7df1aeb38cdc4c5 | |
parent | cee518c6b5311796bbf65d680e10c19b052df905 (diff) | |
download | pkgsrc-52c422ce23298bdfd755d9aca61ac76dbf30f0d0.tar.gz |
The sources assume <malloc.h> exists. Create a fake one for platforms
that don't have it.
-rw-r--r-- | math/gcalctool/Makefile | 10 | ||||
-rw-r--r-- | print/lgrind/Makefile | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/math/gcalctool/Makefile b/math/gcalctool/Makefile index a872da7f1cb..0af89b3443e 100644 --- a/math/gcalctool/Makefile +++ b/math/gcalctool/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.39 2005/06/21 18:18:57 jlam Exp $ +# $NetBSD: Makefile,v 1.40 2005/07/18 00:09:38 kristerw Exp $ # DISTNAME= gcalctool-5.5.42 @@ -21,6 +21,14 @@ USE_PKGLOCALEDIR= yes GCONF2_SCHEMAS= gcalctool.schemas +# 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 "../../devel/GConf2/schemas.mk" .include "../../devel/atk/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk" 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" |