aboutsummaryrefslogtreecommitdiff
path: root/package/neard/neard.mk
blob: 0f954b82b3a0f89e52b6fc714ed419c73daba3e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
################################################################################
#
# neard
#
################################################################################

NEARD_VERSION = 0.13
NEARD_SOURCE = neard-$(NEARD_VERSION).tar.xz
NEARD_SITE = $(BR2_KERNEL_MIRROR)/linux/network/nfc
NEARD_LICENSE = GPLv2
NEARD_LICENSE_FILES = COPYING

NEARD_AUTORECONF = YES
NEARD_DEPENDENCIES = host-pkgconf dbus libglib2 libnl
NEARD_CONF_OPT = --disable-traces

ifeq ($(BR2_PACKAGE_NEARD_TOOLS),y)
	NEARD_CONF_OPT += --enable-tools
endif

define NEARD_INSTALL_INIT_SYSV
	$(INSTALL) -D -m 0755 package/neard/S53neard \
		$(TARGET_DIR)/etc/init.d/S53neard
endef

define NEARD_UNINSTALL_INIT_SYSV
	$(RM) $(TARGET_DIR)/etc/init.d/S53neard
endef

$(eval $(autotools-package))