python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / ofono / ofono.mk
blob82343963b1d7fa539f5fd60caafb75f09121d12e
1 ################################################################################
3 # ofono
5 ################################################################################
7 OFONO_VERSION = 1.18
8 OFONO_SOURCE = ofono-$(OFONO_VERSION).tar.xz
9 OFONO_SITE = $(BR2_KERNEL_MIRROR)/linux/network/ofono
10 OFONO_LICENSE = GPLv2
11 OFONO_LICENSE_FILES = COPYING
12 OFONO_DEPENDENCIES = \
13 host-pkgconf \
14 dbus \
15 libglib2 \
16 libcap-ng \
17 mobile-broadband-provider-info
19 OFONO_CONF_OPTS = \
20 --disable-test \
21 --with-dbusconfdir=/etc \
22 $(if $(BR2_INIT_SYSTEMD),--with-systemdunitdir=/usr/lib/systemd/system)
24 # N.B. Qualcomm QMI modem support requires O_CLOEXEC; so
25 # make sure that it is defined.
26 OFONO_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
28 define OFONO_INSTALL_INIT_SYSV
29 $(INSTALL) -m 0755 -D package/ofono/S46ofono $(TARGET_DIR)/etc/init.d/S46ofono
30 endef
32 define OFONO_INSTALL_INIT_SYSTEMD
33 mkdir -p $(TARGET_DIR)/etc/systemd/systemd/multi-user.target.wants
34 ln -fs ../../../../usr/lib/systemd/system/ofono.service \
35 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
36 endef
38 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
39 OFONO_CONF_OPTS += --enable-udev
40 OFONO_DEPENDENCIES += udev
41 else
42 OFONO_CONF_OPTS += --disable-udev
43 endif
45 ifeq ($(BR2_PACKAGE_BLUEZ_UTILS),y)
46 OFONO_CONF_OPTS += --enable-bluetooth
47 OFONO_DEPENDENCIES += bluez_utils
48 else
49 OFONO_CONF_OPTS += --disable-bluetooth
50 endif
52 $(eval $(autotools-package))