3e6b587122
git-svn-id: svn://svn.openwrt.org/openwrt/packages@15412 3c298f89-4303-0410-b956-a3cf2f4a3e73
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
#
|
|
# 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
|
|
PKG_VERSION:=0.3
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/3920
|
|
PKG_MD5SUM:=a88f2c05d22abfcc9ab92bd1d6f32b37
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/luasec
|
|
SUBMENU:=Lua
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=LuaSec
|
|
URL:=http://luasec.luaforge.net/
|
|
DEPENDS:=lua +libopenssl +luasocket
|
|
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 \
|
|
INCDIR="-I$(STAGING_DIR)/usr/include/" \
|
|
LIBDIR="-L$(STAGING_DIR)/usr/lib/" \
|
|
CC="$(TARGET_CC) $(TARGET_CFLAGS)" \
|
|
LD="$(TARGET_CROSS)ld -shared"
|
|
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))
|