summaryrefslogtreecommitdiff
path: root/multimedia/smpeg
diff options
context:
space:
mode:
authorjlam <jlam>2005-06-14 23:52:03 +0000
committerjlam <jlam>2005-06-14 23:52:03 +0000
commit5e5670e6a5d08b6221319d690564d94dfde569d5 (patch)
tree885f72670bbf14317a4afd7d18d5bba7a51d86ad /multimedia/smpeg
parent0323172a162338650fc9ac90368e5aa17ed888c6 (diff)
downloadpkgsrc-5e5670e6a5d08b6221319d690564d94dfde569d5.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/Makefile12
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"