source: trunk/package/libubox/Makefile @ 28393

Last change on this file since 28393 was 28393, checked in by nbd, 5 years ago

update libubox and ubus to the latest version

File size: 1.6 KB
Line 
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=libubox
4PKG_VERSION:=2011-10-06
5PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7PKG_SOURCE_PROTO:=git
8PKG_SOURCE_URL:=git://nbd.name/luci2/libubox.git
9PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10PKG_SOURCE_VERSION:=51711be6251be4ae5e53f9369ae04598b06df0e7
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12PKG_MIRROR_MD5SUM:=b8c0835ad2d5ebc4954db4667e60d960
13CMAKE_INSTALL:=1
14
15include $(INCLUDE_DIR)/package.mk
16include $(INCLUDE_DIR)/cmake.mk
17
18define Package/libubox
19  SECTION:=libs
20  CATEGORY:=Libraries
21  TITLE:=Basic utility library
22  DEPENDS:=
23endef
24
25define Package/libblobmsg-json
26  SECTION:=libs
27  CATEGORY:=Libraries
28  TITLE:=blobmsg <-> json conversion library
29  DEPENDS:=+libjson
30endef
31
32define Package/jshn
33  SECTION:=utils
34  CATEGORY:=Utilities
35  DEPENDS:=+libjson
36  TITLE:=JSON SHell Notation
37endef
38
39define Package/jshn/description
40  Library for parsing and generating JSON from shell scripts
41endef
42
43TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
44
45define Package/libubox/install
46        $(INSTALL_DIR) $(1)/lib/
47        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libubox.so $(1)/lib/
48endef
49
50define Package/libblobmsg-json/install
51        $(INSTALL_DIR) $(1)/lib/
52        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libblobmsg_json.so $(1)/lib/
53endef
54
55define Package/jshn/install
56        $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/share/libubox
57        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/jshn $(1)/usr/bin
58        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/libubox/jshn.sh $(1)/usr/share/libubox
59endef
60
61$(eval $(call BuildPackage,libubox))
62$(eval $(call BuildPackage,libblobmsg-json))
63$(eval $(call BuildPackage,jshn))
64
Note: See TracBrowser for help on using the repository browser.