684ffca1f6d18509ca49cbfd57b9503a8f4817de
[openwrt/svn-archive/archive.git] / package / libubox / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libubox
4 PKG_VERSION:=2011-02-11
5 PKG_RELEASE:=1
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:=83037e345dd702f2a013322139ef0b7bab7e170f
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12 CMAKE_INSTALL:=1
13
14 include $(INCLUDE_DIR)/package.mk
15 include $(INCLUDE_DIR)/cmake.mk
16
17 define Package/libubox
18 SECTION:=libs
19 CATEGORY:=Libraries
20 TITLE:=Basic utility library
21 DEPENDS:=+libjson
22 endef
23
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
33 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
34
35 define Package/libubox/install
36 $(INSTALL_DIR) $(1)/lib/
37 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.so $(1)/lib/
38 endef
39
40 $(eval $(call BuildPackage,libubox))
41