summaryrefslogtreecommitdiff
path: root/graphics/aalib-x11
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-10-26 06:50:10 +0000
committergrant <grant@pkgsrc.org>2003-10-26 06:50:10 +0000
commit62732b9100bd5bf5a3a8368180cd8c53a5dd2104 (patch)
treef5507fd4a4568cdf66692fc7fdc845acb0d3fdc9 /graphics/aalib-x11
parent4780eb72224a305e6d5a28f7e3ef2cb28111715b (diff)
downloadpkgsrc-62732b9100bd5bf5a3a8368180cd8c53a5dd2104.tar.gz
replace <malloc.h> with <stdlib.h>, allowing this to build on systems
without a working <malloc.h>, eg. FreeBSD 5.x.
Diffstat (limited to 'graphics/aalib-x11')
-rw-r--r--graphics/aalib-x11/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/aalib-x11/Makefile b/graphics/aalib-x11/Makefile
index 82dca068693..854a9e3bae5 100644
--- a/graphics/aalib-x11/Makefile
+++ b/graphics/aalib-x11/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2002/10/31 08:17:43 jlam Exp $
+# $NetBSD: Makefile,v 1.5 2003/10/26 06:50:10 grant Exp $
PKGNAME= aalib-x11-${BASE_VERS}
CATEGORIES+= x11
@@ -24,6 +24,10 @@ post-patch:
$${file} > $${file}.fixed; \
${MV} -f $${file}.fixed $${file}; \
done
+ @for f in `${FIND} ${WRKSRC} -name '*.[ch]'`; do \
+ ${SED} -e "s|<malloc.h>|<stdlib.h>|g" $$f > $$f.patch \
+ && ${MV} $$f.patch $$f; \
+ done
do-build:
cd ${WRKSRC}/src; ${SETENV} ${MAKE_ENV} \