Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 1 | SUMMARY = "ModemManager is a daemon controlling broadband devices/connections" |
| 2 | DESCRIPTION = "ModemManager is a DBus-activated daemon which controls mobile broadband (2G/3G/4G) devices and connections" |
| 3 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/ModemManager/" |
| 4 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later" |
| 5 | LIC_FILES_CHKSUM = " \ |
| 6 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 7 | file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \ |
| 8 | " |
| 9 | |
| 10 | inherit gnomebase gettext systemd gobject-introspection bash-completion |
| 11 | |
| 12 | DEPENDS = "glib-2.0 libgudev libxslt-native dbus" |
| 13 | |
| 14 | SRCREV = "03f786ce66360d67c669f4f122f8aa458e6f01ea" |
| 15 | SRC_URI = "git://gitlab.freedesktop.org/mobile-broadband/ModemManager.git;protocol=https;branch=mm-1-22" |
| 16 | |
| 17 | S = "${WORKDIR}/git" |
| 18 | |
| 19 | # strict, permissive |
| 20 | MODEMMANAGER_POLKIT_TYPE ??= "permissive" |
| 21 | |
| 22 | PACKAGECONFIG ??= "vala mbim qmi \ |
| 23 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)} \ |
| 24 | " |
| 25 | |
| 26 | PACKAGECONFIG[at] = "-Dat_command_via_dbus=true" |
| 27 | PACKAGECONFIG[systemd] = " \ |
| 28 | -Dsystemdsystemunitdir=${systemd_unitdir}/system/, \ |
| 29 | -Dsystemdsystemunitdir=no -Dsystemd_journal=false -Dsystemd_suspend_resume=false \ |
| 30 | " |
| 31 | PACKAGECONFIG[polkit] = "-Dpolkit=${MODEMMANAGER_POLKIT_TYPE},-Dpolkit=no,polkit" |
| 32 | # Support WWAN modems and devices which speak the Mobile Interface Broadband Model (MBIM) protocol. |
| 33 | PACKAGECONFIG[mbim] = "-Dmbim=true,-Dmbim=false -Dplugin_dell=disabled -Dplugin_foxconn=disabled,libmbim" |
| 34 | # Support WWAN modems and devices which speak the Qualcomm MSM Interface (QMI) protocol. |
| 35 | PACKAGECONFIG[qmi] = "-Dqmi=true,-Dqmi=false,libqmi" |
| 36 | PACKAGECONFIG[qrtr] = "-Dqrtr=true,-Dqrtr=false,libqrtr-glib" |
| 37 | PACKAGECONFIG[vala] = "-Dvapi=true,-Dvapi=false" |
| 38 | |
| 39 | inherit upstream-version-is-even ${@bb.utils.contains('PACKAGECONFIG', 'vala', 'vala', '', d)} |
| 40 | |
| 41 | EXTRA_OEMESON = " \ |
| 42 | -Dudevdir=${nonarch_base_libdir}/udev \ |
| 43 | -Dqrtr=false \ |
| 44 | " |
| 45 | |
| 46 | FILES:${PN} += " \ |
| 47 | ${datadir}/icons \ |
| 48 | ${datadir}/polkit-1 \ |
| 49 | ${datadir}/dbus-1 \ |
| 50 | ${datadir}/ModemManager \ |
| 51 | ${libdir}/ModemManager \ |
| 52 | ${systemd_unitdir}/system \ |
| 53 | " |
| 54 | |
| 55 | SYSTEMD_SERVICE:${PN} = "ModemManager.service" |