Commit c505dd31 authored by Måns Rullgård's avatar Måns Rullgård

don't use non-standard sed -i option

Originally committed as revision 7321 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 0cd4faf9
...@@ -393,6 +393,12 @@ require(){ ...@@ -393,6 +393,12 @@ require(){
check_lib $header $func "$@" || die "ERROR: $name not found" check_lib $header $func "$@" || die "ERROR: $name not found"
} }
apply(){
file=$1
shift
"$@" < "$file" > "$file.tmp" && mv "$file.tmp" "$file" || rm "$file.tmp"
}
CONFIG_LIST=' CONFIG_LIST='
encoders encoders
decoders decoders
...@@ -2105,6 +2111,6 @@ if test "$swscaler" != "no"; then ...@@ -2105,6 +2111,6 @@ if test "$swscaler" != "no"; then
else else
pkgconfig_generate libswscale "FFmpeg image rescaling library" "$sws_version" "" "$pkg_requires libavcodec = $lavc_version" swscale pkgconfig_generate libswscale "FFmpeg image rescaling library" "$sws_version" "" "$pkg_requires libavcodec = $lavc_version" swscale
pkgconfig_generate_uninstalled libswscale "FFmpeg image rescaling library" "$sws_version" "" "$pkg_requires libavcodec = $lavc_version" pkgconfig_generate_uninstalled libswscale "FFmpeg image rescaling library" "$sws_version" "" "$pkg_requires libavcodec = $lavc_version"
sed -i s/^Libs:.*$/Libs:/ libswscale.pc apply libswscale.pc sed s/^Libs:.*$/Libs:/
sed -i s/^Libs:.*$/Libs:/ libswscale-uninstalled.pc apply libswscale-uninstalled.pc sed s/^Libs:.*$/Libs:/
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment