source: trunk/package/libubox/Makefile @ 31721

Last change on this file since 31721 was 31721, checked in by nbd, 4 years ago

libubox: update to latest version, adds a new function in jshn.sh

File size: 1.6 KB
Line 
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=libubox
4PKG_VERSION:=2012-05-14
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:=97ed91fa77e3e2926bab3e70955a0e2b511db86e
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12PKG_MIRROR_MD5SUM:=f42a5e5c96ce19694dd2ab6d9ba03578
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.