diff options
Diffstat (limited to 'package/luasocket')
-rw-r--r-- | package/luasocket/Config.in | 10 | ||||
-rw-r--r-- | package/luasocket/luasocket.mk | 36 |
2 files changed, 46 insertions, 0 deletions
diff --git a/package/luasocket/Config.in b/package/luasocket/Config.in new file mode 100644 index 000000000..298db56b0 --- /dev/null +++ b/package/luasocket/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_LUASOCKET + bool "luasocket" + depends on BR2_PACKAGE_LUA_SHARED_LIBRARY + help + LuaSocket is the most comprehensive networking support library + for the Lua language. + It provides easy access to TCP, UDP, DNS, SMTP, + FTP, HTTP, MIME and much more. + + http://luaforge.net/projects/luasocket/ diff --git a/package/luasocket/luasocket.mk b/package/luasocket/luasocket.mk new file mode 100644 index 000000000..e0faf034f --- /dev/null +++ b/package/luasocket/luasocket.mk @@ -0,0 +1,36 @@ +############################################################# +# +# luasocket +# +############################################################# + +LUASOCKET_VERSION = 2.0.2 +LUASOCKET_SITE = http://luaforge.net/frs/download.php/2664 +LUASOCKET_DEPENDENCIES = lua + +define LUASOCKET_BUILD_CMDS + $(MAKE) -C $(@D) -f makefile \ + CC="$(TARGET_CC)" LD="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS) -fPIC" +endef + +define LUASOCKET_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D) -f makefile \ + INSTALL_TOP_SHARE="$(TARGET_DIR)/usr/share/lua" \ + INSTALL_TOP_LIB="$(TARGET_DIR)/usr/lib/lua" install +endef + +define LUASOCKET_UNINSTALL_TARGET_CMDS + rm -rf "$(TARGET_DIR)/usr/lib/lua/mime" + rm -rf "$(TARGET_DIR)/usr/lib/lua/socket" + rm -rf "$(TARGET_DIR)/usr/share/lua/socket" + rm -f "$(TARGET_DIR)/usr/share/lua/socket.lua" + rm -f "$(TARGET_DIR)/usr/share/lua/mime.lua" + rm -f "$(TARGET_DIR)/usr/share/lua/ltn12.lua" +endef + +define LUASOCKET_CLEAN_CMDS + $(MAKE) -C $(@D) -f makefile clean +endef + +$(eval $(call GENTARGETS,package,luasocket)) |