mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
Merge remote-tracking branch 'origin/master' into 0.11
This commit is contained in:
commit
02250601cf
4 changed files with 34 additions and 5 deletions
18
configure.ac
18
configure.ac
|
@ -205,6 +205,13 @@ if test "x$have_bz2" = "xno"; then
|
|||
AC_WARN([libbz2 not found, matroska demuxer will not be able to read bz2 tracks])
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(lgpl,
|
||||
[AC_HELP_STRING([--enable-lgpl], [build a LGPL licensed gst-ffmpeg])])
|
||||
AM_CONDITIONAL(GST_FFMPEG_ENABLE_LGPL, test "x$enable_lgpl" = "xyes")
|
||||
if test "x$enable_lgpl" = "xyes"; then
|
||||
AC_DEFINE([GST_FFMPEG_ENABLE_LGPL], [], [Defined if building a LGPL-only version of gst-ffmpeg])
|
||||
fi
|
||||
|
||||
dnl *** configure external libs ***
|
||||
|
||||
HAVE_FFMPEG_UNINSTALLED=1
|
||||
|
@ -214,7 +221,9 @@ AC_ARG_WITH(system-ffmpeg,
|
|||
|
||||
if test "x$with_system_ffmpeg" = "xyes"; then
|
||||
PKG_CHECK_MODULES(FFMPEG, libavformat libavcodec libavutil)
|
||||
PKG_CHECK_MODULES(POSTPROC, libpostproc libavcodec libavutil)
|
||||
if test "x$enable_lgpl" != "xyes"; then
|
||||
PKG_CHECK_MODULES(POSTPROC, libpostproc libavcodec libavutil)
|
||||
fi
|
||||
PKG_CHECK_MODULES(SWSCALE, libswscale libavutil)
|
||||
saved_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $FFMPEG_CFLAGS"
|
||||
|
@ -307,11 +316,16 @@ else
|
|||
|
||||
# Enable pic and static so that we get .a files, but with PIC code.
|
||||
embffmpeg_configure_args="$embffmpeg_configure_args --disable-avserver --disable-avplay\
|
||||
--disable-ffmpeg --disable-avprobe --enable-postproc --enable-gpl --enable-static --enable-pic \
|
||||
--disable-ffmpeg --disable-avprobe --enable-postproc --enable-static --enable-pic \
|
||||
--disable-encoder=flac --disable-decoder=cavs --disable-protocols --disable-devices\
|
||||
--disable-network --disable-hwaccels --disable-filters --disable-doc\
|
||||
--enable-optimizations"
|
||||
|
||||
if test "x$enable_lgpl" != "xyes"; then
|
||||
embffmpeg_configure_args="$embffmpeg_configure_args --enable-postproc \
|
||||
--enable-gpl"
|
||||
fi
|
||||
|
||||
# if we are cross-compiling, tell ffmpeg so
|
||||
target_os=`echo $host_os | sed 's/-gnu//'`
|
||||
if test "x$cross_compiling" = xyes; then
|
||||
|
|
|
@ -1 +1,4 @@
|
|||
SUBDIRS = ffmpeg libpostproc libswscale
|
||||
SUBDIRS = ffmpeg libswscale
|
||||
if !GST_FFMPEG_ENABLE_LGPL
|
||||
SUBDIRS += libpostproc
|
||||
endif
|
||||
|
|
|
@ -162,4 +162,10 @@ GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|||
GST_VERSION_MINOR,
|
||||
"ffmpeg",
|
||||
"All FFmpeg codecs and formats (" FFMPEG_SOURCE ")",
|
||||
plugin_init, PACKAGE_VERSION, "LGPL", "FFmpeg", "http://ffmpeg.org/")
|
||||
plugin_init, PACKAGE_VERSION,
|
||||
#ifdef GST_FFMPEG_ENABLE_LGPL
|
||||
"LGPL",
|
||||
#else
|
||||
"GPL",
|
||||
#endif
|
||||
"FFmpeg", "http://ffmpeg.org/")
|
||||
|
|
|
@ -779,4 +779,10 @@ GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|||
"ffvideoscale",
|
||||
"videoscaling element (" FFMPEG_SOURCE ")",
|
||||
plugin_init,
|
||||
PACKAGE_VERSION, "GPL", "FFMpeg", "http://ffmpeg.sourceforge.net/")
|
||||
PACKAGE_VERSION,
|
||||
#ifdef GST_FFMPEG_ENABLE_LGPL
|
||||
"LGPL",
|
||||
#else
|
||||
"GPL",
|
||||
#endif
|
||||
"FFMpeg", "http://ffmpeg.sourceforge.net/")
|
||||
|
|
Loading…
Reference in a new issue