package/modem-manager: bump version to 1.20.2

Switch package type to meson as the primary supported build system
from now on is meson and the autotools support as deprecated. The
package tarball is no longer supported, thus the MODEM_MANAGER_SOURCE
is changed to the gitlab archive URL.

All previously supported options are converted to the meson
configuraiton options and support for new ones is added. The new
options are: bash_completion, polkit, systemd, qrtr.

The dbus build dependency is needed since the meson build system uses
dbus pkg-config to determine install locations. The 'udevdir' has to
be specified also in case dbus is not installed. Modem-manager will
use its own built-in udev rule parser to determine modem specific
values.

For building with libqmi support version 1.32.2 is required and for
libmbim version 1.28.2 is required.

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Heiko Thiery 2022-12-12 20:35:28 +01:00 committed by Thomas Petazzoni
parent e1ecfe1357
commit b95334b71f
3 changed files with 57 additions and 21 deletions

View File

@ -3,7 +3,7 @@ config BR2_PACKAGE_MODEM_MANAGER
depends on BR2_USE_WCHAR # libglib2 and gnutls
depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
depends on BR2_USE_MMU # dbus
select BR2_PACKAGE_DBUS # runtime dependency
select BR2_PACKAGE_DBUS
select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_LIBGUDEV if BR2_PACKAGE_HAS_UDEV
help

View File

@ -1,4 +1,4 @@
#Locally calculated after checking https://www.freedesktop.org/software/ModemManager/ModemManager-1.18.12.tar.xz.asc
sha256 b464e4925d955a6ca86dd08616e763b26ae46d7fd37dbe281678e34065b1e430 ModemManager-1.18.12.tar.xz
sha256 ba56aa764edc148f58348a589743cf1c1e27c55dcd7ebd820dcedd52fb8d7179 ModemManager-1.20.2.tar.gz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LIB

View File

@ -4,42 +4,78 @@
#
################################################################################
MODEM_MANAGER_VERSION = 1.18.12
MODEM_MANAGER_SOURCE = ModemManager-$(MODEM_MANAGER_VERSION).tar.xz
MODEM_MANAGER_SITE = http://www.freedesktop.org/software/ModemManager
MODEM_MANAGER_VERSION = 1.20.2
MODEM_MANAGER_SOURCE = ModemManager-$(MODEM_MANAGER_VERSION).tar.gz
MODEM_MANAGER_SITE = https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/archive/$(MODEM_MANAGER_VERSION)
MODEM_MANAGER_LICENSE = GPL-2.0+ (programs, plugins), LGPL-2.0+ (libmm-glib)
MODEM_MANAGER_LICENSE_FILES = COPYING COPYING.LIB
MODEM_MANAGER_SELINUX_MODULES = modemmanager
MODEM_MANAGER_DEPENDENCIES = host-pkgconf libglib2 $(TARGET_NLS_DEPENDENCIES)
MODEM_MANAGER_DEPENDENCIES = host-pkgconf dbus libglib2 $(TARGET_NLS_DEPENDENCIES) host-libxslt
MODEM_MANAGER_INSTALL_STAGING = YES
MODEM_MANAGER_CONF_OPTS = --disable-more-warnings
ifeq ($(BR2_PACKAGE_MODEM_MANAGER_LIBQMI),y)
MODEM_MANAGER_DEPENDENCIES += libqmi
MODEM_MANAGER_CONF_OPTS += --with-qmi
else
MODEM_MANAGER_CONF_OPTS += --without-qmi
endif
MODEM_MANAGER_CONF_OPTS = \
-Dpowerd_suspend_resume=false \
-Dudevdir=/usr/lib/udev
ifeq ($(BR2_PACKAGE_LIBGUDEV),y)
MODEM_MANAGER_DEPENDENCIES += libgudev
MODEM_MANAGER_CONF_OPTS += --with-udev
MODEM_MANAGER_CONF_OPTS += -Dudev=true
else
MODEM_MANAGER_CONF_OPTS += --without-udev
MODEM_MANAGER_CONF_OPTS += -Dudev=false
endif
ifeq ($(BR2_PACKAGE_MODEM_MANAGER_LIBQMI),y)
MODEM_MANAGER_DEPENDENCIES += libqmi
MODEM_MANAGER_CONF_OPTS += -Dqmi=true
else
MODEM_MANAGER_CONF_OPTS += -Dqmi=false
endif
ifeq ($(BR2_PACKAGE_MODEM_MANAGER_LIBMBIM),y)
MODEM_MANAGER_DEPENDENCIES += libmbim
MODEM_MANAGER_CONF_OPTS += --with-mbim
MODEM_MANAGER_CONF_OPTS += -Dmbim=true
else
MODEM_MANAGER_CONF_OPTS += --without-mbim
MODEM_MANAGER_CONF_OPTS += -Dmbim=false
endif
ifeq ($(BR2_PACKAGE_LIBQRTR_GLIB),y)
MODEM_MANAGER_DEPENDENCIES += libqrtr-glib
MODEM_MANAGER_CONF_OPTS += -Dqrtr=true
else
MODEM_MANAGER_CONF_OPTS += -Dqrtr=false
endif
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
MODEM_MANAGER_DEPENDENCIES += systemd
MODEM_MANAGER_CONF_OPTS += \
-Dsystemd_journal=true \
-Dsystemd_suspend_resume=true \
-Dsystemdsystemunitdir=/usr/lib/systemd/system
else
MODEM_MANAGER_CONF_OPTS += \
-Dsystemd_journal=false \
-Dsystemd_suspend_resume=false \
-Dsystemdsystemunitdir=no
endif
ifeq ($(BR2_PACKAGE_POLKIT),y)
MODEM_MANAGER_DEPENDENCIES += polkit
MODEM_MANAGER_CONF_OPTS += -Dpolkit=strict
else
MODEM_MANAGER_CONF_OPTS += -Dpolkit=no
endif
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
MODEM_MANAGER_DEPENDENCIES += gobject-introspection
MODEM_MANAGER_CONF_OPTS += --enable-introspection
MODEM_MANAGER_CONF_OPTS += -Dintrospection=true
else
MODEM_MANAGER_CONF_OPTS += --disable-introspection
MODEM_MANAGER_CONF_OPTS += -Dintrospection=false
endif
ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
MODEM_MANAGER_DEPENDENCIES += bash-completion
MODEM_MANAGER_CONF_OPTS += -Dbash_completion=true
else
MODEM_MANAGER_CONF_OPTS += -Dbash_completion=false
endif
define MODEM_MANAGER_INSTALL_INIT_SYSV
@ -47,4 +83,4 @@ define MODEM_MANAGER_INSTALL_INIT_SYSV
$(TARGET_DIR)/etc/init.d/S44modem-manager
endef
$(eval $(autotools-package))
$(eval $(meson-package))