summaryrefslogtreecommitdiff
path: root/audio/libamrnb/files/patch-prepare_sources.sh
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-07-14 21:33:04 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-07-14 21:33:04 +0000
commit6b0c72f87f5298ff56ef417fb0045e46472a3293 (patch)
tree5ac74f0ac78337d65e6f353b444a58764a9e916c /audio/libamrnb/files/patch-prepare_sources.sh
parentMake sure that all of the proper --disable-* args are passed to configure (diff)
- Fix Build
- Makefile cleanup PR: 113627 Submitted by: pointyhat via kris/pav Thanks to: Fredrik Lindberg, linimon Reviewed by: sat
Notes
Notes: svn path=/head/; revision=195608
Diffstat (limited to 'audio/libamrnb/files/patch-prepare_sources.sh')
-rw-r--r--audio/libamrnb/files/patch-prepare_sources.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/audio/libamrnb/files/patch-prepare_sources.sh b/audio/libamrnb/files/patch-prepare_sources.sh
new file mode 100644
index 000000000000..cab31005100f
--- /dev/null
+++ b/audio/libamrnb/files/patch-prepare_sources.sh
@@ -0,0 +1,31 @@
+--- prepare_sources.sh.orig Wed Jun 6 23:52:12 2007
++++ prepare_sources.sh Sat Jul 14 23:35:53 2007
+@@ -1,10 +1,10 @@
+-#! /bin/bash
++#! /bin/sh
+
+ set -o errexit
+-trap "rm -rf c-code *.c *.h readme.txt *.new *.def *.all" ERR
++trap "rm -rf c-code *.c *.h readme.txt *.new *.def *.all" 0
+
+ if [ "$0" = prepare_sources.sh ] ; then
+- cd "$(if ! which 2>/dev/null prepare_sources.sh ; then echo . fi )"
++ cd "$(if ! which 2>/dev/null prepare_sources.sh ; then echo . ; fi )"
+ else
+ cd "${0%/*}"
+ fi
+@@ -23,7 +23,7 @@
+ patch <amrnb-strict-aliasing.patch
+ patch <amrnb-any-cflags.patch
+
+-for FILE in interf_{dec,enc}.{c,h} ; do
++for FILE in interf_dec.[ch] interf_enc.[ch] ; do
+ echo "modifying file $FILE"
+ if test $FILE = ${FILE%.h} ; then
+ ENDSTRING="^}"
+@@ -100,3 +100,5 @@
+ rm $FILE.def $FILE.all
+ done
+ done
++
++trap 0