ddaecbeb1252c6046c35a54cbfd7720fe24e2ad5
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / neardal / neardal.mk
1 ################################################################################
2 #
3 # neardal
4 #
5 ################################################################################
6
7 NEARDAL_VERSION = 33b54a55032b047fd885a5eb3592c169c0056c49
8 NEARDAL_SITE = $(call github,connectivity,neardal,$(NEARDAL_VERSION))
9 NEARDAL_INSTALL_STAGING = YES
10 NEARDAL_LICENSE = GPLv2
11 NEARDAL_LICENSE_FILES = COPYING
12
13 NEARDAL_DEPENDENCIES = host-pkgconf dbus dbus-glib
14 NEARDAL_AUTORECONF = YES
15
16 # Either readline or libedit are needed, and the Config.in file
17 # guarantees at least one of them is enabled
18 ifeq ($(BR2_PACKAGE_READLINE),y)
19 NEARDAL_DEPENDENCIES += readline
20 else ifeq ($(BR2_PACKAGE_LIBEDIT),y)
21 NEARDAL_DEPENDENCIES += libedit
22 endif
23
24 # Both readline and libedit link with ncurses but the configure script
25 # forgets to take that into account, causing the detection to fail
26 # when linking statically
27 ifeq ($(BR2_STATIC_LIBS),y)
28 NEARDAL_CONF_ENV += LIBS='$(shell $(PKG_CONFIG_HOST_BINARY) --libs ncurses)'
29 endif
30
31 define NEARDAL_INSTALL_NCL
32         $(INSTALL) -m 0755 -D $(@D)/ncl/ncl $(TARGET_DIR)/usr/bin/ncl
33 endef
34
35 ifeq ($(BR2_PACKAGE_NEARDAL_NCL),y)
36 NEARDAL_POST_INSTALL_TARGET_HOOKS += NEARDAL_INSTALL_NCL
37 endif
38
39 $(eval $(autotools-package))