summaryrefslogtreecommitdiff
path: root/graphics/aalib
diff options
context:
space:
mode:
authorgrant <grant>2003-10-26 06:50:10 +0000
committergrant <grant>2003-10-26 06:50:10 +0000
commit25a6d6daaed5b6db8c6bb1668ee00ea7eb6997d5 (patch)
treef5507fd4a4568cdf66692fc7fdc845acb0d3fdc9 /graphics/aalib
parent853c33b589b3c4d484293bf194d3f87fd302867d (diff)
downloadpkgsrc-25a6d6daaed5b6db8c6bb1668ee00ea7eb6997d5.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')
-rw-r--r--graphics/aalib/Makefile.common10
1 files changed, 9 insertions, 1 deletions
diff --git a/graphics/aalib/Makefile.common b/graphics/aalib/Makefile.common
index 5e9cb77f43c..e04e3306b64 100644
--- a/graphics/aalib/Makefile.common
+++ b/graphics/aalib/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.9 2003/09/17 19:40:26 grant Exp $
+# $NetBSD: Makefile.common,v 1.10 2003/10/26 06:50:10 grant Exp $
DISTNAME= aalib-${DIST_VERS}
WRKSRC= ${WRKDIR}/aalib-1.4.0
@@ -22,4 +22,12 @@ LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
USE_PKGSRC_GCC= # defined
.endif
+.if !target(post-patch)
+post-patch:
+ @for f in `${FIND} ${WRKSRC} -name '*.[ch]'`; do \
+ ${SED} -e "s|<malloc.h>|<stdlib.h>|g" $$f > $$f.patch \
+ && ${MV} $$f.patch $$f; \
+ done
+.endif
+
.include "../../mk/bsd.pkg.mk"