pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc The sources assume <malloc.h> exists. Create a fake o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1ade9a675ff5
branches:  trunk
changeset: 496971:1ade9a675ff5
user:      kristerw <kristerw%pkgsrc.org@localhost>
date:      Mon Jul 18 00:09:38 2005 +0000

description:
The sources assume <malloc.h> exists.  Create a fake one for platforms
that don't have it.

diffstat:

 math/gcalctool/Makefile |  10 +++++++++-
 print/lgrind/Makefile   |  10 +++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diffs (46 lines):

diff -r 75362429aa95 -r 1ade9a675ff5 math/gcalctool/Makefile
--- a/math/gcalctool/Makefile   Mon Jul 18 00:08:55 2005 +0000
+++ b/math/gcalctool/Makefile   Mon Jul 18 00:09:38 2005 +0000
@@ -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 @@
 
 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 -r 75362429aa95 -r 1ade9a675ff5 print/lgrind/Makefile
--- a/print/lgrind/Makefile     Mon Jul 18 00:08:55 2005 +0000
+++ b/print/lgrind/Makefile     Mon Jul 18 00:09:38 2005 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index