pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/smpeg smpeg sources (glmovie.c & glmovie-ti...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/81bf2780a780
branches:  trunk
changeset: 495606:81bf2780a780
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Jun 14 23:52:03 2005 +0000

description:
smpeg sources (glmovie.c & glmovie-tile.c) assume <malloc.h> exists.
Create a fake one for platforms that don't have it.  This fixes a
problem on Darwin noted in the latest bulk build.

diffstat:

 multimedia/smpeg/Makefile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r c7c4e667f570 -r 81bf2780a780 multimedia/smpeg/Makefile
--- a/multimedia/smpeg/Makefile Tue Jun 14 22:56:59 2005 +0000
+++ b/multimedia/smpeg/Makefile Tue Jun 14 23:52:03 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2005/06/01 18:03:07 jlam Exp $
+# $NetBSD: Makefile,v 1.9 2005/06/14 23:52:03 jlam Exp $
 #
 
 DISTNAME=      smpeg-0.4.4
@@ -30,4 +30,14 @@
 .include "../../graphics/glu/buildlink3.mk"
 .include "../../x11/gtk/buildlink3.mk"
 
+# smpeg sources (glmovie.c & glmovie-tile.c) 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