author | jurikm |
Sun, 12 Feb 2012 14:04:10 +0000 | |
changeset 8245 | 383896da4129 |
parent 8141 | f7513c2ebb06 |
permissions | -rw-r--r-- |
8141 | 1 |
--- a/configure 2012-01-26 23:28:43.741451136 -0500 |
2 |
+++ b/configure 2012-01-26 23:34:43.551764485 -0500 |
|
3 |
@@ -336,17 +336,17 @@ |
|
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
4 |
} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
5 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
6 |
c_escape(){ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
7 |
- echo "$*" | sed 's/["\\]/\\\0/g' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
8 |
+ echo "$*" | /usr/gnu/bin/sed 's/["\\]/\\\0/g' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
9 |
} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
10 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
11 |
sh_quote(){ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
12 |
- v=$(echo "$1" | sed "s/'/'\\\\''/g") |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
13 |
+ v=$(echo "$1" | /usr/gnu/bin/sed "s/'/'\\\\''/g") |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
14 |
test "x$v" = "x${v#*[!A-Za-z0-9_/.+-]}" || v="'$v'" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
15 |
echo "$v" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
16 |
} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
17 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
18 |
cleanws(){ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
19 |
- echo "$@" | sed 's/^ *//;s/ */ /g;s/ *$//' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
20 |
+ echo "$@" | /usr/gnu/bin/sed 's/^ *//;s/ */ /g;s/ *$//' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
21 |
} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
22 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
23 |
filter(){ |
8141 | 24 |
@@ -390,11 +390,11 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
25 |
set_safe(){ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
26 |
var=$1 |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
27 |
shift |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
28 |
- eval $(echo "$var" | sed 's/[^A-Za-z0-9_]/_/g')='$*' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
29 |
+ eval $(echo "$var" | /usr/gnu/bin/sed 's/[^A-Za-z0-9_]/_/g')='$*' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
30 |
} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
31 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
32 |
get_safe(){ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
33 |
- eval echo \$$(echo "$1" | sed 's/[^A-Za-z0-9_]/_/g') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
34 |
+ eval echo \$$(echo "$1" | /usr/gnu/bin/sed 's/[^A-Za-z0-9_]/_/g') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
35 |
} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
36 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
37 |
pushvar(){ |
8141 | 38 |
@@ -434,13 +434,13 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
39 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
40 |
enable_safe(){ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
41 |
for var; do |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
42 |
- enable $(echo "$var" | sed 's/[^A-Za-z0-9_]/_/g') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
43 |
+ enable $(echo "$var" | /usr/gnu/bin/sed 's/[^A-Za-z0-9_]/_/g') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
44 |
done |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
45 |
} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
46 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
47 |
disable_safe(){ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
48 |
for var; do |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
49 |
- disable $(echo "$var" | sed 's/[^A-Za-z0-9_]/_/g') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
50 |
+ disable $(echo "$var" | /usr/gnu/bin/sed 's/[^A-Za-z0-9_]/_/g') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
51 |
done |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
52 |
} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
53 |
|
8141 | 54 |
@@ -1679,7 +1679,7 @@ |
55 |
ffmpeg_deps="avcodec avformat swscale swresample" |
|
56 |
ffmpeg_select="buffersink_filter" |
|
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
57 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
58 |
-doc_deps="texi2html" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
59 |
+doc_deps="texi2html pod2man" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
60 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
61 |
# tests |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
62 |
|
8141 | 63 |
@@ -1873,7 +1873,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
64 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
65 |
# since the object filename is not given with the -MM flag, the compiler |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
66 |
# is only able to print the basename, and we must add the path ourselves |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
67 |
-DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o," > $(@:.o=.d)' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
68 |
+DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | /usr/gnu/bin/sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o," > $(@:.o=.d)' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
69 |
DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -MM' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
70 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
71 |
# find source path |
8141 | 72 |
@@ -1881,7 +1881,7 @@ |
8007 | 73 |
source_path=. |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
74 |
else |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
75 |
source_path=$(cd $(dirname "$0"); pwd) |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
76 |
- echo "$source_path" | grep -q '[[:blank:]]' && |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
77 |
+ echo "$source_path" | /usr/gnu/bin/grep -q '[[:blank:]]' && |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
78 |
die "Out of tree builds are impossible with whitespace in source path." |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
79 |
test -e "$source_path/config.h" && |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
80 |
die "Out of tree builds are impossible with config.h in source dir." |
8141 | 81 |
@@ -1898,7 +1898,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
82 |
thing=$1 |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
83 |
pattern=$2 |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
84 |
file=$source_path/$3 |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
85 |
- sed -n "s/^[^#]*$pattern.*([^,]*, *\([^,]*\)\(,.*\)*).*/\1_$thing/p" "$file" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
86 |
+ /usr/gnu/bin/sed -n "s/^[^#]*$pattern.*([^,]*, *\([^,]*\)\(,.*\)*).*/\1_$thing/p" "$file" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
87 |
} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
88 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
89 |
ENCODER_LIST=$(find_things encoder ENC libavcodec/allcodecs.c) |
8141 | 90 |
@@ -1928,7 +1928,7 @@ |
91 |
" |
|
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
92 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
93 |
find_tests(){ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
94 |
- map "echo ${2}\${v}_test" $(ls "$source_path"/tests/ref/$1 | grep -v '[^-a-z0-9_]') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
95 |
+ map "echo ${2}\${v}_test" $(ls "$source_path"/tests/ref/$1 | /usr/gnu/bin/grep -v '[^-a-z0-9_]') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
96 |
} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
97 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
98 |
ACODEC_TESTS=$(find_tests acodec) |
8141 | 99 |
@@ -1958,7 +1958,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
100 |
show_list() { |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
101 |
suffix=_$1 |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
102 |
shift |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
103 |
- echo $* | sed s/$suffix//g | tr ' ' '\n' | sort | pr -3 -t |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
104 |
+ echo $* | /usr/gnu/bin/sed s/$suffix//g | tr ' ' '\n' | sort | pr -3 -t |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
105 |
exit 0 |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
106 |
} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
107 |
|
8141 | 108 |
@@ -1977,14 +1977,14 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
109 |
map 'eval unset \${$(toupper ${v%s})_LIST}' $COMPONENT_LIST |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
110 |
;; |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
111 |
--enable-*=*|--disable-*=*) |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
112 |
- eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
113 |
+ eval $(echo "${opt%%=*}" | /usr/gnu/bin/sed 's/--/action=/;s/-/ thing=/') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
114 |
is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
115 |
eval list=\$$(toupper $thing)_LIST |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
116 |
- name=$(echo "${optval}" | sed "s/,/_${thing}|/g")_${thing} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
117 |
+ name=$(echo "${optval}" | /usr/gnu/bin/sed "s/,/_${thing}|/g")_${thing} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
118 |
$action $(filter "$name" $list) |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
119 |
;; |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
120 |
--enable-?*|--disable-?*) |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
121 |
- eval $(echo "$opt" | sed 's/--/action=/;s/-/ option=/;s/-/_/g') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
122 |
+ eval $(echo "$opt" | /usr/gnu/bin/sed 's/--/action=/;s/-/ option=/;s/-/_/g') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
123 |
if is_in $option $COMPONENT_LIST; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
124 |
test $action = disable && action=unset |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
125 |
eval $action \$$(toupper ${option%s})_LIST |
8141 | 126 |
@@ -2005,7 +2005,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
127 |
*) |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
128 |
optname="${opt%%=*}" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
129 |
optname="${optname#--}" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
130 |
- optname=$(echo "$optname" | sed 's/-/_/g') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
131 |
+ optname=$(echo "$optname" | /usr/gnu/bin/sed 's/-/_/g') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
132 |
if is_in $optname $CMDLINE_SET; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
133 |
eval $optname='$optval' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
134 |
elif is_in $optname $CMDLINE_APPEND; then |
8141 | 135 |
@@ -2123,7 +2123,7 @@ |
136 |
filter_cflags=echo |
|
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
137 |
filter_cppflags=echo |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
138 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
139 |
-if $cc -v 2>&1 | grep -q '^gcc.*LLVM'; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
140 |
+if $cc -v 2>&1 | /usr/gnu/bin/grep -q '^gcc.*LLVM'; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
141 |
cc_type=llvm_gcc |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
142 |
cc_version=__VERSION__ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
143 |
gcc_extra_ver=$(expr "$($cc --version | head -n1)" : '.*\((.*)\)') |
8141 | 144 |
@@ -2132,7 +2132,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
145 |
AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
146 |
speed_cflags='-O3' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
147 |
size_cflags='-Os' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
148 |
-elif $cc -v 2>&1 | grep -qi ^gcc; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
149 |
+elif $cc -v 2>&1 | /usr/gnu/bin/grep -qi ^gcc; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
150 |
cc_type=gcc |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
151 |
cc_version=__VERSION__ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
152 |
gcc_version=$($cc --version | head -n1) |
8141 | 153 |
@@ -2140,13 +2140,13 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
154 |
gcc_pkg_ver=$(expr "$gcc_version" : '[^ ]* \(([^)]*)\)') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
155 |
gcc_ext_ver=$(expr "$gcc_version" : ".*$gcc_pkg_ver $gcc_basever \\(.*\\)") |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
156 |
cc_ident=$(cleanws "gcc $gcc_basever $gcc_pkg_ver $gcc_ext_ver") |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
157 |
- if ! $cc -dumpversion | grep -q '^2\.'; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
158 |
+ if ! $cc -dumpversion | /usr/gnu/bin/grep -q '^2\.'; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
159 |
CC_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
160 |
AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
161 |
fi |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
162 |
speed_cflags='-O3' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
163 |
size_cflags='-Os' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
164 |
-elif $cc --version 2>/dev/null | grep -q Intel; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
165 |
+elif $cc --version 2>/dev/null | /usr/gnu/bin/grep -q Intel; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
166 |
cc_type=icc |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
167 |
cc_version="AV_STRINGIFY(__INTEL_COMPILER)" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
168 |
cc_ident=$($cc --version | head -n1) |
8141 | 169 |
@@ -2156,13 +2156,13 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
170 |
speed_cflags='-O3' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
171 |
size_cflags='-Os' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
172 |
noopt_cflags='-O1' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
173 |
-elif $cc -v 2>&1 | grep -q xlc; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
174 |
+elif $cc -v 2>&1 | /usr/gnu/bin/grep -q xlc; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
175 |
cc_type=xlc |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
176 |
cc_version="AV_STRINGIFY(__IBMC__)" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
177 |
cc_ident=$($cc -qversion 2>/dev/null | head -n1) |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
178 |
speed_cflags='-O5' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
179 |
size_cflags='-O5 -qcompact' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
180 |
-elif $cc -V 2>/dev/null | grep -q Compaq; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
181 |
+elif $cc -V 2>/dev/null | /usr/gnu/bin/grep -q Compaq; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
182 |
cc_type=ccc |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
183 |
cc_version="AV_STRINGIFY(__DECC_VER)" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
184 |
cc_ident=$($cc -V | head -n1 | cut -d' ' -f1-3) |
8141 | 185 |
@@ -2171,7 +2171,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
186 |
add_ldflags -Wl,-z,now # calls to libots crash without this |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
187 |
speed_cflags='-fast' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
188 |
size_cflags='-O1' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
189 |
-elif $cc --vsn 2>/dev/null | grep -q "ARM C/C++ Compiler"; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
190 |
+elif $cc --vsn 2>/dev/null | /usr/gnu/bin/grep -q "ARM C/C++ Compiler"; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
191 |
test -d "$sysroot" || die "No valid sysroot specified." |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
192 |
cc_type=armcc |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
193 |
cc_version="AV_STRINGIFY(__ARMCC_VERSION)" |
8141 | 194 |
@@ -2182,7 +2182,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
195 |
--configure_sysroot="$sysroot" \ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
196 |
--configure_cpp_headers="$sysinclude" >>$logfile 2>&1 || |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
197 |
die "Error creating armcc configuration file." |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
198 |
- $cc --vsn | grep -q RVCT && armcc_opt=rvct || armcc_opt=armcc |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
199 |
+ $cc --vsn | /usr/gnu/bin/grep -q RVCT && armcc_opt=rvct || armcc_opt=armcc |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
200 |
cc="$cc --arm_linux_config_file=$armcc_conf --translate_gcc" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
201 |
as_default="${cross_prefix}gcc" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
202 |
CC_DEPFLAGS='-MMD' |
8141 | 203 |
@@ -2190,7 +2190,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
204 |
speed_cflags='-O3' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
205 |
size_cflags='-Os' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
206 |
filter_asflags="filter_out -W${armcc_opt}*" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
207 |
-elif $cc -version 2>/dev/null | grep -q TMS470; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
208 |
+elif $cc -version 2>/dev/null | /usr/gnu/bin/grep -q TMS470; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
209 |
cc_type=tms470 |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
210 |
cc_version="AV_STRINGIFY(__TI_COMPILER_VERSION__)" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
211 |
cc_ident=$($cc -version | head -n1 | tr -s ' ') |
8141 | 212 |
@@ -2230,20 +2230,20 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
213 |
esac |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
214 |
done |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
215 |
} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
216 |
-elif $cc -v 2>&1 | grep -q clang; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
217 |
+elif $cc -v 2>&1 | /usr/gnu/bin/grep -q clang; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
218 |
cc_type=clang |
8141 | 219 |
- $cc -dM -E $TMPC | grep -q __clang_version__ && |
220 |
+ $cc -dM -E $TMPC | /usr/gnu/bin/grep -q __clang_version__ && |
|
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
221 |
cc_version=__clang_version__ || cc_version=__VERSION__ |
8141 | 222 |
cc_ident=$($cc --version | head -n1) |
223 |
CC_DEPFLAGS='-MMD' |
|
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
224 |
AS_DEPFLAGS='-MMD' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
225 |
speed_cflags='-O3' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
226 |
size_cflags='-Os' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
227 |
-elif $cc -V 2>&1 | grep -q Sun; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
228 |
+elif $cc -V 2>&1 | /usr/gnu/bin/grep -q Sun; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
229 |
cc_type=suncc |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
230 |
cc_version="AV_STRINGIFY(__SUNPRO_C)" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
231 |
cc_ident=$($cc -V 2>&1 | head -n1 | cut -d' ' -f 2-) |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
232 |
- DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "1s,^.*: ,$@: ," -e "\$$!s,\$$, \\\," -e "1!s,^.*: , ," > $(@:.o=.d)' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
233 |
+ DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | /usr/gnu/bin/sed -e "1s,^.*: ,$@: ," -e "\$$!s,\$$, \\\," -e "1!s,^.*: , ," > $(@:.o=.d)' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
234 |
DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -xM1' |
8007 | 235 |
add_ldflags -xc99 |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
236 |
speed_cflags='-O5' |
8141 | 237 |
@@ -2282,7 +2282,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
238 |
esac |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
239 |
done |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
240 |
} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
241 |
-elif $cc -v 2>&1 | grep -q 'PathScale\|Path64'; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
242 |
+elif $cc -v 2>&1 | /usr/gnu/bin/grep -q 'PathScale\|Path64'; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
243 |
cc_type=pathscale |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
244 |
cc_version=__PATHSCALE__ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
245 |
cc_ident=$($cc -v 2>&1 | head -n1 | tr -d :) |
8141 | 246 |
@@ -2291,7 +2291,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
247 |
speed_cflags='-O2' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
248 |
size_cflags='-Os' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
249 |
filter_cflags='filter_out -Wdisabled-optimization' |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
250 |
-elif $cc -v 2>&1 | grep -q Open64; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
251 |
+elif $cc -v 2>&1 | /usr/gnu/bin/grep -q Open64; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
252 |
cc_type=open64 |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
253 |
cc_version=__OPEN64__ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
254 |
cc_ident=$($cc -v 2>&1 | head -n1 | tr -d :) |
8141 | 255 |
@@ -2338,7 +2338,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
256 |
gcc|llvm_gcc) |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
257 |
check_native(){ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
258 |
$cc $1=native -v -c -o $TMPO $TMPC >$TMPE 2>&1 || return |
8007 | 259 |
- sed -n "/cc1.*$1=/{ |
260 |
+ /usr/gnu/bin/sed -n "/cc1.*$1=/{ |
|
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
261 |
s/.*$1=\\([^ ]*\\).*/\\1/ |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
262 |
p |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
263 |
q |
8141 | 264 |
@@ -2479,7 +2479,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
265 |
case $cpu in |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
266 |
armv*) |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
267 |
cpuflags="-march=$cpu" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
268 |
- subarch=$(echo $cpu | sed 's/[^a-z0-9]//g') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
269 |
+ subarch=$(echo $cpu | /usr/gnu/bin/sed 's/[^a-z0-9]//g') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
270 |
;; |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
271 |
*) |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
272 |
cpuflags="-mcpu=$cpu" |
8141 | 273 |
@@ -2813,7 +2813,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
274 |
check_cc <<EOF || die "Symbol mangling check failed." |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
275 |
int ff_extern; |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
276 |
EOF |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
277 |
-sym=$($nm $nm_opts $TMPO | awk '/ff_extern/{ print substr($0, match($0, /[^ \t]*ff_extern/)) }') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
278 |
+sym=$($nm $nm_opts $TMPO | gawk '/ff_extern/{ print substr($0, match($0, /[^ \t]*ff_extern/)) }') |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
279 |
extern_prefix=${sym%%ff_extern*} |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
280 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
281 |
check_cc <<EOF && enable inline_asm |
8141 | 282 |
@@ -2838,7 +2838,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
283 |
check_cc <<EOF || die "endian test failed" |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
284 |
unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E'; |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
285 |
EOF |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
286 |
-od -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
287 |
+od -t x1 $TMPO | /usr/gnu/bin/grep -q '42 *49 *47 *45' && enable bigendian |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
288 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
289 |
if enabled alpha; then |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
290 |
|
8141 | 291 |
@@ -3195,7 +3195,9 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
292 |
fi |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
293 |
enabled sdl && add_cflags $sdl_cflags && add_extralibs $sdl_libs |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
294 |
|
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
295 |
-texi2html -version > /dev/null 2>&1 && enable texi2html || disable texi2html |
8141 | 296 |
+#texi2html -version > /dev/null 2>&1 && enable texi2html || disable texi2html |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
297 |
+(texi2html -version > /dev/null 2>&1 || texi2html /dev/null > /dev/null 2>&1) && enable texi2html || disable texi2html |
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
298 |
+/usr/perl5/bin/pod2man /dev/null >/dev/null 2>&1 && enable pod2man || disable pod2man |
8141 | 299 |
makeinfo --version > /dev/null 2>&1 && enable makeinfo || disable makeinfo |
8007 | 300 |
|
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
301 |
check_header linux/fb.h |
8141 | 302 |
@@ -3610,7 +3612,7 @@ |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
303 |
file=$source_path/$2 |
8141 | 304 |
# This condition will be removed when we stop supporting old libpostproc versions |
305 |
if ! test "$name" = LIBPOSTPROC || test "$postproc_version" = current; then |
|
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
306 |
- eval $(grep "#define ${name}_VERSION_M" "$file" | awk '{ print $2"="$3 }') |
8141 | 307 |
+ eval $(grep "#define ${name}_VERSION_M" "$file" | gawk '{ print $2"="$3 }') |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
308 |
eval ${name}_VERSION=\$${name}_VERSION_MAJOR.\$${name}_VERSION_MINOR.\$${name}_VERSION_MICRO |
8141 | 309 |
fi |
3702
e21d4aa0f787
SFEffmpeg.spec ffmpeg.spec: bump to 0.8.2, add --with_runtime_cpudetect (off), fix html+man+%doc, add back reworked patches ffmpeg-09-configure* ffmpeg-10-Makefile* ffmpeg-11-add-sys_videodev2_h, parallel builds gmake -j, fix perms for %{_datadir}/doc, no mixed /bin/sh anymore - now all /usr/bin/bash
tom68
parents:
diff
changeset
|
310 |
lcname=$(tolower $name) |