package/*: test for BR2_PACKAGE_LIBGUDEV for dependency
[buildroot.git] / package / modem-manager / modem-manager.mk
1 ################################################################################
2 #
3 # modem-manager
4 #
5 ################################################################################
6
7 MODEM_MANAGER_VERSION = 1.4.12
8 MODEM_MANAGER_SOURCE = ModemManager-$(MODEM_MANAGER_VERSION).tar.xz
9 MODEM_MANAGER_SITE = http://www.freedesktop.org/software/ModemManager
10 MODEM_MANAGER_LICENSE = GPLv2+ (programs, plugins), LGPLv2+ (libmm-glib)
11 MODEM_MANAGER_LICENSE_FILES = COPYING
12 MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib host-intltool
13 MODEM_MANAGER_INSTALL_STAGING = YES
14
15 ifeq ($(BR2_PACKAGE_LIBGUDEV),y)
16 MODEM_MANAGER_DEPENDENCIES += libgudev
17 endif
18
19 ifeq ($(BR2_PACKAGE_MODEM_MANAGER_LIBQMI),y)
20 MODEM_MANAGER_DEPENDENCIES += libqmi
21 MODEM_MANAGER_CONF_OPTS += --with-qmi
22 else
23 MODEM_MANAGER_CONF_OPTS += --without-qmi
24 endif
25
26 ifeq ($(BR2_PACKAGE_MODEM_MANAGER_LIBMBIM),y)
27 MODEM_MANAGER_DEPENDENCIES += libmbim
28 MODEM_MANAGER_CONF_OPTS += --with-mbim
29 else
30 MODEM_MANAGER_CONF_OPTS += --without-mbim
31 endif
32
33 define MODEM_MANAGER_INSTALL_INIT_SYSV
34 $(INSTALL) -m 0755 -D package/modem-manager/S44modem-manager \
35 $(TARGET_DIR)/etc/init.d/S44modem-manager
36 endef
37
38 $(eval $(autotools-package))