aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorj@v2v.cc <j@v2v.cc>2006-11-13 00:17:19 +0000
committerDiego Biurrun <diego@biurrun.de>2006-11-13 00:17:19 +0000
commit6c0d04136f1b81f267dc4636bc2e764c55601525 (patch)
treefa2feac47ccc966b32d168b8b992e1934d17032f /configure
parent7466ed2f0240e969890d9828c322db1b60c3c5ad (diff)
downloadffmpeg-6c0d04136f1b81f267dc4636bc2e764c55601525.tar.gz
support for libswscale.pc without --enable-swscaler
patch by j -- at -- v2v -- dot -- cc Originally committed as revision 6999 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 13 insertions, 4 deletions
diff --git a/configure b/configure
index a8b58e9b6d..6d565e1d5b 100755
--- a/configure
+++ b/configure
@@ -2419,6 +2419,15 @@ Libs: \${libdir}/${LIBPREF}postproc${LIBSUF}
Cflags: -I\${includedir}
EOF
+if test "$swscaler" != "no"; then
+ sws_pc_libs="-L\${libdir} -lswscale"
+ sws_pc_uninstalled_libs="\${libdir}/${LIBPREF}swscale${LIBSUF}"
+ sws_pc_requires="$pkg_requires libavutil = $lavu_version"
+else
+ sws_pc_libs=""
+ sws_pc_uninstalled_libs=""
+ sws_pc_requires="$pkg_requires libavcodec = $lavc_version"
+fi
# libswscale.pc
cat <<EOF >libswscale.pc
prefix=$PREFIX
@@ -2429,9 +2438,9 @@ includedir=\${prefix}/include
Name: libswscale
Description: FFmpeg image rescaling library
Version: $sws_version
-Requires: $pkg_requires libavutil = $lavu_version
+Requires: $sws_pc_requires
Conflicts:
-Libs: -L\${libdir} -lswscale
+Libs: $sws_pc_libs
Cflags: -I\${includedir} -I\${includedir}/swscale
EOF
@@ -2444,8 +2453,8 @@ includedir=\${pcfiledir}/libswscale
Name: libswscale
Description: FFmpeg image rescaling library
Version: $sws_version
-Requires: $pkg_requires libavutil = $lavu_version
+Requires: $sws_pc_requires
Conflicts:
-Libs: \${libdir}/${LIBPREF}swscale${LIBSUF}
+Libs: $sws_pc_uninstalled_libs
Cflags: -I\${includedir}
EOF