summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-06-14 23:52:03 +0000
committerjlam <jlam@pkgsrc.org>2005-06-14 23:52:03 +0000
commiteb48075758f06368d9dea77115926cebcf6ade4a (patch)
tree885f72670bbf14317a4afd7d18d5bba7a51d86ad
parentf1a77796d66126e55e1140cb26abf2c68660ecc0 (diff)
downloadpkgsrc-eb48075758f06368d9dea77115926cebcf6ade4a.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.
-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"