1*517393d9SAndrew GeisslerDESCRIPTION = "Blueman is a GTK+ Bluetooth Manager" 2*517393d9SAndrew GeisslerLICENSE = "GPL-3.0-only" 3*517393d9SAndrew GeisslerLIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" 4*517393d9SAndrew Geissler 5*517393d9SAndrew GeisslerDEPENDS = "gtk+3 glib-2.0 bluez5 python3-pygobject python3-cython-native" 6*517393d9SAndrew Geissler 7*517393d9SAndrew Geisslerinherit meson gettext systemd gsettings pkgconfig python3native gtk-icon-cache 8*517393d9SAndrew Geissler 9*517393d9SAndrew GeisslerSRC_URI = " \ 10*517393d9SAndrew Geissler git://github.com/blueman-project/blueman.git;protocol=https;branch=2-3-stable \ 11*517393d9SAndrew Geissler file://0001-Search-for-cython3.patch \ 12*517393d9SAndrew Geissler file://0002-fix-fail-to-enable-bluetooth.patch \ 13*517393d9SAndrew Geissler file://0001-meson-add-pythoninstalldir-option.patch \ 14*517393d9SAndrew Geissler" 15*517393d9SAndrew GeisslerS = "${WORKDIR}/git" 16*517393d9SAndrew GeisslerSRCREV = "c85e7afb8d6547d4c35b7b639124de8e999c3650" 17*517393d9SAndrew Geissler 18*517393d9SAndrew GeisslerEXTRA_OEMESON = "-Druntime_deps_check=false -Dpythoninstalldir=${@noprefix('PYTHON_SITEPACKAGES_DIR', d)}" 19*517393d9SAndrew Geissler 20*517393d9SAndrew GeisslerSYSTEMD_SERVICE:${PN} = "${BPN}-mechanism.service" 21*517393d9SAndrew GeisslerSYSTEMD_AUTO_ENABLE:${PN} = "disable" 22*517393d9SAndrew Geissler 23*517393d9SAndrew GeisslerRRECOMMENDS:${PN} += "adwaita-icon-theme" 24*517393d9SAndrew GeisslerRDEPENDS:${PN} += " \ 25*517393d9SAndrew Geissler python3-core \ 26*517393d9SAndrew Geissler python3-dbus \ 27*517393d9SAndrew Geissler python3-pygobject \ 28*517393d9SAndrew Geissler python3-terminal \ 29*517393d9SAndrew Geissler python3-fcntl \ 30*517393d9SAndrew Geissler packagegroup-tools-bluetooth \ 31*517393d9SAndrew Geissler" 32*517393d9SAndrew Geissler 33*517393d9SAndrew GeisslerPACKAGECONFIG ??= " \ 34*517393d9SAndrew Geissler ${@bb.utils.filter('DISTRO_FEATURES', 'polkit pulseaudio ', d)} \ 35*517393d9SAndrew Geissler thunar \ 36*517393d9SAndrew Geissler" 37*517393d9SAndrew GeisslerPACKAGECONFIG[thunar] = "-Dthunar-sendto=true,-Dthunar-sendto=false" 38*517393d9SAndrew GeisslerPACKAGECONFIG[pulseaudio] = "-Dpulseaudio=true,-Dpulseaudio=false" 39*517393d9SAndrew GeisslerPACKAGECONFIG[polkit] = "-Dpolicykit=true,-Dpolicykit=false" 40*517393d9SAndrew Geissler 41*517393d9SAndrew GeisslerFILES:${PN} += " \ 42*517393d9SAndrew Geissler ${datadir} \ 43*517393d9SAndrew Geissler ${systemd_user_unitdir} \ 44*517393d9SAndrew Geissler ${PYTHON_SITEPACKAGES_DIR} \ 45*517393d9SAndrew Geissler" 46*517393d9SAndrew Geissler 47*517393d9SAndrew Geissler# In code, path to python is a variable that is replaced with path to native version of it 48*517393d9SAndrew Geissler# during the configure stage, e.g ../recipe-sysroot-native/usr/bin/python3-native/python3. 49*517393d9SAndrew Geissler# Replace it with #!/usr/bin/env python3 50*517393d9SAndrew Geisslerdo_install:append() { 51*517393d9SAndrew Geissler sed -i "1s/.*/#!\/usr\/bin\/env python3/" ${D}${prefix}/libexec/blueman-rfcomm-watcher \ 52*517393d9SAndrew Geissler ${D}${prefix}/libexec/blueman-mechanism \ 53*517393d9SAndrew Geissler ${D}${bindir}/blueman-adapters \ 54*517393d9SAndrew Geissler ${D}${bindir}/blueman-applet \ 55*517393d9SAndrew Geissler ${D}${bindir}/blueman-manager \ 56*517393d9SAndrew Geissler ${D}${bindir}/blueman-sendto \ 57*517393d9SAndrew Geissler ${D}${bindir}/blueman-services \ 58*517393d9SAndrew Geissler ${D}${bindir}/blueman-tray 59*517393d9SAndrew Geissler} 60*517393d9SAndrew Geissler 61