[package] fix luasocket title, thanks to OrazioPirataDelloSpazio
[packages.git] / lang / luasocket / Makefile
1
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=luasocket
12 PKG_VERSION:=2.0.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/2664/
17 PKG_MD5SUM:=41445b138deb7bcfe97bff957503da8e
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/luasocket
22   SUBMENU:=LUA
23   SECTION:=lang
24   CATEGORY:=Languages
25   TITLE:=LUASocket
26   URL:=http://luasocket.luaforge.net/
27   DEPENDS:=lua
28 endef
29
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.
34 endef
35
36 define Build/Configure
37 endef
38
39 define Build/Compile
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" 
44 endef
45
46
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
51 endef
52
53 $(eval $(call BuildPackage,luasocket))