2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://luaforge.net
/frs
/download.php
/2664/
17 PKG_MD5SUM
:=41445b138deb7bcfe97bff957503da8e
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/luasocket
26 URL
:=http
://luasocket.luaforge.net
/
30 define Package
/luasocket
/description
31 LuaSocket is the most comprehensive networking support
32 library for the Lua language. It provides easy access to
33 TCP
, UDP
, DNS
, SMTP
, FTP
, HTTP
, MIME and much more.
36 define Build
/Configure
40 $(MAKE
) -C
$(PKG_BUILD_DIR
)/ all \
41 LIBDIR
="-L$(STAGING_DIR)/usr/lib/" \
42 CC
="$(TARGET_CC) $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
43 LD
="$(TARGET_CROSS)ld -shared"
47 define Package
/luasocket
/install
48 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
49 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/src
/mime.
{so
.1.0.2,lua
} $(1)/usr
/lib
/lua
50 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/src
/socket.
{so
.2.0.2,lua
} $(1)/usr
/lib
/lua
53 $(eval
$(call BuildPackage
,luasocket
))