blob: b0ab46f3f22a69e9038e91072de760e4c63e7973 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "ModemManager is a daemon controlling broadband devices/connections"
2DESCRIPTION = "ModemManager is a DBus-activated daemon which controls mobile broadband (2G/3G/4G) devices and connections"
3HOMEPAGE = "http://www.freedesktop.org/wiki/Software/ModemManager/"
4LICENSE = "GPL-2.0 & LGPL-2.1"
5LIC_FILES_CHKSUM = " \
6 file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
7 file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \
8"
9
10inherit gnomebase gettext systemd vala gobject-introspection bash-completion
11
12DEPENDS = "glib-2.0 libgudev intltool-native libxslt-native"
13
Andrew Geisslerd221e032020-07-10 16:13:21 -050014SRC_URI = "http://www.freedesktop.org/software/ModemManager/ModemManager-${PV}.tar.xz"
15SRC_URI[sha256sum] = "a4fc4b33c0e8ae9372885f86fa033f3c1a89a76cd59a3458670eff1824222a3d"
Andrew Geissler82c905d2020-04-13 13:39:40 -050016S = "${WORKDIR}/ModemManager-${PV}"
17
18PACKAGECONFIG ??= "mbim qmi \
19 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)} \
20"
21
22PACKAGECONFIG[at] = "--with-at-command-via-dbus"
23PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,"
24PACKAGECONFIG[polkit] = "--with-polkit=yes,--with-polkit=no,polkit"
25# Support WWAN modems and devices which speak the Mobile Interface Broadband Model (MBIM) protocol.
26PACKAGECONFIG[mbim] = "--with-mbim,--without-mbim,libmbim"
27# Support WWAN modems and devices which speak the Qualcomm MSM Interface (QMI) protocol.
28PACKAGECONFIG[qmi] = "--with-qmi,--without-qmi,libqmi"
29
30EXTRA_OECONF = " \
31 --with-udev-base-dir=${nonarch_base_libdir}/udev \
32"
33EXTRA_OECONF_append_toolchain-clang = " --enable-more-warnings=no"
34
35FILES_${PN} += " \
36 ${datadir}/icons \
37 ${datadir}/polkit-1 \
38 ${datadir}/dbus-1 \
39 ${datadir}/ModemManager \
40 ${libdir}/ModemManager \
41 ${systemd_unitdir}/system \
42"
43
44FILES_${PN}-dev += " \
45 ${libdir}/ModemManager/*.la \
46"
47
48FILES_${PN}-staticdev += " \
49 ${libdir}/ModemManager/*.a \
50"
51
52FILES_${PN}-dbg += "${libdir}/ModemManager/.debug"
53
54SYSTEMD_SERVICE_${PN} = "ModemManager.service"