pkgsrc-ng/multimedia/libvpx/patches/patch-build_make_gen_asm_deps.sh
2014-11-05 12:41:07 +01:00

19 lines
670 B
Bash

$NetBSD: patch-build_make_gen_asm_deps.sh,v 1.2 2013/09/11 15:50:32 ryoon Exp $
Fix build problems under Mac OS X with Xcode 4.4 and newer. Patch
taken from here:
https://github.com/mxcl/homebrew/issues/12567#issuecomment-6434000
--- build/make/gen_asm_deps.sh.orig 2013-09-04 18:49:22.000000000 +0000
+++ build/make/gen_asm_deps.sh
@@ -42,7 +42,7 @@ done
[ -n "$srcfile" ] || show_help
sfx=${sfx:-asm}
-includes=$(LC_ALL=C egrep -i "include +\"?[a-z0-9_/]+\.${sfx}" $srcfile |
+includes=$(LC_ALL=C egrep -i "include +\"[a-z0-9_/]+\.${sfx}" $srcfile |
perl -p -e "s;.*?([a-z0-9_/]+.${sfx}).*;\1;")
#" restore editor state
for inc in ${includes}; do