From 1857df74ac9bfec16d0274fe972fda7bb1f99e6b Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sat, 4 Dec 2010 21:35:37 +0100 Subject: meta-openembedded: overlay gst-plugins-base to get rid of gnome-vfs(-native) dep Signed-off-by: Koen Kooi --- .../gst-plugins-base-tremor.patch | 17 +++++++++ .../gstreamer/gst-plugins-base_0.10.30.bb | 22 ++++++++++++ recipes-multimedia/gstreamer/gst-plugins.inc | 41 ++++++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 recipes-multimedia/gstreamer/gst-plugins-base-0.10.30/gst-plugins-base-tremor.patch create mode 100644 recipes-multimedia/gstreamer/gst-plugins-base_0.10.30.bb create mode 100644 recipes-multimedia/gstreamer/gst-plugins.inc (limited to 'recipes-multimedia/gstreamer') diff --git a/recipes-multimedia/gstreamer/gst-plugins-base-0.10.30/gst-plugins-base-tremor.patch b/recipes-multimedia/gstreamer/gst-plugins-base-0.10.30/gst-plugins-base-tremor.patch new file mode 100644 index 0000000000..a6494fd4a9 --- /dev/null +++ b/recipes-multimedia/gstreamer/gst-plugins-base-0.10.30/gst-plugins-base-tremor.patch @@ -0,0 +1,17 @@ +Remove -DTREMOR option since Tremor has dropped its internal +libogg2, and gst-plugins-base has dependency on that. + +Signed-off-by: Dongxiao Xu + +diff -ruN gst-plugins-base-0.10.30-orig/ext/vorbis/Makefile.am gst-plugins-base-0.10.30/ext/vorbis/Makefile.am +--- gst-plugins-base-0.10.30-orig/ext/vorbis/Makefile.am 2010-11-17 16:11:03.000000000 +0800 ++++ gst-plugins-base-0.10.30/ext/vorbis/Makefile.am 2010-11-17 16:12:41.000000000 +0800 +@@ -28,7 +28,7 @@ + libgstivorbisdec_la_SOURCES = gstivorbisdec.c \ + gstvorbisdec.c gstvorbisdeclib.c gstvorbiscommon.c + libgstivorbisdec_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) \ +- -DTREMOR $(IVORBIS_CFLAGS) ++ $(IVORBIS_CFLAGS) + libgstivorbisdec_la_LIBADD = \ + $(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_MAJORMINOR@.la \ + $(top_builddir)/gst-libs/gst/audio/libgstaudio-@GST_MAJORMINOR@.la \ diff --git a/recipes-multimedia/gstreamer/gst-plugins-base_0.10.30.bb b/recipes-multimedia/gstreamer/gst-plugins-base_0.10.30.bb new file mode 100644 index 0000000000..9347ef4937 --- /dev/null +++ b/recipes-multimedia/gstreamer/gst-plugins-base_0.10.30.bb @@ -0,0 +1,22 @@ +require gst-plugins.inc + +LICENSE = "GPLv2+ & LGPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ + file://common/coverage/coverage-report.pl;beginline=2;endline=17;md5=622921ffad8cb18ab906c56052788a3f \ + file://COPYING.LIB;md5=55ca817ccb7d5b5b66355690e9abc605 \ + file://gst/ffmpegcolorspace/utils.c;beginline=1;endline=20;md5=9c83a200b8e597b26ca29df20fc6ecd0" + +DEPENDS += "virtual/libx11 alsa-lib freetype liboil libogg libvorbis libxv libtheora" + +SRC_URI += " file://gst-plugins-base-tremor.patch" + +PR = "r2" + +inherit gettext + +EXTRA_OECONF += "--disable-freetypetest --disable-pango" + +do_configure_prepend() { + # This m4 file contains nastiness which conflicts with libtool 2.2.2 + rm -f ${S}/m4/lib-link.m4 +} diff --git a/recipes-multimedia/gstreamer/gst-plugins.inc b/recipes-multimedia/gstreamer/gst-plugins.inc new file mode 100644 index 0000000000..cd3e0a0a95 --- /dev/null +++ b/recipes-multimedia/gstreamer/gst-plugins.inc @@ -0,0 +1,41 @@ +DESCRIPTION = "Plugins for GStreamer" +HOMEPAGE = "http://gstreamer.freedesktop.org/" +BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer" +SECTION = "multimedia" +PRIORITY = "optional" +DEPENDS = "gstreamer" + +inherit autotools pkgconfig + +SRC_URI = "http://gstreamer.freedesktop.org/src/${PN}/${PN}-${PV}.tar.bz2" + +EXTRA_OECONF = "--disable-valgrind --disable-debug --disable-examples " + +acpaths = "-I ${S}/common/m4 -I ${S}/m4" + +LIBV = "0.10" +#FILES_${PN} += "${libdir}/gstreamer-${LIBV}/*.so" +#FILES_${PN}-dev += "${libdir}/gstreamer-${LIBV}/*.la ${libdir}/gstreamer-${LIBV}/*.a" +FILES_${PN}-dbg += "${libdir}/gstreamer-${LIBV}/.debug" + +PACKAGES_DYNAMIC = "${PN}-*" + +# orc.m4 calls pkg-config ----variable=orcc orc-0.4 to get the path to orcc, +# resulting in /usr/bin/orcc. Force it to use the staged orcc. +do_configure_append() { + for i in $(find ${S} -name "Makefile") ; do + sed -i -e s:${bindir}/orcc:${STAGING_BINDIR_NATIVE}/orcc:g $i + done +} + +python populate_packages_prepend () { + gst_libdir = bb.data.expand('${libdir}/gstreamer-${LIBV}', d) + postinst = bb.data.getVar('plugin_postinst', d, 1) + +# Can't package separate debug packages yet +# 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) + 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)) + 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)) +} + +ALLOW_EMPTY = "1" -- cgit 1.2.3-korg