Commit 8e8daa3d authored by diego's avatar diego

support for libswscale.pc without --enable-swscaler

patch by j -- at -- v2v -- dot -- cc                                                                        


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6999 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 701de76f
...@@ -2419,6 +2419,15 @@ Libs: \${libdir}/${LIBPREF}postproc${LIBSUF} ...@@ -2419,6 +2419,15 @@ Libs: \${libdir}/${LIBPREF}postproc${LIBSUF}
Cflags: -I\${includedir} Cflags: -I\${includedir}
EOF 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 # libswscale.pc
cat <<EOF >libswscale.pc cat <<EOF >libswscale.pc
prefix=$PREFIX prefix=$PREFIX
...@@ -2429,9 +2438,9 @@ includedir=\${prefix}/include ...@@ -2429,9 +2438,9 @@ includedir=\${prefix}/include
Name: libswscale Name: libswscale
Description: FFmpeg image rescaling library Description: FFmpeg image rescaling library
Version: $sws_version Version: $sws_version
Requires: $pkg_requires libavutil = $lavu_version Requires: $sws_pc_requires
Conflicts: Conflicts:
Libs: -L\${libdir} -lswscale Libs: $sws_pc_libs
Cflags: -I\${includedir} -I\${includedir}/swscale Cflags: -I\${includedir} -I\${includedir}/swscale
EOF EOF
...@@ -2444,8 +2453,8 @@ includedir=\${pcfiledir}/libswscale ...@@ -2444,8 +2453,8 @@ includedir=\${pcfiledir}/libswscale
Name: libswscale Name: libswscale
Description: FFmpeg image rescaling library Description: FFmpeg image rescaling library
Version: $sws_version Version: $sws_version
Requires: $pkg_requires libavutil = $lavu_version Requires: $sws_pc_requires
Conflicts: Conflicts:
Libs: \${libdir}/${LIBPREF}swscale${LIBSUF} Libs: $sws_pc_uninstalled_libs
Cflags: -I\${includedir} Cflags: -I\${includedir}
EOF EOF
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