Skip to contentSkip to conversation

rygel: Add recipe

PATCH Superseded Manuel Bachmann 2 participants 3 messages Oct 8, 2015 – Oct 12, 2015

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 3/3 rygel: Add recipe

Rygel is a UPnP Audio-Video media server, that allows to share media files to other devices. It can also become a MediaRenderer controlled by UPnP or DLNA Controllers.

Rygel makes use of the GStreamer library to recognize and index media files. UPnp clients will then be able to browse through them with the aid of metadata (artist, date...).

We do not propose to build without GStreamer support (because then if cannot parse any actual media file, and this is pointless), and for the same reason always include the GStreamer engine in the main package ; but allow separate packages for plugins.

(disable tracker plugin for now, because it pulls 3 layers and needs us to have a PREFERRED udev provider, which is a bit extreme for a first version)

Author: Manuel Bachmann <[email protected]>
Author: Ross Burton <[email protected]>

---
 .../recipes-connectivity/rygel/rygel_0.26.1.bb     | 59 ++++++++++++++++++++++
 1 file changed, 59 insertions(+)
 create mode 100644 meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +59 -0
new file mode 100644
index 0000000..3862b1e
@@ -0,0 +1,59 @@
+SUMMARY = "A UPnP AV media server and renderer"
+DESCRIPTION = "Rygel is a home media solution (UPnP AV MediaServer) that \
+allow you to easily share audio, video and pictures to other devices. \
+Additionally, media player software may use Rygel to become a MediaRenderer \
+that may be controlled remotely by a UPnP or DLNA Controller."
+HOMEPAGE = "http://live.gnome.org/Rygel"
+
+LICENSE = "LGPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
+                    file://src/rygel/rygel-main.vala;endline=25;md5=a4cce4d389da1c1638fe68d07ae9d811"
+
+DEPENDS = "libxml2 glib-2.0 gssdp gupnp gupnp-av gupnp-dlna gstreamer1.0 gstreamer1.0-plugins-base ossp-uuid libgee libsoup-2.4 libmediaart-2.0"
+RDEPENDS_${PN} = "gstreamer1.0-plugins-base-playback shared-mime-info"
+
+GNOME_COMPRESS_TYPE = "xz"
+SRC_URI[archive.md5sum] = "f182d54913a528bb5b4fb2f291aca0fc"
+SRC_URI[archive.sha256sum] = "390740609e34399b886ddb9a8f7eca25055ad72048dfdd869edf02999b1e1d8f"
+
+inherit gnomebase
+
+EXTRA_OECONF = "--disable-introspection --disable-tracker-plugin --with-media-engine=gstreamer"
+
+PACKAGECONFIG ?= "external mpris mediathek ruih media-export gst-launch gtk+3"
+PACKAGECONFIG[external] = "--enable-external-plugin,--disable-external-plugin"
+PACKAGECONFIG[mpris] = "--enable-mpris-plugin,--disable-mpris-plugin"
+PACKAGECONFIG[mediathek] = "--enable-mediathek-plugin,--disable-mediathek-plugin"
+PACKAGECONFIG[ruih] = "--enable-ruih-plugin,--disable-ruih-plugin"
+PACKAGECONFIG[media-export] = "--enable-media-export-plugin,--disable-media-export-plugin,sqlite3"
+PACKAGECONFIG[gst-launch] = "--enable-gst-launch-plugin,--disable-gst-launch-plugin"
+PACKAGECONFIG[gtk+3] = ",--without-ui,gtk+3"
+
+LIBV = "2.6"
+
+do_install_append() {
+       # Remove .la files for loadable modules
+       rm -f ${D}/${libdir}/rygel-${LIBV}/engines/*.la
+       rm -f ${D}/${libdir}/rygel-${LIBV}/plugins/*.la
+}
+
+FILES_${PN} += "${libdir}/rygel-${LIBV}/engines ${datadir}/dbus-1 ${datadir}/icons"
+FILES_${PN}-dev += "${datadir}/vala"
+FILES_${PN}-dbg += "${libdir}/rygel-${LIBV}/engines/.debug ${libdir}/rygel-${LIBV}/plugins/.debug"
+
+PACKAGES += "${PN}-meta"
+ALLOW_EMPTY_${PN}-meta = "1"
+
+PACKAGES_DYNAMIC = "${PN}-plugin-*"
+
+python populate_packages_prepend () {
+    rygel_libdir = d.expand('${libdir}/rygel-${LIBV}')
+    postinst = d.getVar('plugin_postinst', True)
+    pkgs = []
+
+    pkgs += do_split_packages(d, oe.path.join(rygel_libdir, "plugins"), 'librygel-(.*)\.so$', d.expand('${PN}-plugin-%s'), 'Rygel plugin for %s', postinst=postinst, extra_depends=d.expand('${PN}'))
+    pkgs += do_split_packages(d, oe.path.join(rygel_libdir, "plugins"), '(.*)\.plugin$', d.expand('${PN}-plugin-%s'), 'Rygel plugin for %s', postinst=postinst, extra_depends=d.expand('${PN}'))
+
+    metapkg = d.getVar('PN', True) + '-meta'
+    d.setVar('RDEPENDS_' + metapkg, ' '.join(pkgs))
+}
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 40 lines · Manuel Bachmann

Rygel is a UPnP Audio-Video media server, that allows to share media files to other devices. It can also become a MediaRenderer controlled by UPnP or DLNA Controllers.

Rygel makes use of the GStreamer library to recognize and index media files. UPnp clients will then be able to browse through them with the aid of metadata (artist, date...).

We do not propose to build without GStreamer support (because then if cannot parse any actual media file, and this is pointless), and for the same reason always include the GStreamer engine in the main package ; but allow separate packages for plugins.

(disable tracker plugin for now, because it pulls 3 layers and needs us to have a PREFERRED udev provider, which is a bit extreme for a first version)

Author: Manuel Bachmann <[email protected]>
Author: Ross Burton <[email protected]>
---
.../recipes-connectivity/rygel/rygel_0.26.1.bb | 59 ++++++++++++++++++++++

1 file changed, 59 insertions(+)

create mode 100644 meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +5 -0
new file mode 100644
index 0000000..3862b1e
@@ -0,0 +1,59 @@
+SUMMARY = "A UPnP AV media server and renderer"
+DESCRIPTION = "Rygel is a home media solution (UPnP AV MediaServer) that \
+allow you to easily share audio, video and pictures to other devices. \
+Additionally, media player software may use Rygel to become a MediaRenderer \
+that may be controlled remotely by a UPnP or DLNA Controller."

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb line 15

Quoted 10 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +10 -0
+HOMEPAGE = "http://live.gnome.org/Rygel"
+
+LICENSE = "LGPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
+                    file://src/rygel/rygel-main.vala;endline=25;md5=a4cce4d389da1c1638fe68d07ae9d811"
+
+DEPENDS = "libxml2 glib-2.0 gssdp gupnp gupnp-av gupnp-dlna gstreamer1.0 gstreamer1.0-plugins-base ossp-uuid libgee libsoup-2.4 libmediaart-2.0"
+RDEPENDS_${PN} = "gstreamer1.0-plugins-base-playback shared-mime-info"
+
+GNOME_COMPRESS_TYPE = “xz"

isn’t this default ?

Quoted 16 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +16 -0
+SRC_URI[archive.md5sum] = "f182d54913a528bb5b4fb2f291aca0fc"
+SRC_URI[archive.sha256sum] = "390740609e34399b886ddb9a8f7eca25055ad72048dfdd869edf02999b1e1d8f"
+
+inherit gnomebase
+
+EXTRA_OECONF = "--disable-introspection --disable-tracker-plugin --with-media-engine=gstreamer"
+
+PACKAGECONFIG ?= "external mpris mediathek ruih media-export gst-launch gtk+3"
+PACKAGECONFIG[external] = "--enable-external-plugin,--disable-external-plugin"
+PACKAGECONFIG[mpris] = "--enable-mpris-plugin,--disable-mpris-plugin"
+PACKAGECONFIG[mediathek] = "--enable-mediathek-plugin,--disable-mediathek-plugin"
+PACKAGECONFIG[ruih] = "--enable-ruih-plugin,--disable-ruih-plugin"
+PACKAGECONFIG[media-export] = "--enable-media-export-plugin,--disable-media-export-plugin,sqlite3"
+PACKAGECONFIG[gst-launch] = "--enable-gst-launch-plugin,--disable-gst-launch-plugin"
+PACKAGECONFIG[gtk+3] = ",--without-ui,gtk+3"
+

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb

Quoted 10 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +10 -0
+LIBV = "2.6"
+
+do_install_append() {
+       # Remove .la files for loadable modules
+       rm -f ${D}/${libdir}/rygel-${LIBV}/engines/*.la
+       rm -f ${D}/${libdir}/rygel-${LIBV}/plugins/*.la
+}
+
+FILES_${PN} += "${libdir}/rygel-${LIBV}/engines ${datadir}/dbus-1 ${datadir}/icons"
+FILES_${PN}-dev += "${datadir}/vala”

did you miss to add vala in DEPENDS ?

Quoted 26 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +18 -1
+FILES_${PN}-dbg += "${libdir}/rygel-${LIBV}/engines/.debug ${libdir}/rygel-${LIBV}/plugins/.debug"
+
+PACKAGES += "${PN}-meta"
+ALLOW_EMPTY_${PN}-meta = "1"
+
+PACKAGES_DYNAMIC = "${PN}-plugin-*"
+
+python populate_packages_prepend () {
+    rygel_libdir = d.expand('${libdir}/rygel-${LIBV}')
+    postinst = d.getVar('plugin_postinst', True)
+    pkgs = []
+
+    pkgs += do_split_packages(d, oe.path.join(rygel_libdir, "plugins"), 'librygel-(.*)\.so$', d.expand('${PN}-plugin-%s'), 'Rygel plugin for %s', postinst=postinst, extra_depends=d.expand('${PN}'))
+    pkgs += do_split_packages(d, oe.path.join(rygel_libdir, "plugins"), '(.*)\.plugin$', d.expand('${PN}-plugin-%s'), 'Rygel plugin for %s', postinst=postinst, extra_depends=d.expand('${PN}'))
+
+    metapkg = d.getVar('PN', True) + '-meta'
+    d.setVar('RDEPENDS_' + metapkg, ' '.join(pkgs))
+}
--

1.8.3.1

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

#2 lore raw

Hi Khem,

Good remark, thanks, I wasn't inheriting vala !

For this and for the "media-service-upnp" build problem noticed by Martin, sending a whole new series right now.

Regards,

*Manuel Bachmann, Graphics Engineer www.iot.bzh <http://iot.bzh> *

2015-10-09 9:18 GMT+02:00 Khem Raj <[email protected]>:

Quoted 140 lines
Quoted 2 lines

On Oct 8, 2015, at 1:10 AM, Manuel Bachmann <[email protected]>

Quoted 19 lines · wrote:

Rygel is a UPnP Audio-Video media server, that allows to share media files to other devices. It can also become a MediaRenderer controlled by UPnP or DLNA Controllers.

Rygel makes use of the GStreamer library to recognize and index media files. UPnp clients will then be able to browse through them with the aid of metadata (artist, date...).

We do not propose to build without GStreamer support (because then if cannot parse any actual media file, and this is pointless), and for the same reason always include the GStreamer engine in the main package ; but allow separate packages for plugins.

(disable tracker plugin for now, because it pulls 3 layers and needs us to have a PREFERRED udev provider, which is a bit extreme for a first version)

Quoted 5 lines

Author: Manuel Bachmann <[email protected]>
Author: Ross Burton <[email protected]>
---
.../recipes-connectivity/rygel/rygel_0.26.1.bb | 59

++++++++++++++++++++++

Quoted 2 lines
1 file changed, 59 insertions(+)

create mode 100644 meta-multimedia/recipes-connectivity/rygel/

rygel_0.26.1.bb

Review

Quoted 2 lines
(quoted diff) +0 -0

b/meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb line 2

Quoted 7 lines

new file mode 100644
index 0000000..3862b1e

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +2 -0
@@ -0,0 +1,59 @@
+SUMMARY = "A UPnP AV media server and renderer"
+DESCRIPTION = "Rygel is a home media solution (UPnP AV MediaServer)

that \

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb line 4

Quoted 2 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +2 -0
+allow you to easily share audio, video and pictures to other devices. \
+Additionally, media player software may use Rygel to become a

MediaRenderer \

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb

Quoted 5 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +5 -0
+that may be controlled remotely by a UPnP or DLNA Controller."
+HOMEPAGE = "http://live.gnome.org/Rygel"
+
+LICENSE = "LGPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2

\

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb line 10

Quoted 1 line
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +1 -0
+

file://src/rygel/rygel-main.vala;endline=25;md5=a4cce4d389da1c1638fe68d07ae9d811"

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb line 12

Quoted 2 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +2 -0
+
+DEPENDS = "libxml2 glib-2.0 gssdp gupnp gupnp-av gupnp-dlna

gstreamer1.0 gstreamer1.0-plugins-base ossp-uuid libgee libsoup-2.4 libmediaart-2.0"

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb

Quoted 3 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +3 -0
+RDEPENDS_${PN} = "gstreamer1.0-plugins-base-playback shared-mime-info"
+
+GNOME_COMPRESS_TYPE = “xz"

isn’t this default ?

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb line 17

Quoted 2 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +2 -0
+SRC_URI[archive.md5sum] = "f182d54913a528bb5b4fb2f291aca0fc"
+SRC_URI[archive.sha256sum] =

"390740609e34399b886ddb9a8f7eca25055ad72048dfdd869edf02999b1e1d8f"

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb

Quoted 4 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +4 -0
+
+inherit gnomebase
+
+EXTRA_OECONF = "--disable-introspection --disable-tracker-plugin

--with-media-engine=gstreamer"

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb line 23

Quoted 2 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +2 -0
+
+PACKAGECONFIG ?= "external mpris mediathek ruih media-export gst-launch

gtk+3"

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb line 24

Quoted 1 line
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +1 -0
+PACKAGECONFIG[external] =

"--enable-external-plugin,--disable-external-plugin"

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb line 26

Quoted 2 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +2 -0
+PACKAGECONFIG[mpris] = "--enable-mpris-plugin,--disable-mpris-plugin"
+PACKAGECONFIG[mediathek] =

"--enable-mediathek-plugin,--disable-mediathek-plugin"

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb line 28

Quoted 2 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +2 -0
+PACKAGECONFIG[ruih] = "--enable-ruih-plugin,--disable-ruih-plugin"
+PACKAGECONFIG[media-export] =

"--enable-media-export-plugin,--disable-media-export-plugin,sqlite3"

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb line 29

Quoted 1 line
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +1 -0
+PACKAGECONFIG[gst-launch] =

"--enable-gst-launch-plugin,--disable-gst-launch-plugin"

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb

Quoted 11 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +11 -0
+PACKAGECONFIG[gtk+3] = ",--without-ui,gtk+3"
+
+LIBV = "2.6"
+
+do_install_append() {
+       # Remove .la files for loadable modules
+       rm -f ${D}/${libdir}/rygel-${LIBV}/engines/*.la
+       rm -f ${D}/${libdir}/rygel-${LIBV}/plugins/*.la
+}
+
+FILES_${PN} += "${libdir}/rygel-${LIBV}/engines ${datadir}/dbus-1

${datadir}/icons"

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb line 41

Quoted 1 line
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +1 -0
+FILES_${PN}-dev += "${datadir}/vala”

did you miss to add vala in DEPENDS ?

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb line 42

Quoted 1 line
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +1 -0
+FILES_${PN}-dbg += "${libdir}/rygel-${LIBV}/engines/.debug

${libdir}/rygel-${LIBV}/plugins/.debug"

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb

Quoted 12 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +12 -0
+
+PACKAGES += "${PN}-meta"
+ALLOW_EMPTY_${PN}-meta = "1"
+
+PACKAGES_DYNAMIC = "${PN}-plugin-*"
+
+python populate_packages_prepend () {
+    rygel_libdir = d.expand('${libdir}/rygel-${LIBV}')
+    postinst = d.getVar('plugin_postinst', True)
+    pkgs = []
+
+    pkgs += do_split_packages(d, oe.path.join(rygel_libdir, "plugins"),

'librygel-(.*)\.so$', d.expand('${PN}-plugin-%s'), 'Rygel plugin for %s', postinst=postinst, extra_depends=d.expand('${PN}'))

meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb line 55

Quoted 1 line
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +1 -0
+    pkgs += do_split_packages(d, oe.path.join(rygel_libdir, "plugins"),

'(.*)\.plugin$', d.expand('${PN}-plugin-%s'), 'Rygel plugin for %s', postinst=postinst, extra_depends=d.expand('${PN}'))

Quoted 7 lines
meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb new file +4 -1
+
+    metapkg = d.getVar('PN', True) + '-meta'
+    d.setVar('RDEPENDS_' + metapkg, ' '.join(pkgs))
+}
--

1.8.3.1

Quoted 5 lines

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

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