harfbuzz: bump version to 1.4.5
[buildroot-gz.git] / package / connman / connman.mk
blobf7c9f2318fa38f71a1263e6cb940f644b7b17e52
1 ################################################################################
3 # connman
5 ################################################################################
7 CONNMAN_VERSION = 1.33
8 CONNMAN_SOURCE = connman-$(CONNMAN_VERSION).tar.xz
9 CONNMAN_SITE = $(BR2_KERNEL_MIRROR)/linux/network/connman
10 CONNMAN_DEPENDENCIES = libglib2 dbus iptables
11 CONNMAN_INSTALL_STAGING = YES
12 CONNMAN_LICENSE = GPLv2
13 CONNMAN_LICENSE_FILES = COPYING
14 CONNMAN_CONF_OPTS += \
15 --with-dbusconfdir=/etc \
16 $(if $(BR2_PACKAGE_CONNMAN_DEBUG),--enable-debug,--disable-debug) \
17 $(if $(BR2_PACKAGE_CONNMAN_ETHERNET),--enable-ethernet,--disable-ethernet) \
18 $(if $(BR2_PACKAGE_CONNMAN_WIFI),--enable-wifi,--disable-wifi) \
19 $(if $(BR2_PACKAGE_CONNMAN_WISPR),--enable-wispr,--disable-wispr) \
20 $(if $(BR2_PACKAGE_CONNMAN_BLUETOOTH),--enable-bluetooth,--disable-bluetooth) \
21 $(if $(BR2_PACKAGE_CONNMAN_LOOPBACK),--enable-loopback,--disable-loopback) \
22 $(if $(BR2_PACKAGE_CONNMAN_NEARD),--enable-neard,--disable-neard) \
23 $(if $(BR2_PACKAGE_CONNMAN_OFONO),--enable-ofono,--disable-ofono) \
24 $(if $(BR2_INIT_SYSTEMD),--with-systemdunitdir=/usr/lib/systemd/system)
26 CONNMAN_DEPENDENCIES += \
27 $(if $(BR2_PACKAGE_CONNMAN_NEARD),neard) \
28 $(if $(BR2_PACKAGE_CONNMAN_OFONO),ofono) \
29 $(if $(BR2_PACKAGE_CONNMAN_WISPR),gnutls)
31 define CONNMAN_INSTALL_INIT_SYSV
32 $(INSTALL) -m 0755 -D package/connman/S45connman $(TARGET_DIR)/etc/init.d/S45connman
33 endef
35 define CONNMAN_INSTALL_INIT_SYSTEMD
36 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
37 ln -fs ../../../../usr/lib/systemd/system/connman.service \
38 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/connman.service
39 endef
41 ifeq ($(BR2_PACKAGE_CONNMAN_CLIENT),y)
42 CONNMAN_CONF_OPTS += --enable-client
43 CONNMAN_DEPENDENCIES += readline
45 define CONNMAN_INSTALL_CM
46 $(INSTALL) -m 0755 -D $(@D)/client/connmanctl $(TARGET_DIR)/usr/bin/connmanctl
47 endef
49 CONNMAN_POST_INSTALL_TARGET_HOOKS += CONNMAN_INSTALL_CM
50 else
51 CONNMAN_CONF_OPTS += --disable-client
52 endif
54 $(eval $(autotools-package))