diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:14:24 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:29:45 +0100 |
commit | 29d6678fd546377459ef75cf54abeef5b969b5cf (patch) | |
tree | 8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-multimedia/gstreamer | |
parent | da49de6885ee1bc424e70bc02f21f6ab920efb55 (diff) | |
download | poky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz |
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things
and is generally overwhelming. This commit splits it into several
logical sections roughly based on function, recipes.txt gives more
information about the classifications used.
The opportunity is also used to switch from "packages" to "recipes"
as used in OpenEmbedded as the term "packages" can be confusing to
people and has many different meanings.
Not all recipes have been classified yet, this is just a first pass
at separating things out. Some packages are moved to meta-extras as
they're no longer actively used or maintained.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-multimedia/gstreamer')
19 files changed, 1075 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.1/configure_fix.patch b/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.1/configure_fix.patch new file mode 100644 index 0000000000..15f56492f7 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.1/configure_fix.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg/configure.ac | ||
2 | =================================================================== | ||
3 | --- gst-ffmpeg-0.10.1.orig/gst-libs/ext/ffmpeg/configure.ac 2008-03-19 23:21:04.000000000 +0000 | ||
4 | +++ gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg/configure.ac 2008-03-19 23:21:31.000000000 +0000 | ||
5 | @@ -775,7 +775,7 @@ | ||
6 | |||
7 | dnl Check for SDL, used in ffplay, and ffserver | ||
8 | AC_FF_ALLOW_DISABLE(CONFIG_FFPLAY, ffplay, ffmpeg media player,[ | ||
9 | - AM_PATH_SDL(, CONFIG_FFPLAY=yes, CONFIG_FPFLAY=no) | ||
10 | + CONFIG_FPFLAY=no | ||
11 | ]) | ||
12 | |||
13 | dnl media server or not? | ||
diff --git a/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.1/no_beos.patch b/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.1/no_beos.patch new file mode 100644 index 0000000000..9ffcafff73 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-ffmpeg-0.10.1/no_beos.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | The AC_LANG sections upset libtool 2.2.2, easiest fix is to remove them. | ||
2 | Using a .cpp file in a Makefile means configure.ac must use AC_PROG_CXX | ||
3 | so patch out the section from the makefile too. | ||
4 | |||
5 | RP - 14/4/08 | ||
6 | |||
7 | Index: gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg/configure.ac | ||
8 | =================================================================== | ||
9 | --- gst-ffmpeg-0.10.1.orig/gst-libs/ext/ffmpeg/configure.ac 2008-04-14 23:55:25.000000000 +0100 | ||
10 | +++ gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg/configure.ac 2008-04-14 23:56:18.000000000 +0100 | ||
11 | @@ -742,26 +742,7 @@ | ||
12 | |||
13 | dnl Beos Audio | ||
14 | AC_FF_ALLOW_DISABLE(CONFIG_AUDIO_BEOS, audio-beos, BeOS audio support,[ | ||
15 | - if test x$TARGET_OS = xbeos; then | ||
16 | - AC_LANG_CPLUSPLUS | ||
17 | - AC_CHECK_HEADER(SoundPlayer.h,[ | ||
18 | - OLD_CXXFLAGS="$CXXFLAGS" | ||
19 | - CXXFLAGS="$CXXFLAGS -lbe -lmedia" | ||
20 | - AC_MSG_CHECKING(For BeOS audio libraries) | ||
21 | - AC_TRY_COMPILE([ | ||
22 | -#include <Application.h> | ||
23 | -#include <SoundPlayer.h> | ||
24 | - ],[ | ||
25 | - BSoundPlayer *p = new BSoundPlayer(NULL,NULL,NULL); | ||
26 | - ],[ CONFIG_AUDIO_BEOS=yes && AC_MSG_RESULT(yes) ],[ | ||
27 | - CONFIG_AUDIO_BEOS=no && AC_MSG_RESULT(no) | ||
28 | - ]) | ||
29 | - CXXFLAGS="$OLD_CXXFLAGS" | ||
30 | - ], CONFIG_AUDIO_BEOS=no) | ||
31 | - AC_LANG_C | ||
32 | - else | ||
33 | CONFIG_AUDIO_BEOS=no | ||
34 | - fi | ||
35 | ]) | ||
36 | |||
37 | dnl Check for freetype2, used in vook/libdrawtext.so | ||
38 | Index: gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg/libavformat/Makefile.am | ||
39 | =================================================================== | ||
40 | --- gst-ffmpeg-0.10.1.orig/gst-libs/ext/ffmpeg/libavformat/Makefile.am 2008-04-14 23:58:44.000000000 +0100 | ||
41 | +++ gst-ffmpeg-0.10.1/gst-libs/ext/ffmpeg/libavformat/Makefile.am 2008-04-14 23:58:55.000000000 +0100 | ||
42 | @@ -24,13 +24,6 @@ | ||
43 | audiooss_SRC = audio.c | ||
44 | endif | ||
45 | |||
46 | -if CONFIG_AUDIO_BEOS | ||
47 | -audiobeos_SRC = beosaudio.cpp | ||
48 | -audiobeos_LIBS = \ | ||
49 | - -lbe \ | ||
50 | - -lmedia | ||
51 | -endif | ||
52 | - | ||
53 | if CONFIG_VIDEO4LINUX | ||
54 | v4l_SRC = grab.c v4l2.c | ||
55 | endif | ||
diff --git a/meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.1.bb b/meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.1.bb new file mode 100644 index 0000000000..65d60f9cea --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.1.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | DESCRIPTION = "FFmpeg-based GStreamer plug-in" | ||
2 | SECTION = "multimedia" | ||
3 | PRIORITY = "optional" | ||
4 | LICENSE = "LGPL" | ||
5 | HOMEPAGE = "http://www.gstreamer.net/" | ||
6 | DEPENDS = "gstreamer zlib gst-plugins-base" | ||
7 | PR = "r4" | ||
8 | |||
9 | inherit autotools pkgconfig | ||
10 | |||
11 | SRC_URI = "http://gstreamer.freedesktop.org/src/${PN}/${PN}-${PV}.tar.bz2 \ | ||
12 | file://no_beos.patch;patch=1 \ | ||
13 | file://configure_fix.patch;patch=1" | ||
14 | |||
15 | FILES_${PN} += "${libdir}/gstreamer-0.10/*.so" | ||
16 | FILES_${PN}-dbg += "${libdir}/gstreamer-0.10/.debug" | ||
17 | FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.la ${libdir}/gstreamer-0.10/*.a" | ||
18 | |||
19 | EXTRA_OECONF = "--disable-sdltest --disable-ffplay --disable-freetypetest \ | ||
20 | --disable-vorbis --disable-vorbistest --disable-encoders \ | ||
21 | --disable-v4l --disable-audio-oss --disable-dv1394 \ | ||
22 | --disable-vhook --disable-ffmpeg --disable-ffserver \ | ||
23 | --enable-pp --disable-decoder-vorbis --with-pic=no" | ||
24 | |||
25 | # We do this because the install program is called with -s which causes it to | ||
26 | # call "strip" and it then mangles cross compiled stuff.. | ||
27 | PATH_prepend="${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin:" | ||
28 | |||
29 | # Hack to get STAGING_LIBDIR into the linker path when building ffmpeg | ||
30 | CC = "${CCACHE} ${HOST_PREFIX}gcc -L${STAGING_LIBDIR}" | ||
31 | |||
32 | acpaths = "-I ${S}/common/m4" | ||
diff --git a/meta/recipes-multimedia/gstreamer/gst-fluendo-mp3/configure_fix.patch b/meta/recipes-multimedia/gstreamer/gst-fluendo-mp3/configure_fix.patch new file mode 100644 index 0000000000..d8b213b3e9 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-fluendo-mp3/configure_fix.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | Index: gst-fluendo-mp3-0.10.2/configure.ac | ||
2 | =================================================================== | ||
3 | --- gst-fluendo-mp3-0.10.2.orig/configure.ac 2008-03-19 23:00:15.000000000 +0000 | ||
4 | +++ gst-fluendo-mp3-0.10.2/configure.ac 2008-03-19 23:00:31.000000000 +0000 | ||
5 | @@ -19,10 +19,9 @@ | ||
6 | AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4") | ||
7 | |||
8 | dnl check for tools | ||
9 | -AS_LIBTOOL_TAGS | ||
10 | AM_PROG_LIBTOOL | ||
11 | dnl AC_PROG_CC | ||
12 | -dnl AC_PROG_LIBTOOL | ||
13 | +AC_PROG_LIBTOOL | ||
14 | |||
15 | dnl decide on error flags | ||
16 | AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no") | ||
diff --git a/meta/recipes-multimedia/gstreamer/gst-fluendo-mp3_0.10.2.bb b/meta/recipes-multimedia/gstreamer/gst-fluendo-mp3_0.10.2.bb new file mode 100644 index 0000000000..9e33b30824 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-fluendo-mp3_0.10.2.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require gst-fluendo.inc | ||
2 | |||
3 | acpaths = "-I ${S}/common/m4 -I ${S}/m4" | ||
4 | |||
5 | SRC_URI += "file://configure_fix.patch;patch=1" | ||
6 | |||
7 | PR = "r1" | ||
8 | |||
9 | DESCRIPTION = "Fluendo closed-format mp3 GStreamer plug-in" | ||
diff --git a/meta/recipes-multimedia/gstreamer/gst-fluendo-mpegdemux_0.10.7.bb b/meta/recipes-multimedia/gstreamer/gst-fluendo-mpegdemux_0.10.7.bb new file mode 100644 index 0000000000..81645accd6 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-fluendo-mpegdemux_0.10.7.bb | |||
@@ -0,0 +1,2 @@ | |||
1 | require gst-fluendo.inc | ||
2 | DESCRIPTION = "Fluendo closed-format mpeg video GStreamer plug-in" | ||
diff --git a/meta/recipes-multimedia/gstreamer/gst-fluendo.inc b/meta/recipes-multimedia/gstreamer/gst-fluendo.inc new file mode 100644 index 0000000000..76b76c2b02 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-fluendo.inc | |||
@@ -0,0 +1,20 @@ | |||
1 | DESCRIPTION = "Fluendo closed-format GStreamer plug-in" | ||
2 | SECTION = "multimedia" | ||
3 | PRIORITY = "optional" | ||
4 | LICENSE = "MIT" | ||
5 | HOMEPAGE = "http://www.fluendo.com/resources/source-plugins.php" | ||
6 | DEPENDS = "gstreamer zlib" | ||
7 | |||
8 | inherit autotools pkgconfig | ||
9 | |||
10 | SRC_URI = "http://core.fluendo.com/gstreamer/src/${PN}/${PN}-${PV}.tar.bz2" | ||
11 | |||
12 | FILES_${PN} += "${libdir}/gstreamer-0.10/*.so" | ||
13 | FILES_${PN}-dbg += "${libdir}/gstreamer-0.10/.debug" | ||
14 | FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.la ${libdir}/gstreamer-0.10/*.a" | ||
15 | |||
16 | EXTRA_OECONF = "--disable-debug --disable-valgrind" | ||
17 | |||
18 | # Hack to get STAGING_LIBDIR into the linker path when building | ||
19 | CC = "${CCACHE} ${HOST_PREFIX}gcc -L${STAGING_LIBDIR}" | ||
20 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb b/meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb new file mode 100644 index 0000000000..36f30e0619 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | DESCRIPTION = "Gstreamer package groups" | ||
2 | LICENSE = "MIT" | ||
3 | DEPENDS = "gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly" | ||
4 | PR = "r5" | ||
5 | |||
6 | PACKAGES = "\ | ||
7 | gst-meta-base \ | ||
8 | gst-meta-audio \ | ||
9 | gst-meta-debug \ | ||
10 | gst-meta-video" | ||
11 | |||
12 | ALLOW_EMPTY = "1" | ||
13 | |||
14 | RDEPENDS_gst-meta-base = "\ | ||
15 | gstreamer \ | ||
16 | gst-plugins-base-playbin \ | ||
17 | gst-plugins-base-decodebin \ | ||
18 | gst-plugins-base-gnomevfs \ | ||
19 | gst-plugins-base-alsa \ | ||
20 | gst-plugins-base-volume \ | ||
21 | gst-plugins-base-ximagesink \ | ||
22 | gst-plugins-base-audioconvert \ | ||
23 | gst-plugins-base-audioresample \ | ||
24 | gst-plugins-base-typefindfunctions \ | ||
25 | gst-plugins-base-videoscale \ | ||
26 | gst-plugins-base-ffmpegcolorspace \ | ||
27 | gst-plugins-good-autodetect" | ||
28 | |||
29 | |||
30 | RDEPENDS_gst-meta-audio = "\ | ||
31 | gst-meta-base \ | ||
32 | gst-plugins-base-vorbis \ | ||
33 | gst-plugins-base-ogg \ | ||
34 | gst-plugins-ugly-mad" | ||
35 | |||
36 | |||
37 | RDEPENDS_gst-meta-debug = "\ | ||
38 | gst-meta-base \ | ||
39 | gst-plugins-good-debug \ | ||
40 | gst-plugins-base-audiotestsrc \ | ||
41 | gst-plugins-base-videotestsrc" | ||
42 | |||
43 | |||
44 | RDEPENDS_gst-meta-video = "\ | ||
45 | gst-meta-base \ | ||
46 | gst-plugins-good-avi \ | ||
47 | gst-plugins-good-matroska \ | ||
48 | gst-plugins-ugly-mpeg2dec" | ||
49 | |||
50 | RRECOMMENDS_gst-meta-video = "\ | ||
51 | gst-meta-audio" | ||
diff --git a/meta/recipes-multimedia/gstreamer/gst-openmax_0.10.0.2.bb b/meta/recipes-multimedia/gstreamer/gst-openmax_0.10.0.2.bb new file mode 100644 index 0000000000..825cccb83c --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-openmax_0.10.0.2.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | DEPENDS = "gstreamer" | ||
2 | RDEPENDS = "libomxil" | ||
3 | |||
4 | SRC_URI = "http://gstreamer.freedesktop.org/src/gst-openmax/pre/gst-openmax-0.10.0.2.tar.bz2" | ||
5 | |||
6 | inherit autotools | ||
7 | |||
8 | EXTRA_OECONF += "--disable-valgrind" | ||
9 | |||
10 | do_configure_prepend() { | ||
11 | |||
12 | install -d ${S}/m4/ | ||
13 | install -m 0644 ${S}/common/m4/*.m4 ${S}/m4/ | ||
14 | } | ||
15 | |||
16 | FILES_${PN} += "${libdir}/gstreamer-0.10/libgstomx.so" | ||
17 | FILES_${PN}-dev += "${libdir}/gstreamer-0.10/libgstomx.*a" | ||
18 | FILES_${PN}-dbg += "${libdir}/gstreamer-0.10/.debug/" | ||
diff --git a/meta/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.19.bb b/meta/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.19.bb new file mode 100644 index 0000000000..8f1821a7be --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.19.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | require gst-plugins.inc | ||
2 | |||
3 | LICENSE = "GPLv2+ & LGPLv2+ & LGPLv2.1+ " | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ | ||
5 | file://gst/tta/filters.h;beginline=12;endline=29;md5=629b0c7a665d155a6677778f4460ec06 \ | ||
6 | file://COPYING.LIB;md5=55ca817ccb7d5b5b66355690e9abc605 \ | ||
7 | file://gst/qtmux/gstqtmuxmap.h;beginline=1;endline=19;md5=2da8f56a44697c1527c5a4bcf8d5d69b \ | ||
8 | file://gst/tta/crc32.h;beginline=12;endline=29;md5=71a904d99ce7ae0c1cf129891b98145c" | ||
9 | |||
10 | DEPENDS += "gst-plugins-base libmusicbrainz tremor" | ||
11 | |||
12 | PR = "r1" | ||
13 | |||
14 | inherit gettext | ||
15 | |||
16 | EXTRA_OECONF += "--disable-examples --disable-experimental --disable-sdl --disable-cdaudio \ | ||
17 | --with-plugins=musicbrainz,wavpack,ivorbis, --disable-vdpau --disable-apexsink" | ||
18 | |||
19 | ARM_INSTRUCTION_SET = "arm" | ||
20 | |||
21 | do_configure_prepend() { | ||
22 | # This m4 file contains nastiness which conflicts with libtool 2.2.2 | ||
23 | rm ${S}/m4/lib-link.m4 || true | ||
24 | } | ||
diff --git a/meta/recipes-multimedia/gstreamer/gst-plugins-base_0.10.29.bb b/meta/recipes-multimedia/gstreamer/gst-plugins-base_0.10.29.bb new file mode 100644 index 0000000000..bfbe28108d --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-plugins-base_0.10.29.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | require gst-plugins.inc | ||
2 | |||
3 | LICENSE = "GPLv2+ & LGPLv2+" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ | ||
5 | file://common/coverage/coverage-report.pl;beginline=2;endline=17;md5=622921ffad8cb18ab906c56052788a3f \ | ||
6 | file://COPYING.LIB;md5=55ca817ccb7d5b5b66355690e9abc605 \ | ||
7 | file://gst/ffmpegcolorspace/utils.c;beginline=1;endline=20;md5=9c83a200b8e597b26ca29df20fc6ecd0" | ||
8 | |||
9 | DEPENDS += "virtual/libx11 alsa-lib freetype gnome-vfs liboil libogg libvorbis libxv" | ||
10 | RDEPENDS += "gnome-vfs-plugin-file gnome-vfs-plugin-http gnome-vfs-plugin-ftp \ | ||
11 | gnome-vfs-plugin-sftp" | ||
12 | |||
13 | PR = "r0" | ||
14 | |||
15 | inherit gettext | ||
16 | |||
17 | EXTRA_OECONF += "--disable-freetypetest --disable-pango --disable-theora" | ||
18 | |||
19 | do_configure_prepend() { | ||
20 | # This m4 file contains nastiness which conflicts with libtool 2.2.2 | ||
21 | rm -f ${S}/m4/lib-link.m4 | ||
22 | } | ||
diff --git a/meta/recipes-multimedia/gstreamer/gst-plugins-good_0.10.23.bb b/meta/recipes-multimedia/gstreamer/gst-plugins-good_0.10.23.bb new file mode 100644 index 0000000000..528dcbf540 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-plugins-good_0.10.23.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | require gst-plugins.inc | ||
2 | |||
3 | LICENSE = "GPLv2+ & LGPLv2.1+" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | ||
5 | file://common/coverage/coverage-report.pl;beginline=2;endline=17;md5=622921ffad8cb18ab906c56052788a3f \ | ||
6 | file://gst/replaygain/rganalysis.c;beginline=1;endline=23;md5=b60ebefd5b2f5a8e0cab6bfee391a5fe" | ||
7 | |||
8 | DEPENDS += "gst-plugins-base gconf cairo jpeg libpng gtk+ zlib libid3tag flac \ | ||
9 | speex" | ||
10 | PR = "r0" | ||
11 | |||
12 | inherit gettext | ||
13 | |||
14 | EXTRA_OECONF += "--disable-aalib --disable-esd --disable-shout2 --disable-libcaca --without-check" | ||
15 | |||
16 | do_configure_prepend() { | ||
17 | # This m4 file contains nastiness which conflicts with libtool 2.2.2 | ||
18 | rm ${S}/m4/lib-link.m4 || true | ||
19 | } | ||
diff --git a/meta/recipes-multimedia/gstreamer/gst-plugins-ugly_0.10.15.bb b/meta/recipes-multimedia/gstreamer/gst-plugins-ugly_0.10.15.bb new file mode 100644 index 0000000000..7dda685002 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-plugins-ugly_0.10.15.bb | |||
@@ -0,0 +1,19 @@ | |||
1 | require gst-plugins.inc | ||
2 | |||
3 | LICENSE = "GPLv2+ & LGPLv2.1+ & LGPLv2+" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | ||
5 | file://gst/synaesthesia/synaescope.h;beginline=1;endline=20;md5=99f301df7b80490c6ff8305fcc712838 \ | ||
6 | file://tests/check/elements/xingmux.c;beginline=1;endline=21;md5=4c771b8af188724855cb99cadd390068 \ | ||
7 | file://gst/mpegstream/gstmpegparse.h;beginline=1;endline=18;md5=ff65467b0c53cdfa98d0684c1bc240a9" | ||
8 | |||
9 | DEPENDS += "gst-plugins-base libid3tag libmad mpeg2dec liba52 lame" | ||
10 | PR = "r0" | ||
11 | |||
12 | inherit gettext | ||
13 | |||
14 | EXTRA_OECONF += "--with-plugins=a52dec,lame,id3tag,mad,mpeg2dec,mpegstream,mpegaudioparse,asfdemux,realmedia" | ||
15 | |||
16 | do_configure_prepend() { | ||
17 | # This m4 file contains nastiness which conflicts with libtool 2.2.2 | ||
18 | rm ${S}/m4/lib-link.m4 || true | ||
19 | } | ||
diff --git a/meta/recipes-multimedia/gstreamer/gst-plugins.inc b/meta/recipes-multimedia/gstreamer/gst-plugins.inc new file mode 100644 index 0000000000..f7f0a2d7c5 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-plugins.inc | |||
@@ -0,0 +1,33 @@ | |||
1 | DESCRIPTION = "Plugins for GStreamer" | ||
2 | HOMEPAGE = "http://gstreamer.freedesktop.org/" | ||
3 | BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer" | ||
4 | SECTION = "multimedia" | ||
5 | PRIORITY = "optional" | ||
6 | DEPENDS = "gstreamer" | ||
7 | |||
8 | inherit autotools pkgconfig | ||
9 | |||
10 | SRC_URI = "http://gstreamer.freedesktop.org/src/${PN}/${PN}-${PV}.tar.bz2" | ||
11 | |||
12 | EXTRA_OECONF = "--disable-valgrind --disable-debug --disable-examples " | ||
13 | |||
14 | acpaths = "-I ${S}/common/m4 -I ${S}/m4" | ||
15 | |||
16 | LIBV = "0.10" | ||
17 | #FILES_${PN} += "${libdir}/gstreamer-${LIBV}/*.so" | ||
18 | #FILES_${PN}-dev += "${libdir}/gstreamer-${LIBV}/*.la ${libdir}/gstreamer-${LIBV}/*.a" | ||
19 | FILES_${PN}-dbg += "${libdir}/gstreamer-${LIBV}/.debug" | ||
20 | |||
21 | PACKAGES_DYNAMIC = "${PN}-*" | ||
22 | |||
23 | python populate_packages_prepend () { | ||
24 | gst_libdir = bb.data.expand('${libdir}/gstreamer-${LIBV}', d) | ||
25 | postinst = bb.data.getVar('plugin_postinst', d, 1) | ||
26 | |||
27 | # Can't package separate debug packages yet | ||
28 | # do_split_packages(d, gst_libdir, '\.debug/libgst(.*)\.so$', bb.data.expand('${PN}-%s-dbg', d), 'GStreamer plugin for %s (with debugging symbols)', recursive=True, extra_depends=bb.data.expand('${PN}-dbg', d), match_path=True) | ||
29 | do_split_packages(d, gst_libdir, 'libgst(.*)\.so$', bb.data.expand('${PN}-%s', d), 'GStreamer plugin for %s', postinst=postinst, extra_depends=bb.data.expand('${PN}',d)) | ||
30 | do_split_packages(d, gst_libdir, 'libgst(.*)\.l?a$', bb.data.expand('${PN}-%s-dev', d), 'GStreamer plugin for %s (development files)', extra_depends=bb.data.expand('${PN}-dev',d)) | ||
31 | } | ||
32 | |||
33 | ALLOW_EMPTY = "1" | ||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer-0.10.29/check_fix.patch b/meta/recipes-multimedia/gstreamer/gstreamer-0.10.29/check_fix.patch new file mode 100644 index 0000000000..72c3f6407e --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer-0.10.29/check_fix.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | # gstreamer: Fix a problem with configure if check has already been built | ||
2 | # Richard Purdie <rpurdie@linux.intel.com> | ||
3 | |||
4 | diff -urN gstreamer-0.10.29-orig/configure.ac gstreamer-0.10.29/configure.ac | ||
5 | --- gstreamer-0.10.29-orig/configure.ac 2010-06-26 12:49:27.774930773 +0800 | ||
6 | +++ gstreamer-0.10.29/configure.ac 2010-06-26 12:51:12.899200233 +0800 | ||
7 | @@ -543,8 +543,10 @@ | ||
8 | *) BUILD_CHECK=yes ;; | ||
9 | esac | ||
10 | ]) | ||
11 | + | ||
12 | dnl bit of a misnomer, but keep the conditional named like this so we don't | ||
13 | dnl have to change too much elsewhere | ||
14 | +HAVE_CHECK=no | ||
15 | AM_CONDITIONAL(HAVE_CHECK, test "x$BUILD_CHECK" = "xyes") | ||
16 | |||
17 | dnl configure the desired buffer alignment | ||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer-0.10.29/gst-inspect-check-error.patch b/meta/recipes-multimedia/gstreamer/gstreamer-0.10.29/gst-inspect-check-error.patch new file mode 100644 index 0000000000..4ca1dbe6ab --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer-0.10.29/gst-inspect-check-error.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | # Fix crash with gst-inspect | ||
2 | # Chris Lord <chris@openedhand.com> | ||
3 | |||
4 | --- gstreamer-0.10.9/tools/gst-inspect.c.old 2006-09-12 11:56:53.000000000 +0100 | ||
5 | +++ gstreamer-0.10.9/tools/gst-inspect.c 2006-09-12 11:57:27.000000000 +0100 | ||
6 | @@ -1123,7 +1123,7 @@ | ||
7 | g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE); | ||
8 | g_option_context_add_group (ctx, gst_init_get_option_group ()); | ||
9 | if (!g_option_context_parse (ctx, &argc, &argv, &err)) { | ||
10 | - g_print ("Error initializing: %s\n", err->message); | ||
11 | + g_print ("Error initializing: %s\n", err ? err->message : "(null)"); | ||
12 | exit (1); | ||
13 | } | ||
14 | g_option_context_free (ctx); | ||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer-0.10.29/gstregistrybinary.c b/meta/recipes-multimedia/gstreamer/gstreamer-0.10.29/gstregistrybinary.c new file mode 100644 index 0000000000..c1f3e71af6 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer-0.10.29/gstregistrybinary.c | |||
@@ -0,0 +1,487 @@ | |||
1 | /* GStreamer | ||
2 | * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu> | ||
3 | * 2000 Wim Taymans <wtay@chello.be> | ||
4 | * 2005 David A. Schleef <ds@schleef.org> | ||
5 | * | ||
6 | * gstregistryxml.c: GstRegistry object, support routines | ||
7 | * | ||
8 | * This library is free software; you can redistribute it and/or | ||
9 | * modify it ulnder the terms of the GNU Library General Public | ||
10 | * License as published by the Free Software Foundation; either | ||
11 | * version 2 of the License, or (at your option) any later version. | ||
12 | * | ||
13 | * This library is distributed in the hope that it will be useful, | ||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
16 | * Library General Public License for more details. | ||
17 | * | ||
18 | * You should have received a copy of the GNU Library General Public | ||
19 | * License along with this library; if not, write to the | ||
20 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
21 | * Boston, MA 02111-1307, USA. | ||
22 | */ | ||
23 | |||
24 | |||
25 | #include <gst/gstregistrybinary.h> | ||
26 | |||
27 | /* | ||
28 | ** Simple handy function to write a memory location to the registry cache file | ||
29 | */ | ||
30 | inline static gboolean | ||
31 | gst_registry_binary_write(GstRegistry *registry, const void *mem, const ssize_t size) | ||
32 | { | ||
33 | if (write(registry->cache_file, mem, size) != size) | ||
34 | { | ||
35 | GST_ERROR("Failed to write binary registry element: ptr=%p size=%u error=%s\n", | ||
36 | mem, size, strerror(errno)); | ||
37 | return FALSE; | ||
38 | } | ||
39 | return TRUE; | ||
40 | } | ||
41 | |||
42 | /* | ||
43 | ** Save features GstBinary style | ||
44 | */ | ||
45 | static gboolean | ||
46 | gst_registry_binary_fill_feature(GList **list, GstPluginFeature *orig, GstBinaryPluginFeature *dest, const char *name) | ||
47 | { | ||
48 | GstBinaryChunck *chk; | ||
49 | |||
50 | if ((chk = calloc(1, sizeof (GstBinaryChunck))) == NULL) | ||
51 | return FALSE; | ||
52 | |||
53 | chk->data = dest; | ||
54 | chk->size = sizeof (GstBinaryPluginFeature); | ||
55 | |||
56 | *list = g_list_append(*list, chk); | ||
57 | |||
58 | dest->rank = orig->rank; | ||
59 | if (!strncpy(dest->typename, name, GST_BINARY_REGISTRY_TYPENAME_TYPENAME_LEN) || | ||
60 | !strncpy(dest->name, orig->name, GST_BINARY_REGISTRY_TYPENAME_NAME_LEN)) | ||
61 | { | ||
62 | GST_ERROR("Failed to write binary registry feature"); | ||
63 | goto fail; | ||
64 | } | ||
65 | |||
66 | if (GST_IS_ELEMENT_FACTORY(orig)) | ||
67 | { | ||
68 | GstElementFactory *factory = GST_ELEMENT_FACTORY(orig); | ||
69 | |||
70 | if (!strncpy(dest->longname, factory->details.longname, GST_BINARY_REGISTRY_TYPENAME_LONGNAME_LEN) || | ||
71 | !strncpy(dest->class, factory->details.klass, GST_BINARY_REGISTRY_TYPENAME_CLASS_LEN) || | ||
72 | !strncpy(dest->description, factory->details.description, GST_BINARY_REGISTRY_TYPENAME_DESCRIPTION_LEN) || | ||
73 | !strncpy(dest->author, factory->details.author, GST_BINARY_REGISTRY_TYPENAME_AUTHOR_LEN)) | ||
74 | { | ||
75 | GST_ERROR("Failed to write binary registry feature"); | ||
76 | goto fail; | ||
77 | } | ||
78 | } | ||
79 | |||
80 | dest->npadtemplates = dest->ninterfaces = dest->nuritypes = 0; | ||
81 | return TRUE; | ||
82 | |||
83 | fail: | ||
84 | free(chk); | ||
85 | return FALSE; | ||
86 | } | ||
87 | |||
88 | |||
89 | /* | ||
90 | ** Initialize the GstBinaryRegistryMagic, setting both our magic number and gstreamer major/minor version | ||
91 | */ | ||
92 | inline static gboolean | ||
93 | gst_registry_binary_initialize_magic(GstBinaryRegistryMagic *m) | ||
94 | { | ||
95 | if (!strncpy(m->magic, GST_MAGIC_BINARY_REGISTRY_STR, GST_MAGIC_BINARY_REGISTRY_LEN) || | ||
96 | !strncpy(m->version, GST_MAJORMINOR, GST_BINARY_REGISTRY_VERSION_LEN)) | ||
97 | { | ||
98 | GST_ERROR("Failed to write magic to the registry magic structure"); | ||
99 | return FALSE; | ||
100 | } | ||
101 | return TRUE; | ||
102 | } | ||
103 | |||
104 | /* | ||
105 | ** Check GstBinaryRegistryMagic validity. | ||
106 | ** Return a pointer pointing right after the magic structure | ||
107 | */ | ||
108 | static gchar * | ||
109 | gst_registry_binary_check_magic(gchar *in) | ||
110 | { | ||
111 | GstBinaryRegistryMagic *m = (GstBinaryRegistryMagic *) in; | ||
112 | |||
113 | if (m == NULL || m->magic == NULL || m->version == NULL) | ||
114 | { | ||
115 | GST_ERROR("Binary registry magic structure is broken"); | ||
116 | return NULL; | ||
117 | } | ||
118 | if (strncmp(m->magic, GST_MAGIC_BINARY_REGISTRY_STR, GST_MAGIC_BINARY_REGISTRY_LEN) != 0) | ||
119 | { | ||
120 | GST_ERROR("Binary registry magic is different : %02x%02x%02x%02x != %02x%02x%02x%02x", | ||
121 | GST_MAGIC_BINARY_REGISTRY_STR[0] & 0xff, GST_MAGIC_BINARY_REGISTRY_STR[1] & 0xff, | ||
122 | GST_MAGIC_BINARY_REGISTRY_STR[2] & 0xff, GST_MAGIC_BINARY_REGISTRY_STR[3] & 0xff, | ||
123 | m->magic[0] & 0xff, m->magic[1] & 0xff, m->magic[2] & 0xff, m->magic[3] & 0xff); | ||
124 | return NULL; | ||
125 | } | ||
126 | if (strncmp(m->version, GST_MAJORMINOR, GST_BINARY_REGISTRY_VERSION_LEN)) | ||
127 | { | ||
128 | GST_ERROR("Binary registry magic version is different : %s != %s", | ||
129 | GST_MAJORMINOR, m->version); | ||
130 | return NULL; | ||
131 | } | ||
132 | return (in + sizeof (GstBinaryRegistryMagic)); | ||
133 | } | ||
134 | |||
135 | /* | ||
136 | ** Adapt a GstPlugin to our GstBinaryPluginElement structure, and write it to the | ||
137 | ** registry file. | ||
138 | */ | ||
139 | static gboolean | ||
140 | gst_registry_binary_save_plugin(GList **list, GstRegistry *registry, GstPlugin *plugin) | ||
141 | { | ||
142 | GstBinaryPluginElement *e; | ||
143 | GstBinaryChunck *chk; | ||
144 | GList *walk; | ||
145 | |||
146 | if ((e = calloc(1, sizeof (GstBinaryPluginElement))) == NULL || | ||
147 | (chk = calloc(1, sizeof (GstBinaryChunck))) == NULL) | ||
148 | return FALSE; | ||
149 | |||
150 | chk->data = e; | ||
151 | chk->size = sizeof (GstBinaryPluginElement); | ||
152 | *list = g_list_append(*list, chk); | ||
153 | |||
154 | if (!strncpy(e->name, plugin->desc.name, GST_BINARY_REGISTRY_NAME_LEN) || | ||
155 | !strncpy(e->description, plugin->desc.description, GST_BINARY_REGISTRY_DESCRIPTION_LEN) || | ||
156 | !strncpy(e->filename, plugin->filename, _POSIX_PATH_MAX) || | ||
157 | !strncpy(e->version, plugin->desc.version, GST_BINARY_REGISTRY_VERSION_LEN) || | ||
158 | !strncpy(e->license, plugin->desc.license, GST_BINARY_REGISTRY_LICENSE_LEN) || | ||
159 | !strncpy(e->source, plugin->desc.source, GST_BINARY_REGISTRY_SOURCE_LEN) || | ||
160 | !strncpy(e->package, plugin->desc.package, GST_BINARY_REGISTRY_PACKAGE_LEN) || | ||
161 | !strncpy(e->origin, plugin->desc.origin, GST_BINARY_REGISTRY_ORIGIN_LEN)) | ||
162 | { | ||
163 | GST_DEBUG("Can't adapt GstPlugin to GstBinaryPluginElement"); | ||
164 | goto fail; | ||
165 | } | ||
166 | |||
167 | e->size = plugin->file_size; | ||
168 | e->m32p = plugin->file_mtime; | ||
169 | |||
170 | GList *ft_list = gst_registry_get_feature_list_by_plugin(registry, plugin->desc.name); | ||
171 | |||
172 | for (walk = ft_list; walk; walk = g_list_next(walk), e->nfeatures++) | ||
173 | { | ||
174 | GstPluginFeature *curfeat = GST_PLUGIN_FEATURE (walk->data); | ||
175 | GstBinaryPluginFeature *newfeat; | ||
176 | const char *feat_name = g_type_name(G_OBJECT_TYPE(curfeat)); | ||
177 | |||
178 | if ((newfeat = calloc(1, sizeof (GstBinaryPluginFeature))) == NULL) | ||
179 | goto fail; | ||
180 | |||
181 | if (!feat_name || !gst_registry_binary_fill_feature(list, curfeat, newfeat, feat_name)) | ||
182 | { | ||
183 | GST_ERROR("Can't fill plugin feature, aborting."); | ||
184 | goto fail; | ||
185 | } | ||
186 | } | ||
187 | |||
188 | GST_DEBUG("Found %d features in plugin \"%s\"\n", e->nfeatures, e->name); | ||
189 | return TRUE; | ||
190 | |||
191 | fail: | ||
192 | free(chk); | ||
193 | free(e); | ||
194 | return FALSE; | ||
195 | } | ||
196 | |||
197 | /* | ||
198 | ** Write the cache to file. Part of the code was taken from gstregistryxml.c | ||
199 | */ | ||
200 | gboolean | ||
201 | gst_registry_binary_write_cache(GstRegistry *registry, const char *location) | ||
202 | { | ||
203 | GList *walk; | ||
204 | char *tmp_location; | ||
205 | GstBinaryRegistryMagic *magic; | ||
206 | GstBinaryChunck *magic_chunck; | ||
207 | GList *to_write = NULL; | ||
208 | |||
209 | GST_INFO("Writing binary registry cache"); | ||
210 | |||
211 | g_return_val_if_fail (GST_IS_REGISTRY (registry), FALSE); | ||
212 | tmp_location = g_strconcat (location, ".tmpXXXXXX", NULL); | ||
213 | registry->cache_file = g_mkstemp (tmp_location); | ||
214 | if (registry->cache_file == -1) | ||
215 | { | ||
216 | char *dir; | ||
217 | |||
218 | /* oops, I bet the directory doesn't exist */ | ||
219 | dir = g_path_get_dirname (location); | ||
220 | g_mkdir_with_parents (dir, 0777); | ||
221 | g_free (dir); | ||
222 | |||
223 | registry->cache_file = g_mkstemp (tmp_location); | ||
224 | } | ||
225 | |||
226 | if (registry->cache_file == -1) | ||
227 | goto fail; | ||
228 | |||
229 | if ((magic = calloc(1, sizeof (GstBinaryRegistryMagic))) == NULL || | ||
230 | !gst_registry_binary_initialize_magic(magic)) | ||
231 | goto fail; | ||
232 | |||
233 | if ((magic_chunck = calloc(1, sizeof (GstBinaryChunck))) == NULL) | ||
234 | goto fail; | ||
235 | |||
236 | magic_chunck->data = magic; | ||
237 | magic_chunck->size = sizeof (GstBinaryRegistryMagic); | ||
238 | to_write = g_list_append(to_write, magic_chunck); | ||
239 | |||
240 | /* Iterate trough the list of plugins in the GstRegistry and adapt them to our structures */ | ||
241 | for (walk = g_list_last(registry->plugins); walk; walk = g_list_previous(walk)) | ||
242 | { | ||
243 | GstPlugin *plugin = GST_PLUGIN(walk->data); | ||
244 | |||
245 | if (!plugin->filename) | ||
246 | continue; | ||
247 | |||
248 | if (plugin->flags & GST_PLUGIN_FLAG_CACHED) | ||
249 | { | ||
250 | int ret; | ||
251 | struct stat statbuf; | ||
252 | |||
253 | ret = g_stat (plugin->filename, &statbuf); | ||
254 | if ((ret = g_stat (plugin->filename, &statbuf)) < 0 || | ||
255 | plugin->file_mtime != statbuf.st_mtime || | ||
256 | plugin->file_size != statbuf.st_size) | ||
257 | continue; | ||
258 | } | ||
259 | |||
260 | if (!gst_registry_binary_save_plugin(&to_write, registry, plugin)) | ||
261 | { | ||
262 | GST_ERROR("Can't write binary plugin information for \"%s\"", plugin->filename); | ||
263 | continue; /* Try anyway */ | ||
264 | } | ||
265 | } | ||
266 | |||
267 | for (walk = g_list_first(to_write); walk; walk = g_list_next(walk)) | ||
268 | { | ||
269 | GstBinaryChunck *cur = walk->data; | ||
270 | |||
271 | if (!gst_registry_binary_write(registry, cur->data, cur->size)) | ||
272 | { | ||
273 | free(cur->data); | ||
274 | free(cur); | ||
275 | g_list_free(to_write); | ||
276 | goto fail; | ||
277 | } | ||
278 | free(cur->data); | ||
279 | free(cur); | ||
280 | } | ||
281 | g_list_free(to_write); | ||
282 | |||
283 | if (close(registry->cache_file) < 0) | ||
284 | { | ||
285 | GST_DEBUG("Can't close registry file : %s", strerror(errno)); | ||
286 | goto fail; | ||
287 | } | ||
288 | |||
289 | if (g_file_test (tmp_location, G_FILE_TEST_EXISTS)) { | ||
290 | #ifdef WIN32 | ||
291 | remove (location); | ||
292 | #endif | ||
293 | rename (tmp_location, location); | ||
294 | } | ||
295 | |||
296 | g_free (tmp_location); | ||
297 | return TRUE; | ||
298 | |||
299 | fail: | ||
300 | g_free(tmp_location); | ||
301 | return FALSE; | ||
302 | } | ||
303 | |||
304 | static GstPluginFeature* | ||
305 | gst_registry_binary_load_feature(GstBinaryPluginFeature *in) | ||
306 | { | ||
307 | GstPluginFeature *feature; | ||
308 | GType type; | ||
309 | |||
310 | if (!in->typename || !*(in->typename)) | ||
311 | return NULL; | ||
312 | |||
313 | /* GST_INFO("Plugin feature typename : %s", in->typename);*/ | ||
314 | |||
315 | if (!(type = g_type_from_name(in->typename))) | ||
316 | { | ||
317 | GST_ERROR("Unknown type from typename"); | ||
318 | return NULL; | ||
319 | } | ||
320 | feature = g_object_new (type, NULL); | ||
321 | |||
322 | if (!feature) { | ||
323 | GST_ERROR("Can't create feature from type"); | ||
324 | return NULL; | ||
325 | } | ||
326 | |||
327 | if (!GST_IS_PLUGIN_FEATURE (feature)) { | ||
328 | /* don't really know what it is */ | ||
329 | if (GST_IS_OBJECT (feature)) | ||
330 | gst_object_unref (feature); | ||
331 | else | ||
332 | g_object_unref (feature); | ||
333 | return NULL; | ||
334 | } | ||
335 | |||
336 | feature->name = g_strdup(in->name); | ||
337 | feature->rank = in->rank; | ||
338 | |||
339 | if (GST_IS_ELEMENT_FACTORY(feature)) | ||
340 | { | ||
341 | GstElementFactory *factory = GST_ELEMENT_FACTORY(feature); | ||
342 | |||
343 | factory->details.longname = g_strdup(in->longname); | ||
344 | factory->details.klass = g_strdup(in->class); | ||
345 | factory->details.description = g_strdup(in->description); | ||
346 | factory->details.author = g_strdup(in->author); | ||
347 | |||
348 | /* GST_INFO("Element factory : %s", factory->details.longname); */ | ||
349 | } | ||
350 | |||
351 | GST_DEBUG("Added feature %p with name %s", feature, feature->name); | ||
352 | return feature; | ||
353 | } | ||
354 | |||
355 | /* | ||
356 | ** Make a new plugin from current GstBinaryPluginElement structure | ||
357 | ** and save it to the GstRegistry. Return an offset to the next | ||
358 | ** GstBinaryPluginElement structure. | ||
359 | */ | ||
360 | static unsigned long | ||
361 | gst_registry_binary_get_binary_plugin(GstRegistry *registry, gchar *in) | ||
362 | { | ||
363 | GstBinaryPluginElement *p = (GstBinaryPluginElement *) in; | ||
364 | GstPlugin *plugin = NULL; | ||
365 | GList *plugin_features = NULL; | ||
366 | GstBinaryPluginFeature *feat; | ||
367 | unsigned int i; | ||
368 | unsigned long offset; | ||
369 | |||
370 | plugin = g_object_new (GST_TYPE_PLUGIN, NULL); | ||
371 | |||
372 | plugin->flags |= GST_PLUGIN_FLAG_CACHED; | ||
373 | |||
374 | plugin->desc.name = g_strdup(p->name); | ||
375 | plugin->desc.description= g_strdup(p->description); | ||
376 | plugin->filename = g_strdup(p->filename); | ||
377 | plugin->desc.version = g_strdup(p->version); | ||
378 | plugin->desc.license = g_strdup(p->license); | ||
379 | plugin->desc.source = g_strdup(p->source); | ||
380 | plugin->desc.package = g_strdup(p->package); | ||
381 | plugin->desc.origin = g_strdup(p->origin); | ||
382 | plugin->file_mtime = p->m32p; | ||
383 | plugin->file_size = p->size; | ||
384 | plugin->basename = g_path_get_basename (plugin->filename); | ||
385 | |||
386 | if (plugin->file_mtime < 0 || plugin->file_size < 0) | ||
387 | { | ||
388 | GST_ERROR("Plugin time or file size is not valid !"); | ||
389 | g_free(plugin); | ||
390 | return -1; | ||
391 | } | ||
392 | |||
393 | if (p->nfeatures < 0) | ||
394 | { | ||
395 | GST_ERROR("The number of feature structure is not valid !"); | ||
396 | gst_object_unref(plugin); | ||
397 | return -1; | ||
398 | } | ||
399 | |||
400 | for (feat = (GstBinaryPluginFeature *) (in + sizeof (GstBinaryPluginElement)), i = 0; | ||
401 | i < p->nfeatures; i++, feat++) | ||
402 | { | ||
403 | GstPluginFeature *gstfeat; | ||
404 | |||
405 | if ((gstfeat = gst_registry_binary_load_feature(feat)) == NULL) | ||
406 | { | ||
407 | g_list_free(plugin_features); | ||
408 | g_free(plugin); | ||
409 | GST_ERROR("Error while loading binary feature"); | ||
410 | return -1; | ||
411 | } | ||
412 | gstfeat->plugin_name = g_strdup(plugin->desc.name); | ||
413 | plugin_features = g_list_prepend(plugin_features, gstfeat); | ||
414 | } | ||
415 | |||
416 | GST_DEBUG("Added plugin \"%s\" to global registry from binary registry", plugin->desc.name); | ||
417 | GList *g; | ||
418 | |||
419 | gst_registry_add_plugin (registry, plugin); | ||
420 | for (g = plugin_features; g; g = g_list_next (g)) | ||
421 | gst_registry_add_feature (registry, GST_PLUGIN_FEATURE (g->data)); | ||
422 | /* g_list_free(plugin_features); */ | ||
423 | |||
424 | offset = sizeof (GstBinaryPluginElement) + p->nfeatures * sizeof (GstBinaryPluginFeature); | ||
425 | return offset; | ||
426 | } | ||
427 | |||
428 | |||
429 | /* | ||
430 | ** Read the cache and adapt it to fill GstRegistry | ||
431 | */ | ||
432 | gboolean | ||
433 | gst_registry_binary_read_cache(GstRegistry *registry, const char *location) | ||
434 | { | ||
435 | GMappedFile *mapped = NULL; | ||
436 | GTimer *timer = NULL; | ||
437 | gchar *contents = NULL; | ||
438 | gdouble seconds; | ||
439 | unsigned long offset, inc; | ||
440 | gsize size; | ||
441 | |||
442 | /* make sure these types exist */ | ||
443 | GST_TYPE_ELEMENT_FACTORY; | ||
444 | GST_TYPE_TYPE_FIND_FACTORY; | ||
445 | GST_TYPE_INDEX_FACTORY; | ||
446 | |||
447 | timer = g_timer_new (); | ||
448 | |||
449 | if ((mapped = g_mapped_file_new(location, FALSE, NULL)) == NULL || | ||
450 | (contents = g_mapped_file_get_contents(mapped)) == NULL) | ||
451 | { | ||
452 | GST_ERROR("Can't load file : %s", strerror(errno)); | ||
453 | return FALSE; | ||
454 | } | ||
455 | if ((contents = gst_registry_binary_check_magic(contents)) == NULL) | ||
456 | { | ||
457 | GST_ERROR("Binary registry type not recognized (invalid magic)"); | ||
458 | g_mapped_file_free(mapped); | ||
459 | return FALSE; | ||
460 | } | ||
461 | |||
462 | if ((size = g_mapped_file_get_length(mapped)) < sizeof (GstBinaryPluginElement)) | ||
463 | { | ||
464 | GST_INFO("No binary plugins structure to read"); | ||
465 | return TRUE; /* This is not really an error */ | ||
466 | } | ||
467 | |||
468 | for (offset = inc = 0; (offset + sizeof (GstBinaryPluginElement)) < size && | ||
469 | (inc = gst_registry_binary_get_binary_plugin(registry, contents + offset)) > 0; | ||
470 | offset += inc) | ||
471 | ; /* May want in the future to do something here */ | ||
472 | if (inc < 0) | ||
473 | { | ||
474 | GST_DEBUG("Problem while reading binary registry"); | ||
475 | return FALSE; | ||
476 | } | ||
477 | |||
478 | g_timer_stop (timer); | ||
479 | seconds = g_timer_elapsed (timer, NULL); | ||
480 | g_timer_destroy (timer); | ||
481 | |||
482 | GST_INFO ("loaded %s in %f seconds", location, seconds); | ||
483 | |||
484 | if (mapped) | ||
485 | g_mapped_file_free (mapped); | ||
486 | return TRUE; | ||
487 | } | ||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer-0.10.29/gstregistrybinary.h b/meta/recipes-multimedia/gstreamer/gstreamer-0.10.29/gstregistrybinary.h new file mode 100644 index 0000000000..2ef24d765d --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer-0.10.29/gstregistrybinary.h | |||
@@ -0,0 +1,194 @@ | |||
1 | /* GStreamer | ||
2 | * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu> | ||
3 | * 2000 Wim Taymans <wim.taymans@chello.be> | ||
4 | * | ||
5 | * gstregistry.h: Header for registry handling | ||
6 | * | ||
7 | * This library is free software; you can redistribute it and/or | ||
8 | * modify it under the terms of the GNU Library General Public | ||
9 | * License as published by the Free Software Foundation; either | ||
10 | * version 2 of the License, or (at your option) any later version. | ||
11 | * | ||
12 | * This library is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
15 | * Library General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU Library General Public | ||
18 | * License along with this library; if not, write to the | ||
19 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
20 | * Boston, MA 02111-1307, USA. | ||
21 | */ | ||
22 | |||
23 | /* SUGGESTIONS AND TODO : | ||
24 | ** ==================== | ||
25 | ** - Use a compressed registry, but would induce performance loss | ||
26 | ** - Encrypt the registry, for security purpose, but would also reduce performances | ||
27 | ** - Also have a non-mmap based cache reading (work with file descriptors) | ||
28 | */ | ||
29 | |||
30 | #ifndef __GST_REGISTRYBINARY_H__ | ||
31 | #define __GST_REGISTRYBINARY_H__ | ||
32 | |||
33 | #ifdef HAVE_CONFIG_H | ||
34 | # include "config.h" | ||
35 | #endif | ||
36 | |||
37 | #include <stdio.h> | ||
38 | #include <errno.h> | ||
39 | #include <sys/types.h> | ||
40 | #include <sys/stat.h> | ||
41 | #include <dirent.h> | ||
42 | #include <fcntl.h> | ||
43 | #include <sys/mman.h> | ||
44 | #ifdef HAVE_UNISTD_H | ||
45 | #include <unistd.h> | ||
46 | #endif | ||
47 | |||
48 | #include <gst/gst_private.h> | ||
49 | #include <gst/gstelement.h> | ||
50 | #include <gst/gsttypefind.h> | ||
51 | #include <gst/gsttypefindfactory.h> | ||
52 | #include <gst/gsturi.h> | ||
53 | #include <gst/gstinfo.h> | ||
54 | #include <gst/gstenumtypes.h> | ||
55 | #include <gst/gstregistry.h> | ||
56 | #include <gst/gstpadtemplate.h> | ||
57 | |||
58 | #include "glib-compat-private.h" | ||
59 | #include <glib/gstdio.h> | ||
60 | |||
61 | /* A magic, written at the beginning of the file */ | ||
62 | #define GST_MAGIC_BINARY_REGISTRY_STR "\xc0\xde\xf0\x0d" | ||
63 | #define GST_MAGIC_BINARY_REGISTRY_LEN (4) | ||
64 | #define GST_MAGIC_BINARY_VERSION_LEN (64) | ||
65 | |||
66 | typedef struct _GstBinaryRegistryMagic | ||
67 | { | ||
68 | char magic[GST_MAGIC_BINARY_REGISTRY_LEN]; | ||
69 | char version[GST_MAGIC_BINARY_VERSION_LEN]; | ||
70 | } GstBinaryRegistryMagic; | ||
71 | |||
72 | |||
73 | /* Used to store pointers to write */ | ||
74 | typedef struct _GstBinaryChunck | ||
75 | { | ||
76 | void *data; | ||
77 | unsigned int size; | ||
78 | } GstBinaryChunck; | ||
79 | |||
80 | |||
81 | /* A structure containing (staticely) every information needed for a plugin | ||
82 | ** | ||
83 | ** Notes : | ||
84 | ** "nfeatures" is used to say how many GstBinaryPluginFeature structures we will have | ||
85 | ** right after the structure itself. | ||
86 | */ | ||
87 | |||
88 | /* Various lenght defines for our GstBinaryPluginElement structure | ||
89 | ** Note : We could eventually use smaller size | ||
90 | */ | ||
91 | #define GST_BINARY_REGISTRY_NAME_LEN (256) | ||
92 | #define GST_BINARY_REGISTRY_DESCRIPTION_LEN (1024) | ||
93 | #define GST_BINARY_REGISTRY_VERSION_LEN (64) | ||
94 | #define GST_BINARY_REGISTRY_LICENSE_LEN (256) | ||
95 | #define GST_BINARY_REGISTRY_SOURCE_LEN (256) | ||
96 | #define GST_BINARY_REGISTRY_PACKAGE_LEN (1024) | ||
97 | #define GST_BINARY_REGISTRY_ORIGIN_LEN (1024) | ||
98 | |||
99 | typedef struct _GstBinaryPluginElement | ||
100 | { | ||
101 | char name[GST_BINARY_REGISTRY_NAME_LEN]; | ||
102 | char description[GST_BINARY_REGISTRY_DESCRIPTION_LEN]; | ||
103 | char filename[_POSIX_PATH_MAX]; | ||
104 | char version[GST_BINARY_REGISTRY_VERSION_LEN]; | ||
105 | char license[GST_BINARY_REGISTRY_LICENSE_LEN]; | ||
106 | char source[GST_BINARY_REGISTRY_SOURCE_LEN]; | ||
107 | char package[GST_BINARY_REGISTRY_PACKAGE_LEN]; | ||
108 | char origin[GST_BINARY_REGISTRY_ORIGIN_LEN]; | ||
109 | unsigned long size; | ||
110 | unsigned long m32p; | ||
111 | unsigned int nfeatures; | ||
112 | } GstBinaryPluginElement; | ||
113 | |||
114 | |||
115 | /* A structure containing the plugin features | ||
116 | ** | ||
117 | ** Note : | ||
118 | ** "npadtemplates" is used to store the number of GstBinaryPadTemplate structures following the structure itself. | ||
119 | ** "ninterfaces" is used to store the number of GstBinaryInterface structures following the structure itself. | ||
120 | ** "nuritypes" is used to store the number of GstBinaryUriType structures following the structure itself. | ||
121 | */ | ||
122 | #define GST_BINARY_REGISTRY_TYPENAME_TYPENAME_LEN (256) | ||
123 | #define GST_BINARY_REGISTRY_TYPENAME_NAME_LEN (256) | ||
124 | #define GST_BINARY_REGISTRY_TYPENAME_LONGNAME_LEN (1024) | ||
125 | #define GST_BINARY_REGISTRY_TYPENAME_CLASS_LEN (512) | ||
126 | #define GST_BINARY_REGISTRY_TYPENAME_DESCRIPTION_LEN (1024) | ||
127 | #define GST_BINARY_REGISTRY_TYPENAME_AUTHOR_LEN (256) | ||
128 | |||
129 | typedef struct _GstBinaryPluginFeature | ||
130 | { | ||
131 | char typename[GST_BINARY_REGISTRY_TYPENAME_TYPENAME_LEN]; | ||
132 | char name[GST_BINARY_REGISTRY_TYPENAME_NAME_LEN]; | ||
133 | unsigned long rank; | ||
134 | char longname[GST_BINARY_REGISTRY_TYPENAME_LONGNAME_LEN]; | ||
135 | char class[GST_BINARY_REGISTRY_TYPENAME_CLASS_LEN]; | ||
136 | char description[GST_BINARY_REGISTRY_TYPENAME_DESCRIPTION_LEN]; | ||
137 | char author[GST_BINARY_REGISTRY_TYPENAME_AUTHOR_LEN]; | ||
138 | unsigned int npadtemplates; | ||
139 | unsigned int ninterfaces; | ||
140 | unsigned int nuritypes; | ||
141 | } GstBinaryPluginFeature; | ||
142 | |||
143 | |||
144 | /* | ||
145 | ** A structure containing the static pad templates of a plugin feature | ||
146 | */ | ||
147 | #define GST_BINARY_REGISTRY_PADTEMPLATE_NAME_LEN (256) | ||
148 | #define GST_BINARY_REGISTRY_PADTEMPLATE_CAP_LEN (1024) | ||
149 | |||
150 | typedef struct _GstBinaryPadTemplate | ||
151 | { | ||
152 | char name[GST_BINARY_REGISTRY_PADTEMPLATE_NAME_LEN]; | ||
153 | char cap[GST_BINARY_REGISTRY_PADTEMPLATE_CAP_LEN]; | ||
154 | int direction; /* Either 0:"sink" or 1:"src" */ | ||
155 | GstPadPresence presence; | ||
156 | } GstBinaryPadTemplate; | ||
157 | |||
158 | /* | ||
159 | ** A very simple structure defining the plugin feature interface string | ||
160 | */ | ||
161 | #define GST_BINARY_REGISTRY_INTERFACE_INTERFACE_LEN (512) | ||
162 | typedef struct _GstBinaryInterface | ||
163 | { | ||
164 | char interface[GST_BINARY_REGISTRY_INTERFACE_INTERFACE_LEN]; | ||
165 | unsigned long size; | ||
166 | } GstBinaryInterface; | ||
167 | |||
168 | /* Uri Type */ | ||
169 | typedef struct _GstBinaryUriType | ||
170 | { | ||
171 | GstURIType type; | ||
172 | unsigned long nuriprotocols; | ||
173 | } GstBinaryUriType; | ||
174 | |||
175 | /* | ||
176 | ** Function prototypes | ||
177 | */ | ||
178 | |||
179 | /* Local prototypes */ | ||
180 | inline static gboolean gst_registry_binary_write(GstRegistry *registry, const void *mem, const ssize_t size); | ||
181 | inline static gboolean gst_registry_binary_initialize_magic(GstBinaryRegistryMagic *m); | ||
182 | static gboolean gst_registry_binary_fill_feature(GList **list, GstPluginFeature *, GstBinaryPluginFeature *, const char *); | ||
183 | static gboolean gst_registry_binary_save_plugin(GList **list, GstRegistry *registry, GstPlugin *plugin); | ||
184 | static gchar *gst_registry_binary_check_magic(gchar *in); | ||
185 | static GstPluginFeature *gst_registry_binary_load_feature(GstBinaryPluginFeature *); | ||
186 | static unsigned long gst_registry_binary_get_binary_plugin(GstRegistry *registry, gchar *in); | ||
187 | |||
188 | /* Exportable */ | ||
189 | gboolean gst_registry_binary_write_cache(GstRegistry *registry, const char *location); | ||
190 | gboolean gst_registry_binary_read_cache(GstRegistry *registry, const char *location); | ||
191 | |||
192 | #endif /* !__GST_REGISTRYBINARY_H__ */ | ||
193 | |||
194 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer_0.10.29.bb b/meta/recipes-multimedia/gstreamer/gstreamer_0.10.29.bb new file mode 100644 index 0000000000..38e28fa534 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer_0.10.29.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | DESCRIPTION = "GStreamer is a multimedia framework for encoding and decoding video and sound. \ | ||
2 | It supports a wide range of formats including mp3, ogg, avi, mpeg and quicktime." | ||
3 | HOMEPAGE = "http://gstreamer.freedesktop.org/" | ||
4 | BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer" | ||
5 | SECTION = "multimedia" | ||
6 | PRIORITY = "optional" | ||
7 | LICENSE = "LGPLv2+" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605 \ | ||
9 | file://gst/gst.h;beginline=1;endline=21;md5=8e5fe5e87d33a04479fde862e238eaa4" | ||
10 | DEPENDS = "glib-2.0 gettext libxml2 bison-native flex-native" | ||
11 | |||
12 | PR = "r0" | ||
13 | |||
14 | SRC_URI = "http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${PV}.tar.bz2 \ | ||
15 | file://check_fix.patch;patch=1 \ | ||
16 | file://gst-inspect-check-error.patch;patch=1" | ||
17 | |||
18 | inherit autotools pkgconfig | ||
19 | |||
20 | EXTRA_OECONF = "--disable-docs-build --disable-dependency-tracking --with-check=no --disable-examples --disable-tests --disable-valgrind --disable-debug" | ||
21 | |||
22 | #do_compile_prepend () { | ||
23 | # mv ${WORKDIR}/gstregistrybinary.[ch] ${S}/gst/ | ||
24 | #} | ||
25 | |||
26 | PARALLEL_MAKE = "" | ||
27 | |||
28 | FILES_${PN} += " ${libdir}/gstreamer-0.10/*.so" | ||
29 | FILES_${PN}-dev += " ${libdir}/gstreamer-0.10/*.la ${libdir}/gstreamer-0.10/*.a" | ||
30 | FILES_${PN}-dbg += " ${libdir}/gstreamer-0.10/.debug/" | ||