1 include $(TOPDIR
)/rules.mk
4 PKG_VERSION
:=2011-02-11
5 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)
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
14 include $(INCLUDE_DIR
)/package.mk
15 include $(INCLUDE_DIR
)/cmake.mk
17 define Package
/libubox
20 TITLE
:=Basic utility library
25 define Package
/libblobmsg-json
28 TITLE
:=blobmsg
<-> json conversion library
33 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
35 define Package
/libubox
/install
36 $(INSTALL_DIR
) $(1)/lib
/
37 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/libubox.so
$(1)/lib
/
40 define Package
/libblobmsg-json
/install
41 $(INSTALL_DIR
) $(1)/lib
/
42 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/libblobmsg_json.so
$(1)/lib
/
45 $(eval
$(call BuildPackage
,libubox
))
46 $(eval
$(call BuildPackage
,libblobmsg-json
))