blob: 4fbdce08678e879293cf1f565e1d46bc17950c04 [file] [log] [blame]
Patrick Williamsac13d5f2023-11-24 18:59:46 -06001SUMMARY = "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
Patrick Williams169d7bc2024-01-05 11:33:25 -060021REQUIRED_DISTRO_FEATURES = "gobject-introspection-data x11"
Patrick Williamsac13d5f2023-11-24 18:59:46 -060022
23SRC_URI[archive.sha256sum] = "6310dfaa2d332b66119b9b020fad6a4bd27d9bc61faf780ca5ca0b62813303f7"
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"
32
33PACKAGECONFIG[external] = ""
34PACKAGECONFIG[mpris] = ""
35PACKAGECONFIG[ruih] = ""
36PACKAGECONFIG[media-export] = ""
37PACKAGECONFIG[gst-launch] = ""
38PACKAGECONFIG[lms] = ""
39PACKAGECONFIG[tracker3] = ""
Patrick Williams169d7bc2024-01-05 11:33:25 -060040PACKAGECONFIG[gtk+3] = ",-Dgtk=disabled,gtk+3"
Patrick Williamsac13d5f2023-11-24 18:59:46 -060041
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 if [ -e ${D}${nonarch_libdir}/systemd/user/rygel.service ]; then
64 mkdir -p ${D}${systemd_unitdir}/system
65 mv ${D}${nonarch_libdir}/systemd/user/rygel.service ${D}${systemd_unitdir}/system
66 rmdir --ignore-fail-on-non-empty ${D}${nonarch_libdir}/systemd/user \
67 ${D}${nonarch_libdir}/systemd \
68 ${D}${nonarch_libdir}
69 fi
70}
71
72FILES:${PN} += "${libdir}/rygel-${LIBV}/engines ${datadir}/dbus-1 ${datadir}/icons"
73FILES:${PN}-dbg += "${libdir}/rygel-${LIBV}/engines/.debug ${libdir}/rygel-${LIBV}/plugins/.debug"
74
75PACKAGES += "${PN}-meta"
76ALLOW_EMPTY:${PN}-meta = "1"
77
78PACKAGES_DYNAMIC = "${PN}-plugin-*"
79
80SYSTEMD_SERVICE:${PN} = "rygel.service"
81
82python populate_packages:prepend () {
83 rygel_libdir = d.expand('${libdir}/rygel-${LIBV}')
84 postinst = d.getVar('plugin_postinst')
85 pkgs = []
86
87 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}'))
88 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}'))
89
90 metapkg = d.getVar('PN') + '-meta'
91 d.setVar('RDEPENDS:' + metapkg, ' '.join(pkgs))
92}