1 ################################################################################
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
)
24 UBUS_CONF_OPTS
+= -DBUILD_LUA
=OFF
27 ifeq ($(BR2_PACKAGE_SYSTEMD
),y
)
28 UBUS_DEPENDENCIES
+= systemd
29 UBUS_CONF_OPTS
+= -DENABLE_SYSTEMD
=ON
31 UBUS_CONF_OPTS
+= -DENABLE_SYSTEMD
=OFF
34 ifeq ($(BR2_PACKAGE_UBUS_EXAMPLES
),y
)
35 UBUS_CONF_OPTS
+= -DBUILD_EXAMPLES
=ON
37 UBUS_CONF_OPTS
+= -DBUILD_EXAMPLES
=OFF
40 $(eval
$(cmake-package
))