[toolchain] introduce a USE_EXTERNAL_LIBC symbol which gets selected by EXTERNAL_TOOL...
[openwrt.git] / package / libubox / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libubox
4 PKG_VERSION:=2011-11-17
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_URL:=git://nbd.name/luci2/libubox.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=f565a7af429bd2d5fa4db9196724bee42d1f597b
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12 PKG_MIRROR_MD5SUM:=ce8163174091ee4d0f3de510a38f53bb
13 CMAKE_INSTALL:=1
14
15 include $(INCLUDE_DIR)/package.mk
16 include $(INCLUDE_DIR)/cmake.mk
17
18 define Package/libubox
19 SECTION:=libs
20 CATEGORY:=Libraries
21 TITLE:=Basic utility library
22 DEPENDS:=
23 endef
24
25 define Package/libblobmsg-json
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=blobmsg <-> json conversion library
29 DEPENDS:=+libjson
30 endef
31
32 define Package/jshn
33 SECTION:=utils
34 CATEGORY:=Utilities
35 DEPENDS:=+libjson
36 TITLE:=JSON SHell Notation
37 endef
38
39 define Package/jshn/description
40 Library for parsing and generating JSON from shell scripts
41 endef
42
43 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
44
45 define Package/libubox/install
46 $(INSTALL_DIR) $(1)/lib/
47 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libubox.so $(1)/lib/
48 endef
49
50 define Package/libblobmsg-json/install
51 $(INSTALL_DIR) $(1)/lib/
52 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libblobmsg_json.so $(1)/lib/
53 endef
54
55 define 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
59 endef
60
61 $(eval $(call BuildPackage,libubox))
62 $(eval $(call BuildPackage,libblobmsg-json))
63 $(eval $(call BuildPackage,jshn))
64
This page took 0.051385 seconds and 5 git commands to generate.