summaryrefslogtreecommitdiff
path: root/audio/nas
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-10-26 00:02:05 +0000
committergrant <grant@pkgsrc.org>2003-10-26 00:02:05 +0000
commitb5bd5a4abc26b161b13a76907c30f382f4240f4d (patch)
tree9e8de8c4a450ad956972da09c4965d0cc4859b8d /audio/nas
parent301a33a8d504b02ddf99f76ec62688412187a293 (diff)
downloadpkgsrc-b5bd5a4abc26b161b13a76907c30f382f4240f4d.tar.gz
replace <malloc.h> with <stdlib.h>, allowing this to build on systems
without <malloc.h>.
Diffstat (limited to 'audio/nas')
-rw-r--r--audio/nas/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/audio/nas/Makefile b/audio/nas/Makefile
index d6bb60ac584..7a20dd7b0f5 100644
--- a/audio/nas/Makefile
+++ b/audio/nas/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2003/09/17 19:39:58 grant Exp $
+# $NetBSD: Makefile,v 1.33 2003/10/26 00:02:05 grant Exp $
DISTNAME= nas-1.6.src
PKGNAME= ${DISTNAME:S/.src//}
@@ -25,6 +25,12 @@ PKG_SYSCONFSUBDIR= nas
REPLACE_PERL= clients/audio/auscope/auscope
+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
+
pre-configure:
cd ${WRKSRC}; for file in \
config/NetAudio.def; \