diff options
| author | Carlos Rafael Giani <crg7475@mailbox.org> | 2022-03-30 21:11:15 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-03-30 12:40:22 -0700 |
| commit | f3a7de2bdfa8a3e9e360ad528a3f847e4c829b78 (patch) | |
| tree | 354f848430da675f56af2e9cb63344cf36268375 /meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.4.8.bb | |
| parent | e75c865426bbd334b50b2f2b15502a51f08ca2f7 (diff) | |
| download | meta-openembedded-f3a7de2bdfa8a3e9e360ad528a3f847e4c829b78.tar.gz | |
wireplumber: Upgrade to version 0.4.9
ChangeLog can be found here:
https://gitlab.freedesktop.org/pipewire/wireplumber/-/releases/0.4.9
Remove backported fix that is already included in this version.
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.4.8.bb')
| -rw-r--r-- | meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.4.8.bb | 144 |
1 files changed, 0 insertions, 144 deletions
diff --git a/meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.4.8.bb b/meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.4.8.bb deleted file mode 100644 index ed7417c280..0000000000 --- a/meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.4.8.bb +++ /dev/null | |||
| @@ -1,144 +0,0 @@ | |||
| 1 | SUMMARY = "Session / policy manager implementation for PipeWire" | ||
| 2 | HOMEPAGE = "https://gitlab.freedesktop.org/pipewire/wireplumber" | ||
| 3 | BUGTRACKER = "https://gitlab.freedesktop.org/pipewire/wireplumber/issues" | ||
| 4 | AUTHOR = "George Kiagiadakis <george.kiagiadakis@collabora.com>" | ||
| 5 | SECTION = "multimedia" | ||
| 6 | |||
| 7 | LICENSE = "MIT" | ||
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=17d1fe479cdec331eecbc65d26bc7e77" | ||
| 9 | |||
| 10 | DEPENDS = "glib-2.0 glib-2.0-native lua pipewire \ | ||
| 11 | ${@bb.utils.contains("DISTRO_FEATURES", "gobject-introspection-data", "python3-native python3-lxml-native doxygen-native", "", d)} \ | ||
| 12 | " | ||
| 13 | |||
| 14 | SRCREV = "e14bb72dcc85e2130d0ea96768e5ae3b375a041e" | ||
| 15 | SRC_URI = "git://gitlab.freedesktop.org/pipewire/wireplumber.git;branch=master;protocol=https \ | ||
| 16 | file://90-OE-disable-session-dbus-dependent-features.lua \ | ||
| 17 | file://0001-spa-json-fix-va_list-APIs-for-different-architecture.patch \ | ||
| 18 | " | ||
| 19 | |||
| 20 | S = "${WORKDIR}/git" | ||
| 21 | |||
| 22 | inherit meson pkgconfig gobject-introspection systemd | ||
| 23 | |||
| 24 | GIR_MESON_ENABLE_FLAG = 'enabled' | ||
| 25 | GIR_MESON_DISABLE_FLAG = 'disabled' | ||
| 26 | |||
| 27 | # Enable system-lua to let wireplumber use OE's lua. | ||
| 28 | # Documentation needs python-sphinx, which is not in oe-core or meta-python2 for now. | ||
| 29 | # elogind is not (yet) available in OE, so disable support. | ||
| 30 | EXTRA_OEMESON += " \ | ||
| 31 | -Ddoc=disabled \ | ||
| 32 | -Dsystem-lua=true \ | ||
| 33 | -Delogind=disabled \ | ||
| 34 | -Dsystemd-system-unit-dir=${systemd_system_unitdir} \ | ||
| 35 | -Dsystemd-user-unit-dir=${systemd_user_unitdir} \ | ||
| 36 | -Dtests=false \ | ||
| 37 | " | ||
| 38 | |||
| 39 | PACKAGECONFIG ??= "\ | ||
| 40 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd systemd-system-service', '', d)} \ | ||
| 41 | " | ||
| 42 | |||
| 43 | PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled,systemd" | ||
| 44 | PACKAGECONFIG[systemd-system-service] = "-Dsystemd-system-service=true,-Dsystemd-system-service=false,systemd" | ||
| 45 | # "systemd-user-service" packageconfig will only install service | ||
| 46 | # files to rootfs but not enable them as systemd.bbclass | ||
| 47 | # currently lacks the feature of enabling user services. | ||
| 48 | PACKAGECONFIG[systemd-user-service] = "-Dsystemd-user-service=true,-Dsystemd-user-service=false,systemd" | ||
| 49 | |||
| 50 | PACKAGESPLITFUNCS:prepend = " split_dynamic_packages " | ||
| 51 | PACKAGESPLITFUNCS:append = " set_dynamic_metapkg_rdepends " | ||
| 52 | |||
| 53 | WP_MODULE_SUBDIR = "wireplumber-0.4" | ||
| 54 | |||
| 55 | add_custom_lua_config_scripts() { | ||
| 56 | install -m 0644 ${WORKDIR}/90-OE-disable-session-dbus-dependent-features.lua ${D}${datadir}/wireplumber/main.lua.d | ||
| 57 | } | ||
| 58 | |||
| 59 | do_install[postfuncs] += "add_custom_lua_config_scripts" | ||
| 60 | |||
| 61 | python split_dynamic_packages () { | ||
| 62 | # Create packages for each WirePlumber module. | ||
| 63 | wp_module_libdir = d.expand('${libdir}/${WP_MODULE_SUBDIR}') | ||
| 64 | do_split_packages(d, wp_module_libdir, r'^libwireplumber-module-(.*)\.so$', d.expand('${PN}-modules-%s'), 'WirePlumber %s module', extra_depends='', recursive=False) | ||
| 65 | } | ||
| 66 | |||
| 67 | python set_dynamic_metapkg_rdepends () { | ||
| 68 | import os | ||
| 69 | import oe.utils | ||
| 70 | |||
| 71 | # Go through all generated WirePlumber module packages | ||
| 72 | # (excluding the main package and the -meta package itself) | ||
| 73 | # and add them to the -meta package as RDEPENDS. | ||
| 74 | |||
| 75 | base_pn = d.getVar('PN') | ||
| 76 | |||
| 77 | wp_module_pn = base_pn + '-modules' | ||
| 78 | wp_module_metapkg = wp_module_pn + '-meta' | ||
| 79 | |||
| 80 | d.setVar('ALLOW_EMPTY:' + wp_module_metapkg, "1") | ||
| 81 | d.setVar('FILES:' + wp_module_metapkg, "") | ||
| 82 | |||
| 83 | blacklist = [ wp_module_pn, wp_module_metapkg ] | ||
| 84 | wp_module_metapkg_rdepends = [] | ||
| 85 | pkgdest = d.getVar('PKGDEST') | ||
| 86 | |||
| 87 | for pkg in oe.utils.packages_filter_out_system(d): | ||
| 88 | if pkg in blacklist: | ||
| 89 | continue | ||
| 90 | |||
| 91 | is_wp_module_pkg = pkg.startswith(wp_module_pn) | ||
| 92 | if not is_wp_module_pkg: | ||
| 93 | continue | ||
| 94 | |||
| 95 | if pkg in wp_module_metapkg_rdepends: | ||
| 96 | continue | ||
| 97 | |||
| 98 | # See if the package is empty by looking at the contents of its | ||
| 99 | # PKGDEST subdirectory. If this subdirectory is empty, then then | ||
| 100 | # package is empty as well. Empty packages do not get added to | ||
| 101 | # the meta package's RDEPENDS. | ||
| 102 | pkgdir = os.path.join(pkgdest, pkg) | ||
| 103 | if os.path.exists(pkgdir): | ||
| 104 | dir_contents = os.listdir(pkgdir) or [] | ||
| 105 | else: | ||
| 106 | dir_contents = [] | ||
| 107 | is_empty = len(dir_contents) == 0 | ||
| 108 | if not is_empty: | ||
| 109 | if is_wp_module_pkg: | ||
| 110 | wp_module_metapkg_rdepends.append(pkg) | ||
| 111 | |||
| 112 | d.setVar('RDEPENDS:' + wp_module_metapkg, ' '.join(wp_module_metapkg_rdepends)) | ||
| 113 | d.setVar('DESCRIPTION:' + wp_module_metapkg, wp_module_pn + ' meta package') | ||
| 114 | } | ||
| 115 | |||
| 116 | PACKAGES =+ "\ | ||
| 117 | libwireplumber \ | ||
| 118 | ${PN}-default-config \ | ||
| 119 | ${PN}-scripts \ | ||
| 120 | ${PN}-modules \ | ||
| 121 | ${PN}-modules-meta \ | ||
| 122 | " | ||
| 123 | |||
| 124 | PACKAGES_DYNAMIC = "^${PN}-modules.*" | ||
| 125 | |||
| 126 | SYSTEMD_SERVICE:${PN} = "wireplumber.service" | ||
| 127 | CONFFILES:${PN} += " \ | ||
| 128 | ${datadir}/wireplumber/wireplumber.conf \ | ||
| 129 | ${datadir}/wireplumber/*.lua.d/* \ | ||
| 130 | " | ||
| 131 | # Add pipewire to RRECOMMENDS, since WirePlumber expects a PipeWire daemon to | ||
| 132 | # be present. While in theory any application that uses libpipewire can configure | ||
| 133 | # itself to become a daemon, in practice, the PipeWire daemon is used. | ||
| 134 | RRECOMMENDS:${PN} += "${PN}-scripts pipewire" | ||
| 135 | |||
| 136 | FILES:libwireplumber = " \ | ||
| 137 | ${libdir}/libwireplumber-*.so.* \ | ||
| 138 | " | ||
| 139 | |||
| 140 | FILES:${PN}-scripts += "${datadir}/wireplumber/scripts/*" | ||
| 141 | |||
| 142 | # Dynamic packages (see set_dynamic_metapkg_rdepends). | ||
| 143 | FILES:${PN}-modules = "" | ||
| 144 | RRECOMMENDS:${PN}-modules += "${PN}-modules-meta" | ||
