patches for gstreamer packages
Hi,
here are a couple of patches that clean up gstreamer related packages. In particular the configurations are updated to follow upstream changes in gst-plugins-base and gst-plugins-bad. There's also a patch that adds the orc package which is the successor of liboil.
There are some more changes needed to finish this cleanup. But I'd like to get some feedback before I put more time into this.
Sven
PATCH 1/6 gst-plugins-base: add option for dependency-less plugin
Make the build of the dependency-less plugin 'encoding' optional.
--- package/multimedia/gst-plugins-base/Config.in | 3 +++ .../gst-plugins-base/gst-plugins-base.mk | 6 ++++++ 2 files changed, 9 insertions(+), 0 deletions(-)
package/multimedia/gst-plugins-base/Config.in +3 -0
@@ -30,6 +30,9 @@ config BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_AUDIORESAMPLE config BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_AUDIOTESTSRC bool "audiotestsrc" +config BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ENCODING + bool "encoding" + config BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_FFMPEGCOLORSPACE bool "ffmpegcolorspace (mandatory for video playback)" default y
package/multimedia/gst-plugins-base/gst-plugins-base.mk +6 -0
@@ -69,6 +69,12 @@ else GST_PLUGINS_BASE_CONF_OPT += --disable-audiotestsrc endif +ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_ENCODING),y) +GST_PLUGINS_BASE_CONF_OPT += --enable-encoding +else +GST_PLUGINS_BASE_CONF_OPT += --disable-encoding +endif + ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_FFMPEGCOLORSPACE),y) GST_PLUGINS_BASE_CONF_OPT += --enable-ffmpegcolorspace else
Signature · 1 line
1.7.1
PATCH 2/6 gst-plugins: ivborbis (aka tremor) moved to gst-plugins-base
In reply to Sven NeumannThe integer vorbis decoder moved from gst-plugins-bad to gst-plugins-base.
--- package/multimedia/gst-plugins-bad/Config.in | 4 ---- .../multimedia/gst-plugins-bad/gst-plugins-bad.mk | 7 ------- package/multimedia/gst-plugins-base/Config.in | 4 ++++ .../gst-plugins-base/gst-plugins-base.mk | 7 +++++++ 4 files changed, 11 insertions(+), 11 deletions(-)
package/multimedia/gst-plugins-bad/Config.in +0 -4
@@ -192,10 +192,6 @@ config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_SDL bool "sdl" select BR2_PACKAGE_SDL -config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_TREMOR - bool "tremor" - select BR2_PACKAGE_TREMOR - config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_VCD bool "vcd"
package/multimedia/gst-plugins-bad/gst-plugins-bad.mk +0 -7
@@ -355,13 +355,6 @@ else GST_PLUGINS_BAD_CONF_OPT += --disable-sdl endif -ifeq ($(BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_TREMOR),y) -GST_PLUGINS_BAD_CONF_OPT += --enable-ivorbis -GST_PLUGINS_BAD_DEPENDENCIES += tremor -else -GST_PLUGINS_BAD_CONF_OPT += --disable-ivorbis -endif - ifeq ($(BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_VCD),y) GST_PLUGINS_BAD_CONF_OPT += --enable-vcd else
package/multimedia/gst-plugins-base/Config.in +4 -0
@@ -86,6 +86,10 @@ config BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_THEORA bool "theora (*.ogg video)" select BR2_PACKAGE_LIBTHEORA +config BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_TREMOR + bool "tremor" + select BR2_PACKAGE_TREMOR + config BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_VORBIS bool "vorbis (*.ogg audio)" select BR2_PACKAGE_LIBVORBIS
package/multimedia/gst-plugins-base/gst-plugins-base.mk +7 -0
@@ -156,6 +156,13 @@ else GST_PLUGINS_BASE_CONF_OPT += --disable-theora endif +ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_TREMOR),y) +GST_PLUGINS_BASE_CONF_OPT += --enable-ivorbis +GST_PLUGINS_BASE_DEPENDENCIES += tremor +else +GST_PLUGINS_BASE_CONF_OPT += --disable-ivorbis +endif + ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE_PLUGIN_VORBIS),y) GST_PLUGINS_BASE_CONF_OPT += --enable-vorbis GST_PLUGINS_BASE_DEPENDENCIES += libvorbis
Signature · 1 line
1.7.1
PATCH 3/6 gst-plugins-bad: clean up configuration
In reply to Sven NeumannRemove obsoleted configurations and add some new ones. Still more work needed here...
--- package/multimedia/gst-plugins-bad/Config.in | 64 ++++++----- .../multimedia/gst-plugins-bad/gst-plugins-bad.mk | 115 +++++++++++--------- 2 files changed, 100 insertions(+), 79 deletions(-)
package/multimedia/gst-plugins-bad/Config.in +34 -30
@@ -12,14 +12,14 @@ if BR2_PACKAGE_GST_PLUGINS_BAD comment "dependency-less plugins" -config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_AACPARSE - bool "aacparse" +config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_ADPCMDEC + bool "adpcmdec" -config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_AIFFPARSE - bool "aiffparse" +config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_ADPCMENC + bool "adpcmenc" -config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_AMRPARSE - bool "amrparse" +config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_AIFF + bool "aiff" config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_ASFMUX bool "asfmux"
@@ -28,12 +28,21 @@ config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_APEXSINK bool "apexsink" select BR2_PACKAGE_OPENSSL +config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_AUDIOPARSERS + bool "audioparsers" + config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_AUTOCONVERT bool "autoconvert" config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_CAMERABIN bool "camerabin" +config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_COLOREFFECTS + bool "coloreffects" + +config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_COLORSPACE + bool "colorspace" + config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_LEGACYRESAMPLE bool "legacyresample"
@@ -47,6 +56,9 @@ config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_CDAUDIO config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_CDXAPARSE bool "cdxaparse" +config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_DATAURISRC + bool "dataurisrc" + config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_DCCP bool "dccp"
@@ -56,13 +68,8 @@ config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_DEBUGUTILS config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_DTMF bool "dtmf" -config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_DVDNAV - bool "dvdnav" - depends on BR2_LARGEFILE # libdvdread - select BR2_PACKAGE_LIBDVDNAV - -comment "dvdnav requires a toolchain with LARGEFILE support" - depends on !BR2_LARGEFILE +config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_DVDSUBOVERLAY + bool "dvdsuboverlay" config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_DVDSPU bool "dvdspu"
@@ -76,6 +83,15 @@ config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_FREEZE config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_FREI0R bool "frei0r" +config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_GAUDIEFFECTS + bool "gaudieffects" + +config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_GEOMETRICTRANSFORM + bool "geometrictransform" + +config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_GSETTINGS + bool "gsettings" + config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_H264PARSE bool "h264parse"
@@ -124,9 +140,6 @@ config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_RAWPARSE config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_REAL bool "real" -config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_RTPMANAGER - bool "rtpmanager" - config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_RTPMUX bool "rtpmux"
@@ -136,12 +149,6 @@ config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_SCALETEMPO config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_SDP bool "sdp" -config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_SELECTOR - bool "selector" - -config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_SHAPEWIPE - bool "shapewipe" - config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_SIREN bool "siren"
@@ -157,8 +164,11 @@ config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_STEREO config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_TTA bool "tta" -config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_VALVE - bool "valve" +config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_VIDEOMAXRATE + bool "videomaxrate" + +config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_VIDEOMEASURE + bool "videomeasure" config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_VIDEOSIGNAL bool "videosignal"
@@ -166,9 +176,6 @@ config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_VIDEOSIGNAL config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_VMNC bool "vmnc" -config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_XDGMIME - bool "xdgmime" - comment "plugins with external dependencies (there may be more available)" config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_DIRECTFB
@@ -185,9 +192,6 @@ config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_NEON bool "neon" select BR2_PACKAGE_NEON -config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_OSS4 - bool "oss4" - config BR2_PACKAGE_GST_PLUGINS_BAD_PLUGIN_SDL bool "sdl" select BR2_PACKAGE_SDL
package/multimedia/gst-plugins-bad/gst-plugins-bad.mk +66 -49
195 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 4/6 orc: new package
In reply to Sven NeumannOrc - the Oil Runtime Compiler - is the successor of liboil.
--- package/Config.in | 1 + package/orc/Config.in | 7 +++++++ package/orc/orc.mk | 12 ++++++++++++ 3 files changed, 20 insertions(+), 0 deletions(-) create mode 100644 package/orc/Config.in create mode 100644 package/orc/orc.mk
package/Config.in +1 -0
@@ -340,6 +340,7 @@ source "package/libffi/Config.in" source "package/libglib2/Config.in" source "package/liboil/Config.in" source "package/libsigc/Config.in" +source "package/orc/Config.in" source "package/startup-notification/Config.in" endmenu
package/orc/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_LIBORC + bool "liborc" + help + Orc is a library and set of tools for compiling and executing + very simple programs that operate on arrays of data. + + http://code.entropywave.com/projects/orc/
package/orc/orc.mk new file +12 -0
@@ -0,0 +1,12 @@ +############################################################# +# +# orc +# +############################################################# +ORC_VERSION = 0.4.14 +ORC_SOURCE = orc-$(ORC_VERSION).tar.gz +ORC_SITE = http://code.entropywave.com/download/orc/ +ORC_AUTORECONF = YES +ORC_INSTALL_STAGING = YES + +$(eval $(call AUTOTARGETS,package,orc))
Signature · 1 line
1.7.1
PATCH 5/6 gst-plugins-base: depend on orc if it is enabled
In reply to Sven Neumann--- .../gst-plugins-base/gst-plugins-base.mk | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
package/multimedia/gst-plugins-base/gst-plugins-base.mk +5 -1
@@ -12,7 +12,7 @@ GST_PLUGINS_BASE_INSTALL_STAGING = YES # and the host has a freetype-config script, then the host # include dirs are added to the search path causing trouble GST_PLUGINS_BASE_CONF_ENV = - FT2_CONFIG=/bin/false \ + FT2_CONFIG=/bin/ilfalse \ ac_cv_header_stdint_t="stdint.h" GST_PLUGINS_BASE_CONF_OPT = \
@@ -26,6 +26,10 @@ GST_PLUGINS_BASE_CONF_OPT = \ GST_PLUGINS_BASE_DEPENDENCIES = gstreamer +ifeq ($(BR2_PACKAGE_ORC),y) +GST_FFMPEG_DEPENDENCIES += orc +endif + # alsa support needs pcm+mixer support, but configure fails to check for it ifeq ($(BR2_PACKAGE_ALSA_LIB)$(BR2_PACKAGE_ALSA_LIB_MIXER)$(BR2_PACKAGE_ALSA_LIB_PCM),yyy) GST_PLUGINS_BASE_DEPENDENCIES += alsa-lib
Signature · 1 line
1.7.1
PATCH 5/6 gst-plugins-base: depend on orc if it is enabled
Le Mon, 4 Jul 2011 15:54:44 +0200,
Sven Neumann <[email protected]> a ?crit :
package/multimedia/gst-plugins-base/gst-plugins-base.mk GST_PLUGINS_BASE_INSTALL_STAGING = YES · line 15
Quoted 2 lines
package/multimedia/gst-plugins-base/gst-plugins-base.mk +1
-1- FT2_CONFIG=/bin/false \ + FT2_CONFIG=/bin/ilfalse \
Hm ?
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 5/6 gst-plugins-base: depend on orc if it is enabled
In reply to Sven NeumannOn Mon, Jul 4, 2011 at 2:54 PM, Sven Neumann <[email protected]> wrote:
Hi Sven,
Quoted 10 lines
Signed-off-by Sven Neumann <[email protected]>---
?.../gst-plugins-base/gst-plugins-base.mk ? ? ? ? ? | ? ?6 +++++- ?1 files changed, 5 insertions(+), 1 deletions(-)package/multimedia/gst-plugins-base/gst-plugins-base.mk +0
-0@@ -12,7 +12,7 @@ GST_PLUGINS_BASE_INSTALL_STAGING = YES
Quoted 6 lines
?# and the host has a freetype-config script, then the host ?# include dirs are added to the search path causing trouble ?GST_PLUGINS_BASE_CONF_ENV =
- ? ? ? ? ? ? ? FT2_CONFIG=/bin/false \
+ ? ? ? ? ? ? ? FT2_CONFIG=/bin/ilfalse \
? ? ? ? ? ? ? ?ac_cv_header_stdint_t="stdint.h"
What is the intent of this change? Typo?
PATCH 5/6 gst-plugins-base: depend on orc if it is enabled
Quoted 9 lines · Will Newton
On Mon, Jul 4, 2011 at 2:54 PM, Sven Neumann <[email protected]> wrote:
Hi Sven,
Quoted 5 lines
Signed-off-by Sven Neumann <[email protected]>--- .../gst-plugins-base/gst-plugins-base.mk | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
Quoted 13 lines
package/multimedia/gst-plugins-base/gst-plugins-base.mk GST_PLUGINS_BASE_INSTALL_STAGING = YES · line 16
Quoted 11 lines
package/multimedia/gst-plugins-base/gst-plugins-base.mk +1
-1@@ -12,7 +12,7 @@ GST_PLUGINS_BASE_INSTALL_STAGING = YES # and the host has a freetype-config script, then the host # include dirs are added to the search path causing trouble GST_PLUGINS_BASE_CONF_ENV = - FT2_CONFIG=/bin/false \ + FT2_CONFIG=/bin/ilfalse \ ac_cv_header_stdint_t="stdint.h"What is the intent of this change? Typo?
That probably sneaked into it by accident. I'll fix that. Thanks for the review.
Sven
PATCH 5/6 gst-plugins-base: depend on orc if it is enabled
In reply to Sven Neumannpackage/multimedia/gst-plugins-base/gst-plugins-base.mk GST_PLUGINS_BASE_CONF_OPT = \ · line 32
Quoted 9 lines · Sven Neumann
?GST_PLUGINS_BASE_CONF_OPT = \
(quoted diff) +0
-0@@ -26,6 +26,10 @@ GST_PLUGINS_BASE_CONF_OPT = \?GST_PLUGINS_BASE_DEPENDENCIES = gstreamer
package/multimedia/gst-plugins-base/gst-plugins-base.mk +4
-0+ifeq ($(BR2_PACKAGE_ORC),y) +GST_FFMPEG_DEPENDENCIES += orc +endif +
Also it looks like this should be setting GST_PLUGINS_BASE_DEPENDENCIES.
PATCH 5/6 gst-plugins-base: depend on orc if it is enabled
Quoted 5 lines · Will Newton
Quoted 3 lines · Sven Neumann
GST_PLUGINS_BASE_CONF_OPT= \(quoted diff) +0
-0@@ -26,6 +26,10 @@ GST_PLUGINS_BASE_CONF_OPT = \
Quoted 8 lines
package/multimedia/gst-plugins-base/gst-plugins-base.mk GST_PLUGINS_BASE_CONF_OPT = \ · line 32
Quoted 6 lines
package/multimedia/gst-plugins-base/gst-plugins-base.mk +4
-0GST_PLUGINS_BASE_DEPENDENCIES = gstreamer +ifeq ($(BR2_PACKAGE_ORC),y) +GST_FFMPEG_DEPENDENCIES += orc +endif +Also it looks like this should be setting
GST_PLUGINS_BASE_DEPENDENCIES.
Indeed.
Sven
PATCH 6/6 gst-ffmpeg: depend on orc if it is enabled
In reply to Sven Neumann--- package/multimedia/gst-ffmpeg/gst-ffmpeg.mk | 36 +++++++++++++++++++++++++- 1 files changed, 34 insertions(+), 2 deletions(-)
package/multimedia/gst-ffmpeg/gst-ffmpeg.mk +34 -2
@@ -8,8 +8,40 @@ GST_FFMPEG_VERSION = 0.10.11 GST_FFMPEG_SOURCE = gst-ffmpeg-$(GST_FFMPEG_VERSION).tar.bz2 GST_FFMPEG_SITE = http://gstreamer.freedesktop.org/src/gst-ffmpeg GST_FFMPEG_INSTALL_STAGING = YES -GST_FFMPEG_DEPENDENCIES = gstreamer gst-plugins-base ffmpeg -GST_FFMPEG_CONF_OPT = --with-system-ffmpeg +GST_FFMPEG_DEPENDENCIES = gstreamer gst-plugins-base + +ifeq ($(BR2_PACKAGE_ORC),y) +GST_FFMPEG_DEPENDENCIES += orc +endif + +GST_FFMPEG_CONF_OPT = \ + --with-ffmpeg-extra-configure="--target-os=linux \ + --disable-ffmpeg \ + --disable-ffplay \ + --disable-ffserver \ + --disable-avfilter \ + --disable-swscale \ + --enable-gpl \ + --enable-nonfree \ + --enable-postproc \ + --enable-pthreads \ + --enable-zlib \ + --disable-avfilter \ + --enable-postproc \ + --enable-swscale \ + --prefix=$(STAGING_DIR)/usr \ + --enable-cross-compile \ + --sysroot=$(STAGING_DIR) \ + --host-cc=$(TARGET_CC) \ + --cc=$(TARGET_CC) \ + --arch=$(BR2_ARCH) \ + --enable-cross-compile \ + --cross-prefix=$(TARGET_CROSS) \ + --disable-shared \ + --enable-static \ + --disable-encoders \ + --disable-muxers \ + --disable-iwmmxt" ifeq ($(BR2_PACKAGE_BZIP2),y) GST_FFMPEG_DEPENDENCIES += bzip2
Signature · 1 line
1.7.1