summaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-connectivity/rygel/rygel_0.42.5.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-multimedia/recipes-connectivity/rygel/rygel_0.42.5.bb')
-rw-r--r--meta-multimedia/recipes-connectivity/rygel/rygel_0.42.5.bb83
1 files changed, 83 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-connectivity/rygel/rygel_0.42.5.bb b/meta-multimedia/recipes-connectivity/rygel/rygel_0.42.5.bb
new file mode 100644
index 0000000000..e79bd77a54
--- /dev/null
+++ b/meta-multimedia/recipes-connectivity/rygel/rygel_0.42.5.bb
@@ -0,0 +1,83 @@
1SUMMARY = "A UPnP AV media server and renderer"
2DESCRIPTION = "Rygel is a home media solution (UPnP AV MediaServer) that \
3allow you to easily share audio, video and pictures to other devices. \
4Additionally, media player software may use Rygel to become a MediaRenderer \
5that may be controlled remotely by a UPnP or DLNA Controller."
6HOMEPAGE = "http://live.gnome.org/Rygel"
7
8LICENSE = "LGPL-2.1-only"
9LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
10
11DEPENDS = "libxml2 glib-2.0 gssdp gupnp gupnp-av gupnp-dlna gstreamer1.0 \
12 gstreamer1.0-plugins-base libgee libsoup libmediaart-2.0 \
13 libunistring sqlite3 intltool-native gst-editing-services"
14
15RDEPENDS:${PN} = "gstreamer1.0-plugins-base-playback shared-mime-info"
16RRECOMMENDS:${PN} = "rygel-plugin-media-export"
17
18inherit gnomebase features_check vala gobject-introspection gettext systemd
19
20# gobject-introspection is mandatory for libmediaart-2.0 and cannot be configured
21REQUIRED_DISTRO_FEATURES = "gobject-introspection-data x11"
22
23SRC_URI[archive.sha256sum] = "1133602d2e6710aade6b22aa98d93384c8d56396f344763413e96e0110b7d89f"
24
25GIR_MESON_ENABLE_FLAG = 'enabled'
26GIR_MESON_DISABLE_FLAG = 'disabled'
27
28EXTRA_OEMESON = "-Dengines=gstreamer -Dplugins=${@strip_comma('${RYGEL_PLUGINS}')}"
29PACKAGECONFIG:append = "${@bb.utils.contains("DISTRO_FEATURES", "x11", " gtk+3", "", d)}"
30
31PACKAGECONFIG ?= "external mpris ruih gst-launch media-export"
32
33PACKAGECONFIG[external] = ""
34PACKAGECONFIG[mpris] = ""
35PACKAGECONFIG[ruih] = ""
36PACKAGECONFIG[media-export] = ""
37PACKAGECONFIG[gst-launch] = ""
38PACKAGECONFIG[lms] = ""
39PACKAGECONFIG[tracker3] = ""
40PACKAGECONFIG[gtk+3] = ",-Dgtk=disabled,gtk+3"
41
42RYGEL_PLUGINS = ""
43RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'external', ',external', '', d)}"
44RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'mpris', ',mpris', '', d)}"
45RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'ruih', ',ruih', '', d)}"
46RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'gst-launch', ',gst-launch', '', d)}"
47RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'lms', ',lms', '', d)}"
48RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'media-export', ',media-export', '', d)}"
49RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'tracker3', ',tracker3', '', d)}"
50RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'playbin', ',playbin', '', d)}"
51
52LIBV = "2.8"
53
54CFLAGS:append:toolchain-clang = " -Wno-error=int-conversion"
55
56def strip_comma(s):
57 return s.strip(',')
58
59do_install:append() {
60 # Remove .la files for loadable modules
61 rm -f ${D}/${libdir}/rygel-${LIBV}/engines/*.la
62 rm -f ${D}/${libdir}/rygel-${LIBV}/plugins/*.la
63}
64
65FILES:${PN} += "${libdir}/rygel-${LIBV}/engines ${systemd_user_unitdir} ${datadir}/dbus-1 ${datadir}/icons"
66FILES:${PN}-dbg += "${libdir}/rygel-${LIBV}/engines/.debug ${libdir}/rygel-${LIBV}/plugins/.debug"
67
68PACKAGES += "${PN}-meta"
69ALLOW_EMPTY:${PN}-meta = "1"
70
71PACKAGES_DYNAMIC = "${PN}-plugin-*"
72
73python populate_packages:prepend () {
74 rygel_libdir = d.expand('${libdir}/rygel-${LIBV}')
75 postinst = d.getVar('plugin_postinst')
76 pkgs = []
77
78 pkgs += do_split_packages(d, oe.path.join(rygel_libdir, "plugins"), r'librygel-(.*)\.so$', d.expand('${PN}-plugin-%s'), 'Rygel plugin for %s', postinst=postinst, extra_depends=d.expand('${PN}'))
79 pkgs += do_split_packages(d, oe.path.join(rygel_libdir, "plugins"), r'(.*)\.plugin$', d.expand('${PN}-plugin-%s'), 'Rygel plugin for %s', postinst=postinst, extra_depends=d.expand('${PN}'))
80
81 metapkg = d.getVar('PN') + '-meta'
82 d.setVar('RDEPENDS:' + metapkg, ' '.join(pkgs))
83}