diff options
author | jlam <jlam@pkgsrc.org> | 2005-06-14 23:52:03 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-06-14 23:52:03 +0000 |
commit | 54b213ef6ee836a2846c974933f0043812b52d5d (patch) | |
tree | 885f72670bbf14317a4afd7d18d5bba7a51d86ad /multimedia/smpeg | |
parent | e4ba8ba91dda5f3696ed12a1abf35ebc540c608e (diff) | |
download | pkgsrc-54b213ef6ee836a2846c974933f0043812b52d5d.tar.gz |
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 (limited to 'multimedia/smpeg')
-rw-r--r-- | multimedia/smpeg/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/multimedia/smpeg/Makefile b/multimedia/smpeg/Makefile index b4d55863dbb..1254f9bd4c3 100644 --- a/multimedia/smpeg/Makefile +++ b/multimedia/smpeg/Makefile @@ -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 @@ CPPFLAGS+= -Dunix=1 .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" |