2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-05 09:40:23 +01:00
|
|
|
#
|
|
|
|
# neardal
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-21 11:45:33 +01:00
|
|
|
|
2014-10-26 19:45:52 +01:00
|
|
|
NEARDAL_VERSION = 33b54a55032b047fd885a5eb3592c169c0056c49
|
2013-12-05 18:20:46 +01:00
|
|
|
NEARDAL_SITE = $(call github,connectivity,neardal,$(NEARDAL_VERSION))
|
2012-12-05 09:40:23 +01:00
|
|
|
NEARDAL_INSTALL_STAGING = YES
|
|
|
|
NEARDAL_LICENSE = GPLv2
|
|
|
|
NEARDAL_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
NEARDAL_DEPENDENCIES = host-pkgconf dbus dbus-glib
|
|
|
|
NEARDAL_AUTORECONF = YES
|
|
|
|
|
2014-10-26 19:45:52 +01:00
|
|
|
# Either readline or libedit are needed, and the Config.in file
|
|
|
|
# guarantees at least one of them is enabled
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
|
|
NEARDAL_DEPENDENCIES += readline
|
|
|
|
else ifeq ($(BR2_PACKAGE_LIBEDIT),y)
|
|
|
|
NEARDAL_DEPENDENCIES += libedit
|
|
|
|
endif
|
|
|
|
|
2015-05-16 22:57:37 +02:00
|
|
|
# Both readline and libedit link with ncurses but the configure script
|
|
|
|
# forgets to take that into account, causing the detection to fail
|
|
|
|
# when linking statically
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2015-05-22 00:04:32 +02:00
|
|
|
NEARDAL_CONF_ENV += LIBS='$(shell $(PKG_CONFIG_HOST_BINARY) --libs ncurses)'
|
2015-05-16 22:57:37 +02:00
|
|
|
endif
|
|
|
|
|
2013-04-26 02:25:26 +02:00
|
|
|
define NEARDAL_INSTALL_NCL
|
|
|
|
$(INSTALL) -m 0755 -D $(@D)/ncl/ncl $(TARGET_DIR)/usr/bin/ncl
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_NEARDAL_NCL),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NEARDAL_POST_INSTALL_TARGET_HOOKS += NEARDAL_INSTALL_NCL
|
2013-04-26 02:25:26 +02:00
|
|
|
endif
|
|
|
|
|
2012-12-05 09:40:23 +01:00
|
|
|
$(eval $(autotools-package))
|