coolsnowwolf-packages/lang/luasec/Makefile

66 lines
1.5 KiB
Makefile
Raw Normal View History

2018-10-18 16:56:47 +08:00
#
# Copyright (C) 2009-2014 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:=1.2.0
2018-10-18 16:56:47 +08:00
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
2020-07-08 14:18:52 +08:00
PKG_SOURCE_URL:=https://codeload.github.com/brunoos/luasec/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=2e86ef8f3486dc1bbecd752d16741a59a01633279facdfe5631f33b6eed1a30a
2018-10-18 16:56:47 +08:00
MAINTAINER:=W. Michael Petullo <mike@flyn.org>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
2020-07-08 14:18:52 +08:00
PKG_BUILD_PARALLEL:=1
2018-10-18 16:56:47 +08:00
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/luasec
SUBMENU:=Lua
SECTION:=lang
CATEGORY:=Languages
TITLE:=LuaSec
URL:=https://github.com/brunoos/luasec
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
2020-07-08 14:18:52 +08:00
TARGET_CFLAGS += $(FPIC)
TARGET_LDFLAGS += $(FPIC)
2018-10-18 16:56:47 +08:00
MAKE_FLAGS += \
2020-07-08 14:18:52 +08:00
LD="$(TARGET_CC)" \
INC_PATH="" \
LIB_PATH="" \
2018-10-18 16:56:47 +08:00
LUACPATH="$(PKG_INSTALL_DIR)/usr/lib/lua" \
LUAPATH="$(PKG_INSTALL_DIR)/usr/lib/lua"
define Build/Compile
$(call Build/Compile/Default,linux)
endef
define Package/luasec/install
$(INSTALL_DIR) $(1)/usr/lib/lua
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lua/ssl.so $(1)/usr/lib/lua/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/lua/ssl.lua $(1)/usr/lib/lua/
$(INSTALL_DIR) $(1)/usr/lib/lua/ssl
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/lua/ssl/https.lua $(1)/usr/lib/lua/ssl/
endef
$(eval $(call BuildPackage,luasec))