source: trunk/package/ubus/Makefile @ 25792

Last change on this file since 25792 was 25792, checked in by nbd, 6 years ago

ubus: add a missing dependency

File size: 1.3 KB
Line 
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=ubus
4PKG_VERSION:=2011-02-26
5PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7PKG_SOURCE_PROTO:=git
8PKG_SOURCE_URL:=git://nbd.name/luci2/ubus.git
9PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10PKG_SOURCE_VERSION:=6cf4326987c78ecc340930b48fce5b324c8d6a4d
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12CMAKE_INSTALL:=1
13
14include $(INCLUDE_DIR)/package.mk
15include $(INCLUDE_DIR)/cmake.mk
16
17define Package/ubus
18  SECTION:=luci2
19  CATEGORY:=LuCI2
20  SUBMENU:=System
21  DEPENDS:=+libubus +libblobmsg-json +ubusd
22  TITLE:=OpenWrt RPC client utility
23endef
24
25define Package/ubusd
26  SECTION:=luci2
27  CATEGORY:=LuCI2
28  SUBMENU:=System
29  TITLE:=OpenWrt RPC daemon
30endef
31
32define Package/libubus
33  SECTION:=luci2
34  CATEGORY:=LuCI2
35  SUBMENU:=Libraries
36  DEPENDS:=+libubox
37  TITLE:=OpenWrt RPC client library
38endef
39
40TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
41
42define Package/ubus/install
43        $(INSTALL_DIR) $(1)/bin
44        $(CP) $(PKG_INSTALL_DIR)/usr/bin/ubus $(1)/bin/
45endef
46
47define Package/ubusd/install
48        $(INSTALL_DIR) $(1)/sbin
49        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ubusd $(1)/sbin/
50endef
51
52define Package/libubus/install
53        $(INSTALL_DIR) $(1)/lib
54        $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/lib/
55endef
56
57$(eval $(call BuildPackage,ubus))
58$(eval $(call BuildPackage,ubusd))
59$(eval $(call BuildPackage,libubus))
60
Note: See TracBrowser for help on using the repository browser.