summaryrefslogtreecommitdiff
path: root/audio
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
commit8f48606ca6ad11fa07dce438c6a4b7cdf51dab98 (patch)
tree9e8de8c4a450ad956972da09c4965d0cc4859b8d /audio
parent232b510ca2b21792cad90a309bb6c6112808da76 (diff)
downloadpkgsrc-8f48606ca6ad11fa07dce438c6a4b7cdf51dab98.tar.gz
replace <malloc.h> with <stdlib.h>, allowing this to build on systems
without <malloc.h>.
Diffstat (limited to 'audio')
-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; \