Skip to contentSkip to conversation

libcanberra: upgrade and add packageconfig for gstreamer and gtk

PATCH Superseded [email protected] 3 participants 4 messages Jun 5, 2015 – Jun 10, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libcanberra: upgrade and add packageconfig for gstreamer and gtk

From: Jackie Huang <[email protected]>

- GStreamer 0.10 has been removed meta-openembedded/meta-multimedia and 1.0 left in oe-core, so upgrade libcanberra to the version that support GStreamer 1.0

- GStreamer and gtk support for libcanberra are optional, add PACKAGECONFIG for them and use DISTRO_FEATURES to decide if they are needed.

---
 .../{libcanberra_0.29.bb => libcanberra_0.30.bb}           | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
 rename meta-oe/recipes-support/libcanberra/{libcanberra_0.29.bb => libcanberra_0.30.bb} (80%)
meta-oe/recipes-support/libcanberra/libcanberra_0.30.bb renamed from meta-oe/recipes-support/libcanberra/libcanberra_0.29.bb +8 -6
similarity index 80%
rename from meta-oe/recipes-support/libcanberra/libcanberra_0.29.bb
rename to meta-oe/recipes-support/libcanberra/libcanberra_0.30.bb
index 0f00b20..959b88f 100644
@@ -4,7 +4,7 @@ LICENSE = "LGPLv2.1+"
 LIC_FILES_CHKSUM = "file://LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \
                     file://src/canberra.h;beginline=7;endline=24;md5=c616c687cf8da540a14f917e0d23ab03"
 
-DEPENDS = "gstreamer gtk+ gtk+3 libtool libvorbis"
+DEPENDS = "libtool libvorbis"
 
 inherit autotools gtk-doc
 
@@ -12,24 +12,26 @@ SRC_URI = " \
     http://0pointer.de/lennart/projects/${BPN}/${BPN}-${PV}.tar.xz \
     file://0001-build-gtk-and-gtk3-version-for-canberra_gtk_play.patch \
 "
-SRC_URI[md5sum] = "2594093a5d61047bd9cc87e955f86df8"
-SRC_URI[sha256sum] = "127a5ef07805856d63758e5180ebfb241d1f80094fd301c287591a15b8cfcd72"
+SRC_URI[md5sum] = "34cb7e4430afaf6f447c4ebdb9b42072"
+SRC_URI[sha256sum] = "c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72"
 
 EXTRA_OECONF = "\
     --enable-null \
-    --enable-gstreamer \
     --disable-oss \
-    --enable-gtk \
-    --enable-gtk3 \
     --disable-tdb \
     --disable-lynx \
 "
 
 PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','alsa','alsa','',d)} \
                    ${@base_contains('DISTRO_FEATURES','pulseaudio','pulseaudio','',d)} \
+                   ${@base_contains('DISTRO_FEATURES','x11','gtk gtk3','',d)} \
+                   ${@base_contains('DISTRO_FEATURES','gstreamer','gstreamer','',d)} \
 "
 PACKAGECONFIG[alsa] = "--enable-alsa, --disable-alsa, alsa-lib"
 PACKAGECONFIG[pulseaudio] = "--enable-pulse, --disable-pulse, pulseaudio"
+PACKAGECONFIG[gstreamer] = "--enable-gstreamer, --disable-gstreamer, gstreamer1.0"
+PACKAGECONFIG[gtk] = "--enable-gtk, --disable-gtk, gtk+"
+PACKAGECONFIG[gtk3] = "--enable-gtk3, --disable-gtk3, gtk+3"
 
 python populate_packages_prepend() {
     plugindir = d.expand('${libdir}/${BPN}-${PV}/')
Signature · 1 line
1.9.1
#1 lore raw
Quoted 3 lines · On 5 June 2015 at 10:26, <[email protected]> wrote:

+
${@base_contains('DISTRO_FEATURES','gstreamer','gstreamer','',d)} \

Lets not invent distro features for no reason.

Ross

#2 lore raw
Quoted 10 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Burton, Ross
Sent: Friday, June 05, 2015 5:48 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] libcanberra: upgrade and add packageconfig for gstreamer and gtk

Quoted 7 lines
Quoted 3 lines · On 5 June 2015 at 10:26, <[email protected]> wrote:

+
${@base_contains('DISTRO_FEATURES','gstreamer','gstreamer','',d)} \

Lets not invent distro features for no reason.

Ok, so I will remove this and left gstreamer not enabled by default, someone can enable it when needed, does that make sense?

Thanks,
Jackie

Quoted 7 lines

Ross
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 16 lines · Jie (Jackie)
Quoted 16 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] On Behalf Of Burton, Ross
Sent: Friday, June 05, 2015 5:48 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH] libcanberra: upgrade and add packageconfig for gstreamer and gtk

Quoted 3 lines · On 5 June 2015 at 10:26, <[email protected]> wrote:

+
${@base_contains('DISTRO_FEATURES','gstreamer','gstreamer','',d)} \

Quoted 7 lines
Quoted 1 line

Lets not invent distro features for no reason.

Ok, so I will remove this and left gstreamer not enabled by default, someone can enable it when needed, does that make sense?

Thanks,
Jackie

I think Ross is saying that you can just add a PACKAGECONFIG for gstreamer itself rather than make gstreamer a DISTRO_FEATURE. For example see: meta-efl/recipes-efl/efl/efl.inc

../Randy

Quoted 8 lines
Quoted 8 lines

Ross
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 2 lines
# Randy MacLeod. SMTS, Linux, Wind River
Direct: 613.963.1350 | 350 Terry Fox Drive, Suite 200, Ottawa, ON, Canada, K2K 2W5