[Ffmpeg-cvslog] r6999 - trunk/configure

diego subversion
Mon Nov 13 01:17:20 CET 2006


Author: diego
Date: Mon Nov 13 01:17:19 2006
New Revision: 6999

Modified:
   trunk/configure

Log:
support for libswscale.pc without --enable-swscaler               
patch by j -- at -- v2v -- dot -- cc                                                                        


Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Mon Nov 13 01:17:19 2006
@@ -2419,6 +2419,15 @@
 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 @@
 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 @@
 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




More information about the ffmpeg-cvslog mailing list