[FFmpeg-devel] [PATCH 2/3] Make pkgconfig_generate check if the library is enabled before to generate the pc files.

Stefano Sabatini stefano.sabatini-lala
Mon Jul 26 12:10:02 CEST 2010


---
 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 48d0086..e0985de 100755
--- a/configure
+++ b/configure
@@ -3173,6 +3173,8 @@ comment=$2
 version=$3
 libs=$4
 requires=$5
+
+enabled $shortname || return
 cat <<EOF > $name/$name.pc
 prefix=$prefix
 exec_prefix=\${prefix}
@@ -3210,8 +3212,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"
-- 
1.7.0.4




More information about the ffmpeg-devel mailing list