Commit b9b76f74 authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Peter Korsgaard
Browse files

New lua module: luasocket

parent 15ec5ee8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@

	New GTK-based configurator, usable using 'make gconfig'.

	New packages: cgilua, coxpcall, luafilesystem, rings
	New packages: cgilua, coxpcall, luafilesystem, luasocket, rings

	Updated/fixed packages: cdrkit, libidn, netperf

+1 −0
Original line number Diff line number Diff line
@@ -211,6 +211,7 @@ if BR2_PACKAGE_LUA
source "package/cgilua/Config.in"
source "package/coxpcall/Config.in"
source "package/luafilesystem/Config.in"
source "package/luasocket/Config.in"
source "package/rings/Config.in"
endif
source "package/microperl/Config.in"
+10 −0
Original line number Diff line number Diff line
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/
+36 −0
Original line number Diff line number Diff line
#############################################################
#
# 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))