libubox: add packaging info for uloop lua binding
authorJohn Crispin <john@openwrt.org>
Tue, 17 Sep 2013 21:44:52 +0000 (21:44 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 17 Sep 2013 21:44:52 +0000 (21:44 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38018

package/libs/libubox/Makefile

index 2d6967bdcaef0efe4186080cba5aada82437e2c5..f79a34f963cac277f53c61e57f007ab8d01f797f 100644 (file)
@@ -54,6 +54,13 @@ define Package/libjson-script
   TITLE:=Minimalistic JSON based scripting engine
 endef
 
+define Package/libubox-lua
+  SECTION:=libs
+  CATEGORY:=Libraries
+  DEPENDS:=+libubox +liblua
+  TITLE:=Lua binding for the OpenWrt Basic utility library
+endef
+
 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
 CMAKE_OPTIONS = \
        -DLUAPATH=/usr/lib/lua
@@ -79,7 +86,13 @@ define Package/libjson-script/install
        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libjson_script.so $(1)/lib/
 endef
 
+define Package/libubox-lua/install
+       $(INSTALL_DIR) $(1)/usr/lib/lua
+       $(CP) $(PKG_BUILD_DIR)/lua/uloop.so $(1)/usr/lib/lua/
+endef
+
 $(eval $(call BuildPackage,libubox))
 $(eval $(call BuildPackage,libblobmsg-json))
 $(eval $(call BuildPackage,jshn))
 $(eval $(call BuildPackage,libjson-script))
+$(eval $(call BuildPackage,libubox-lua))