SOURCES: ffmpeg-config.patch (NEW) - ffmpeg-config from debian

glen glen at pld-linux.org
Sun Apr 16 17:33:47 CEST 2006


Author: glen                         Date: Sun Apr 16 15:33:47 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- ffmpeg-config from debian

---- Files affected:
SOURCES:
   ffmpeg-config.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/ffmpeg-config.patch
diff -u /dev/null SOURCES/ffmpeg-config.patch:1.1
--- /dev/null	Sun Apr 16 17:33:47 2006
+++ SOURCES/ffmpeg-config.patch	Sun Apr 16 17:33:42 2006
@@ -0,0 +1,154 @@
+Index: ffmpeg-0.cvs20060329/ffmpeg-config.in
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ ffmpeg-0.cvs20060329/ffmpeg-config.in	2006-03-29 21:10:41.000000000 +0200
+@@ -0,0 +1,92 @@
++#!/bin/sh
++
++# ffmpeg-config
++
++prefix="/usr"
++exec_prefix="/usr/bin"
++version="@VERSION@"
++
++include_dir="/usr/include/ffmpeg"
++lib_dir="/usr/lib"
++
++link_libs=""
++
++usage()
++{
++    cat <<EOF
++Usage: ffmpeg-config [OPTIONS]
++Options:
++    [--prefix]
++    [--cflags]
++    [--libs [avcodec] [avformat] [postproc]]
++    [--plugin-libs [avcodec] [avformat] [postproc]]
++    [--version]
++EOF
++    exit $1
++}
++
++if test $# -eq 0; then
++    usage 1 1>&2
++fi
++
++while test $# -gt 0; do
++	case $1 in
++    --prefix)
++	    echo_prefix=yes
++	    ;;
++
++	--cflags)
++	    echo_cflags=yes
++	    ;;
++        
++	--libs | --plugin-libs)
++	    echo_libs=yes
++	    ;;
++
++	--version)
++	    echo_version=yes
++	    ;;
++
++	avcodec|avformat|postproc)
++	    if test "$echo_libs" = "yes"; then
++		link_libs="$link_libs -l$1"
++		if test "$1" != "avcodec"; then
++		    link_libs="$link_libs -lavcodec"
++		fi
++		link_libs="$link_libs -lavutil"
++	    else
++		usage 1 1>&2
++	    fi
++	    ;;
++
++	*)
++	    usage 1 1>&2
++	    ;;
++    esac
++  shift
++done
++
++if test "$echo_prefix" = "yes"; then
++    echo $prefix
++fi
++
++cflags="-I$include_dir"
++link_libs="$link_libs -lvorbis -lvorbisenc -ltheora -logg -ldts -la52 -lraw1394 -ldc1394_control -lgsm -lz -lm"
++
++if test "$lib_dir" != "/usr/lib"; then
++    libs="-L$lib_dir"
++else
++    libs=""
++fi
++
++if test "$echo_cflags" = "yes"; then
++    echo $cflags
++fi
++
++if test "$echo_libs" = "yes"; then
++    echo $libs $link_libs
++fi
++
++if test "$echo_version" = "yes"; then
++    echo $version
++fi
+Index: ffmpeg-0.cvs20060329/ffmpeg-config.1
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ ffmpeg-0.cvs20060329/ffmpeg-config.1	2006-03-29 21:10:41.000000000 +0200
+@@ -0,0 +1,52 @@
++.TH ffmpeg-config 1 "2004-07-16" "ffmpeg"
++.SH NAME
++ffmpeg-config \- script to get information about the installed version of ffmpeg
++.SH SYNOPSIS
++.B ffmpeg-config
++[ --prefix=
++.IR DIR ]
++[ --version ] [ --libs [<extensions>]] [ --plugin-libs [<extensions>]] [ --cflags ]
++.SH DESCRIPTION
++.B ffmpeg-config
++is a tool that is used to configure and determine the compiler and linker
++flags that should be used to compile and link progams, libraries, and
++plugins that use ffmpeg.
++.SH OPTIONS
++.TP
++.B --cflags
++Print the C compiler flags that are necessary to compile a program or library
++that uses ffmpeg.
++.TP
++.B --libs { avcodec | avformat | postproc }
++Print the linker flags that are necessary to link a program that uses
++libavcodec, libavformat or libpostproc.
++.TP
++.B --plugin-libs { avcodec | avformat | postproc }
++Print the linker flags that are necessary to link a shared object (such as a
++plugin for a program) that uses libavcodec, libavformat or libpostproc.
++.TP
++.BI --prefix= DIR
++If specified, use PREFIX instead of the installation prefix that ffmpeg
++was built with when computing the output for the --cflags, --libs and
++--plugin-libs options. This option must be specified before any of the
++--cflags, --libs and --plugin-libs options.
++.TP
++.B --version
++Prints the currently installed version of ffmpeg on standard output.
++.SH EXAMPLES
++.TP
++gcc -c main.c $(ffmpeg-config --cflags) -o main.o
++is how you might use
++.B ffmpeg-config
++to compile a C source file for an executable program.
++.TP
++gcc main.o util.o $(ffmpeg-config --libs avcodec) -o my_app
++is how you might use
++.B ffmpeg-config
++to link compiled objects into an executable program that uses libavcodec.
++Always make sure to mention libraries in the command line after objects
++referring to them.
++.SH AUTHOR
++This manual page was written for sdl-config by Branden Robinson, originally
++for Progeny Linux Systems, Inc., and the Debian Project. It was adapted to
++ffmpeg by Sam Hocevar.
================================================================


More information about the pld-cvs-commit mailing list