aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-07-26 23:12:32 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-07-26 23:12:32 +0000
commita275862461766fd1875597551679515b72ad2f18 (patch)
tree6d2ea907ee8dc25e01fd016aca3c0823ac257f0a
parent126b638ea0c7838fde13850a0ad833170a269253 (diff)
downloadffmpeg-a275862461766fd1875597551679515b72ad2f18.tar.gz
Make pkgconfig_generate check if the library is enabled before to
generate the pc files. Originally committed as revision 24519 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index 48d0086f24..e4df9e40f8 100755
--- a/configure
+++ b/configure
@@ -3173,6 +3173,7 @@ comment=$2
version=$3
libs=$4
requires=$5
+enabled $shortname || return
cat <<EOF > $name/$name.pc
prefix=$prefix
exec_prefix=\${prefix}
@@ -3210,8 +3211,6 @@ pkgconfig_generate libavcore "FFmpeg multimedia shared core utilities library" "
pkgconfig_generate libavcodec "FFmpeg codec library" "$LIBAVCODEC_VERSION" "$extralibs" "libavcore = $LIBAVCORE_VERSION"
pkgconfig_generate libavformat "FFmpeg container format library" "$LIBAVFORMAT_VERSION" "$extralibs" "libavcodec = $LIBAVCODEC_VERSION"
pkgconfig_generate libavdevice "FFmpeg device handling library" "$LIBAVDEVICE_VERSION" "$extralibs" "libavformat = $LIBAVFORMAT_VERSION"
-enabled avfilter &&
pkgconfig_generate libavfilter "FFmpeg video filtering library" "$LIBAVFILTER_VERSION" "$extralibs" "libavcore = $LIBAVCORE_VERSION"
-enabled postproc &&
pkgconfig_generate libpostproc "FFmpeg post processing library" "$LIBPOSTPROC_VERSION"
pkgconfig_generate libswscale "FFmpeg image rescaling library" "$LIBSWSCALE_VERSION" "" "libavutil = $LIBAVUTIL_VERSION"