Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [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 & LGPL-2.1" |
| 5 | LIC_FILES_CHKSUM = " \ |
| 6 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 7 | file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \ |
| 8 | " |
| 9 | |
| 10 | inherit gnomebase gettext systemd vala gobject-introspection bash-completion |
| 11 | |
| 12 | DEPENDS = "glib-2.0 libgudev intltool-native libxslt-native" |
| 13 | |
| 14 | SRC_URI = "http://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz \ |
| 15 | " |
| 16 | |
| 17 | SRC_URI[sha256sum] = "68b53d0615ba0d3e2bbf386ed029dfe644a6a30a79ab8d85523527bb4e713aff" |
| 18 | |
| 19 | S = "${WORKDIR}/ModemManager-${PV}" |
| 20 | |
| 21 | PACKAGECONFIG ??= "mbim qmi \ |
| 22 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)} \ |
| 23 | " |
| 24 | |
| 25 | PACKAGECONFIG[at] = "--with-at-command-via-dbus" |
| 26 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,," |
| 27 | PACKAGECONFIG[polkit] = "--with-polkit=yes,--with-polkit=no,polkit" |
| 28 | # Support WWAN modems and devices which speak the Mobile Interface Broadband Model (MBIM) protocol. |
| 29 | PACKAGECONFIG[mbim] = "--with-mbim,--without-mbim,libmbim" |
| 30 | # Support WWAN modems and devices which speak the Qualcomm MSM Interface (QMI) protocol. |
| 31 | PACKAGECONFIG[qmi] = "--with-qmi,--without-qmi,libqmi" |
| 32 | |
| 33 | EXTRA_OECONF = " \ |
| 34 | --with-udev-base-dir=${nonarch_base_libdir}/udev \ |
| 35 | " |
| 36 | EXTRA_OECONF_append_toolchain-clang = " --enable-more-warnings=no" |
| 37 | |
| 38 | FILES_${PN} += " \ |
| 39 | ${datadir}/icons \ |
| 40 | ${datadir}/polkit-1 \ |
| 41 | ${datadir}/dbus-1 \ |
| 42 | ${datadir}/ModemManager \ |
| 43 | ${libdir}/ModemManager \ |
| 44 | ${systemd_unitdir}/system \ |
| 45 | " |
| 46 | |
| 47 | FILES_${PN}-dev += " \ |
| 48 | ${libdir}/ModemManager/*.la \ |
| 49 | " |
| 50 | |
| 51 | FILES_${PN}-staticdev += " \ |
| 52 | ${libdir}/ModemManager/*.a \ |
| 53 | " |
| 54 | |
| 55 | FILES_${PN}-dbg += "${libdir}/ModemManager/.debug" |
| 56 | |
| 57 | SYSTEMD_SERVICE_${PN} = "ModemManager.service" |