xref: /OK3568_Linux_fs/buildroot/package/ubus/ubus.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# ubus
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunUBUS_VERSION = a72457b61df045d3c499a6211362b751710590d7
8*4882a593SmuzhiyunUBUS_SITE = https://git.openwrt.org/project/ubus.git
9*4882a593SmuzhiyunUBUS_SITE_METHOD = git
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunUBUS_LICENSE = LGPL-2.1
12*4882a593SmuzhiyunUBUS_LICENSE_FILES = ubusd_acl.h
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunUBUS_INSTALL_STAGING = YES
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunUBUS_DEPENDENCIES = json-c libubox
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun# package only compiles with Lua 5.1
19*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LUA_5_1),y)
20*4882a593SmuzhiyunUBUS_DEPENDENCIES += lua
21*4882a593SmuzhiyunUBUS_CONF_OPTS += -DBUILD_LUA=ON \
22*4882a593Smuzhiyun	-DLUA_CFLAGS=-I$(STAGING_DIR)/usr/include \
23*4882a593Smuzhiyun	-DLUAPATH=/usr/lib/lua/$(LUAINTERPRETER_ABIVER)
24*4882a593Smuzhiyunelse
25*4882a593SmuzhiyunUBUS_CONF_OPTS += -DBUILD_LUA=OFF
26*4882a593Smuzhiyunendif
27*4882a593Smuzhiyun
28*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SYSTEMD),y)
29*4882a593SmuzhiyunUBUS_DEPENDENCIES += systemd
30*4882a593SmuzhiyunUBUS_CONF_OPTS += -DENABLE_SYSTEMD=ON
31*4882a593Smuzhiyunelse
32*4882a593SmuzhiyunUBUS_CONF_OPTS += -DENABLE_SYSTEMD=OFF
33*4882a593Smuzhiyunendif
34*4882a593Smuzhiyun
35*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_UBUS_EXAMPLES),y)
36*4882a593SmuzhiyunUBUS_CONF_OPTS += -DBUILD_EXAMPLES=ON
37*4882a593Smuzhiyunelse
38*4882a593SmuzhiyunUBUS_CONF_OPTS += -DBUILD_EXAMPLES=OFF
39*4882a593Smuzhiyunendif
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun$(eval $(cmake-package))
42