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 /math | |
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.
Diffstat (limited to 'math')
-rw-r--r-- | math/gcalctool/Makefile | 10 |
1 files changed, 9 insertions, 1 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" |