Originally committed as revision 7321 to svn://svn.ffmpeg.org/ffmpeg/trunk
Måns Rullgård authored on 2006/12/16 07:36:19... | ... |
@@ -393,6 +393,12 @@ require(){ |
393 | 393 |
check_lib $header $func "$@" || die "ERROR: $name not found" |
394 | 394 |
} |
395 | 395 |
|
396 |
+apply(){ |
|
397 |
+ file=$1 |
|
398 |
+ shift |
|
399 |
+ "$@" < "$file" > "$file.tmp" && mv "$file.tmp" "$file" || rm "$file.tmp" |
|
400 |
+} |
|
401 |
+ |
|
396 | 402 |
CONFIG_LIST=' |
397 | 403 |
encoders |
398 | 404 |
decoders |
... | ... |
@@ -2105,6 +2111,6 @@ if test "$swscaler" != "no"; then |
2105 | 2105 |
else |
2106 | 2106 |
pkgconfig_generate libswscale "FFmpeg image rescaling library" "$sws_version" "" "$pkg_requires libavcodec = $lavc_version" swscale |
2107 | 2107 |
pkgconfig_generate_uninstalled libswscale "FFmpeg image rescaling library" "$sws_version" "" "$pkg_requires libavcodec = $lavc_version" |
2108 |
- sed -i s/^Libs:.*$/Libs:/ libswscale.pc |
|
2109 |
- sed -i s/^Libs:.*$/Libs:/ libswscale-uninstalled.pc |
|
2108 |
+ apply libswscale.pc sed s/^Libs:.*$/Libs:/ |
|
2109 |
+ apply libswscale-uninstalled.pc sed s/^Libs:.*$/Libs:/ |
|
2110 | 2110 |
fi |