board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / ubus / ubus.mk
blobcd66b868dfd9a543f378b93906805b9f084ae5fd
1 ################################################################################
3 # ubus
5 ################################################################################
7 UBUS_VERSION = 259450f414d8c9ee41896e8e6d6bc57ec00e2b63
8 UBUS_SITE = git://git.openwrt.org/project/ubus.git
10 UBUS_LICENSE = LGPLv2.1
11 UBUS_LICENSE_FILES = ubusd_acl.h
13 UBUS_INSTALL_STAGING = YES
15 UBUS_DEPENDENCIES = json-c libubox
17 # package only compiles with Lua 5.1
18 ifeq ($(BR2_PACKAGE_LUA_5_1),y)
19 UBUS_DEPENDENCIES += lua
20 UBUS_CONF_OPTS += -DBUILD_LUA=ON \
21 -DLUA_CFLAGS=-I$(STAGING_DIR)/usr/include \
22 -DLUAPATH=/usr/lib/lua/$(LUAINTERPRETER_ABIVER)
23 else
24 UBUS_CONF_OPTS += -DBUILD_LUA=OFF
25 endif
27 ifeq ($(BR2_PACKAGE_SYSTEMD),y)
28 UBUS_DEPENDENCIES += systemd
29 UBUS_CONF_OPTS += -DENABLE_SYSTEMD=ON
30 else
31 UBUS_CONF_OPTS += -DENABLE_SYSTEMD=OFF
32 endif
34 ifeq ($(BR2_PACKAGE_UBUS_EXAMPLES),y)
35 UBUS_CONF_OPTS += -DBUILD_EXAMPLES=ON
36 else
37 UBUS_CONF_OPTS += -DBUILD_EXAMPLES=OFF
38 endif
40 $(eval $(cmake-package))