2009-08-15 14:43:53 +00:00
|
|
|
#
|
2009-02-15 13:51:28 +00:00
|
|
|
# Copyright (C) 2009 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=luasec
|
2009-08-15 14:43:53 +00:00
|
|
|
PKG_VERSION:=0.3.3
|
2009-02-15 13:51:28 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-08-15 14:43:53 +00:00
|
|
|
PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/4160
|
|
|
|
PKG_MD5SUM:=88261020372dfe8f850fdb60e4fae186
|
2009-02-15 13:51:28 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/luasec
|
2009-04-25 20:36:30 +00:00
|
|
|
SUBMENU:=Lua
|
2009-02-15 13:51:28 +00:00
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
2009-08-15 14:43:53 +00:00
|
|
|
TITLE:=LuaSec
|
2009-02-15 13:51:28 +00:00
|
|
|
URL:=http://luasec.luaforge.net/
|
2009-04-27 22:34:46 +00:00
|
|
|
DEPENDS:=+lua +libopenssl +luasocket
|
2009-02-15 13:51:28 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/luasec/description
|
|
|
|
LuaSec is a binding for OpenSSL library to provide TLS/SSL communication.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/src linux \
|
2009-04-29 12:56:17 +00:00
|
|
|
INCDIR="$(TARGET_CPPFLAGS)" \
|
|
|
|
LIBDIR="$(TARGET_LDFLAGS)" \
|
2009-10-29 16:50:46 +00:00
|
|
|
CC="$(TARGET_CC) $(TARGET_CFLAGS) -std=gnu99" \
|
2009-08-15 14:43:53 +00:00
|
|
|
LD="$(TARGET_CROSS)ld -shared"
|
2009-02-15 13:51:28 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/luasec/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/{ssl.so,ssl.lua} $(1)/usr/lib/lua
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,luasec))
|