From e308df5ed1823f5fd01132031c6e869a7acf35a5 Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 14 Jun 2005 23:52:03 +0000 Subject: smpeg sources (glmovie.c & glmovie-tile.c) assume exists. Create a fake one for platforms that don't have it. This fixes a problem on Darwin noted in the latest bulk build. --- multimedia/smpeg/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'multimedia') 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 exists. +# Create a fake one for platforms that don't have it. +# +post-wrapper: + if ${TEST} ! -f /usr/include/malloc.h; then \ + ${ECHO} "#include " \ + > ${BUILDLINK_DIR}/include/malloc.h; \ + fi + + .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3