fb71628e4457c3adbbe086bdc61617e60e104a5e
[openwrt/svn-archive/archive.git] / lang / luasec / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=luasec
11 PKG_VERSION:=0.3.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/4160
16 PKG_MD5SUM:=88261020372dfe8f850fdb60e4fae186
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/luasec
21 SUBMENU:=Lua
22 SECTION:=lang
23 CATEGORY:=Languages
24 TITLE:=LuaSec
25 URL:=http://luasec.luaforge.net/
26 DEPENDS:=+lua +libopenssl +luasocket
27 endef
28
29 define Package/luasec/description
30 LuaSec is a binding for OpenSSL library to provide TLS/SSL communication.
31 endef
32
33 define Build/Configure
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR)/src linux \
38 INCDIR="$(TARGET_CPPFLAGS)" \
39 LIBDIR="$(TARGET_LDFLAGS)" \
40 CC="$(TARGET_CC) $(TARGET_CFLAGS) -std=gnu99" \
41 LD="$(TARGET_CROSS)ld -shared"
42 endef
43
44
45 define Package/luasec/install
46 $(INSTALL_DIR) $(1)/usr/lib/lua
47 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/{ssl.so,ssl.lua} $(1)/usr/lib/lua
48 endef
49
50 $(eval $(call BuildPackage,luasec))