diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-08-24 21:46:21 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-08-25 23:08:11 -0700 |
| commit | 07fd046936d3d74c885bfe62de46c593ea502d05 (patch) | |
| tree | ab14a2f6045e49087a030dada3058c9c5aa0b294 /meta-multimedia/recipes-connectivity/rygel/rygel_0.40.4.bb | |
| parent | 6147241ebe971737c6e4a922c09dda4163befa66 (diff) | |
| download | meta-openembedded-07fd046936d3d74c885bfe62de46c593ea502d05.tar.gz | |
rygel: Upgrade to 0.40.4
Switch to meson build system
Fix build with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-multimedia/recipes-connectivity/rygel/rygel_0.40.4.bb')
| -rw-r--r-- | meta-multimedia/recipes-connectivity/rygel/rygel_0.40.4.bb | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-connectivity/rygel/rygel_0.40.4.bb b/meta-multimedia/recipes-connectivity/rygel/rygel_0.40.4.bb new file mode 100644 index 0000000000..8bc8767d8f --- /dev/null +++ b/meta-multimedia/recipes-connectivity/rygel/rygel_0.40.4.bb | |||
| @@ -0,0 +1,93 @@ | |||
| 1 | SUMMARY = "A UPnP AV media server and renderer" | ||
| 2 | DESCRIPTION = "Rygel is a home media solution (UPnP AV MediaServer) that \ | ||
| 3 | allow you to easily share audio, video and pictures to other devices. \ | ||
| 4 | Additionally, media player software may use Rygel to become a MediaRenderer \ | ||
| 5 | that may be controlled remotely by a UPnP or DLNA Controller." | ||
| 6 | HOMEPAGE = "http://live.gnome.org/Rygel" | ||
| 7 | |||
| 8 | LICENSE = "LGPL-2.1-only" | ||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | ||
| 10 | |||
| 11 | DEPENDS = "libxml2 glib-2.0 gssdp gupnp gupnp-av gupnp-dlna gstreamer1.0 \ | ||
| 12 | gstreamer1.0-plugins-base libgee libsoup-2.4 libmediaart-2.0 \ | ||
| 13 | libunistring sqlite3 intltool-native gst-editing-services" | ||
| 14 | |||
| 15 | RDEPENDS:${PN} = "gstreamer1.0-plugins-base-playback shared-mime-info" | ||
| 16 | RRECOMMENDS:${PN} = "rygel-plugin-media-export" | ||
| 17 | |||
| 18 | inherit gnomebase features_check vala gobject-introspection gettext systemd meson | ||
| 19 | |||
| 20 | # gobject-introspection is mandatory for libmediaart-2.0 and cannot be configured | ||
| 21 | REQUIRED_DISTRO_FEATURES = "gobject-introspection-data" | ||
| 22 | |||
| 23 | SRC_URI[archive.sha256sum] = "736d8adbe8615f6cbc8fcfff9845dc985fd10e16629da236b4b52dbedf0a348b" | ||
| 24 | |||
| 25 | GNOMEBASEBUILDCLASS = "meson" | ||
| 26 | GIR_MESON_ENABLE_FLAG = 'enabled' | ||
| 27 | GIR_MESON_DISABLE_FLAG = 'disabled' | ||
| 28 | |||
| 29 | EXTRA_OEMESON = "-Dengines=gstreamer -Dplugins=${@strip_comma('${RYGEL_PLUGINS}')}" | ||
| 30 | PACKAGECONFIG:append = "${@bb.utils.contains("DISTRO_FEATURES", "x11", " gtk+3", "", d)}" | ||
| 31 | |||
| 32 | PACKAGECONFIG ?= "external mpris ruih media-export gst-launch" | ||
| 33 | |||
| 34 | PACKAGECONFIG[external] = "" | ||
| 35 | PACKAGECONFIG[mpris] = "" | ||
| 36 | PACKAGECONFIG[ruih] = "" | ||
| 37 | PACKAGECONFIG[media-export] = "" | ||
| 38 | PACKAGECONFIG[gst-launch] = "" | ||
| 39 | PACKAGECONFIG[lms] = "" | ||
| 40 | PACKAGECONFIG[tracker3] = "" | ||
| 41 | PACKAGECONFIG[gtk+3] = ",-Dgtk=false,gtk+3" | ||
| 42 | |||
| 43 | RYGEL_PLUGINS = "" | ||
| 44 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'external', ',external', '', d)}" | ||
| 45 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'mpris', ',mpris', '', d)}" | ||
| 46 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'ruih', ',ruih', '', d)}" | ||
| 47 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'gst-launch', ',gst-launch', '', d)}" | ||
| 48 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'lms', ',lms', '', d)}" | ||
| 49 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'media-export', ',media-export', '', d)}" | ||
| 50 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'tracker3', ',tracker3', '', d)}" | ||
| 51 | RYGEL_PLUGINS:append ="${@bb.utils.contains('PACKAGECONFIG', 'playbin', ',playbin', '', d)}" | ||
| 52 | |||
| 53 | LIBV = "2.6" | ||
| 54 | |||
| 55 | CFLAGS:append:toolchain-clang = " -Wno-error=int-conversion" | ||
| 56 | |||
| 57 | def strip_comma(s): | ||
| 58 | return s.strip(',') | ||
| 59 | |||
| 60 | do_install:append() { | ||
| 61 | # Remove .la files for loadable modules | ||
| 62 | rm -f ${D}/${libdir}/rygel-${LIBV}/engines/*.la | ||
| 63 | rm -f ${D}/${libdir}/rygel-${LIBV}/plugins/*.la | ||
| 64 | if [ -e ${D}${nonarch_libdir}/systemd/user/rygel.service ]; then | ||
| 65 | mkdir -p ${D}${systemd_unitdir}/system | ||
| 66 | mv ${D}${nonarch_libdir}/systemd/user/rygel.service ${D}${systemd_unitdir}/system | ||
| 67 | rmdir --ignore-fail-on-non-empty ${D}${nonarch_libdir}/systemd/user \ | ||
| 68 | ${D}${nonarch_libdir}/systemd \ | ||
| 69 | ${D}${nonarch_libdir} | ||
| 70 | fi | ||
| 71 | } | ||
| 72 | |||
| 73 | FILES:${PN} += "${libdir}/rygel-${LIBV}/engines ${datadir}/dbus-1 ${datadir}/icons" | ||
| 74 | FILES:${PN}-dbg += "${libdir}/rygel-${LIBV}/engines/.debug ${libdir}/rygel-${LIBV}/plugins/.debug" | ||
| 75 | |||
| 76 | PACKAGES += "${PN}-meta" | ||
| 77 | ALLOW_EMPTY:${PN}-meta = "1" | ||
| 78 | |||
| 79 | PACKAGES_DYNAMIC = "${PN}-plugin-*" | ||
| 80 | |||
| 81 | SYSTEMD_SERVICE:${PN} = "rygel.service" | ||
| 82 | |||
| 83 | python populate_packages:prepend () { | ||
| 84 | rygel_libdir = d.expand('${libdir}/rygel-${LIBV}') | ||
| 85 | postinst = d.getVar('plugin_postinst') | ||
| 86 | pkgs = [] | ||
| 87 | |||
| 88 | 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}')) | ||
| 89 | 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}')) | ||
| 90 | |||
| 91 | metapkg = d.getVar('PN') + '-meta' | ||
| 92 | d.setVar('RDEPENDS:' + metapkg, ' '.join(pkgs)) | ||
| 93 | } | ||
