1 SUMMARY = "Session / Policy Manager 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>"
8 LIC_FILES_CHKSUM = "file://LICENSE;beginline=3;md5=e8ad01a5182f2c1b3a2640e9ea268264"
10 inherit meson pkgconfig systemd
12 DEPENDS = "glib-2.0 glib-2.0-native pipewire lua"
15 git://gitlab.freedesktop.org/pipewire/wireplumber.git;protocol=https;branch=master \
17 SRCREV = "4af7e2bd68c4862bb707b62edf7557df56dad10f"
24 # use shared lua from the system instead of the static bundled one
25 EXTRA_OEMESON += "-Dsystem-lua=true"
27 # introspection in practice is only used for generating API docs
28 # API docs are available on the website and we don't need to build them
29 # (plus they depend on hotdoc which is not available here)
30 EXTRA_OEMESON += "-Dintrospection=disabled -Ddoc=disabled"
33 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
36 PACKAGECONFIG[systemd] = "-Dsystemd=enabled -Dsystemd-system-service=true -Dsystemd-user-service=false,-Dsystemd=disabled -Dsystemd-system-service=false -Dsystemd-user-service=false,systemd"
38 do_configure_prepend() {
39 # relax meson version requirement
40 # we only need 0.54 when building with -Dsystem-lua=false
41 sed "s/meson_version : '>= 0.54.0'/meson_version : '>= 0.51.0'/" ${S}/meson.build > ${S}/tmp.build
42 mv -f ${S}/tmp.build ${S}/meson.build
50 SYSTEMD_SERVICE_${PN} = "wireplumber.service"
52 ${bindir}/wireplumber \
55 ${libdir}/wireplumber-${WPAPI}/* \
56 ${datadir}/wireplumber/* \
57 ${systemd_system_unitdir}/* \
59 RPROVIDES_${PN} += "virtual/pipewire-sessionmanager"
60 RDEPENDS_${PN} += "virtual/wireplumber-config"
62 FILES_lib${PN}-${WPAPI} = "\
63 ${libdir}/libwireplumber-${WPAPI}.so.* \
66 FILES_${PN}-config += "\
67 ${sysconfdir}/wireplumber/* \
69 CONFFILES_${PN}-config += "\
70 ${sysconfdir}/wireplumber/* \
72 RPROVIDES_${PN}-config += "virtual/wireplumber-config"