mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
lua: move Lua packages under lang/lua sub-folder
There are roughly 50 Lua packages. It's about time we consider a proposal for moving all of them under a lang/lua sub-folder. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
1545e6510f
commit
7eebedcdfc
44
lang/lua/lua-openssl/Makefile
Normal file
44
lang/lua/lua-openssl/Makefile
Normal file
@@ -0,0 +1,44 @@
|
||||
#
|
||||
# Copyright (C) 2016 Amnon Paz <pazamnon@gmail.com>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=lua-openssl
|
||||
PKG_SOURCE_VERSION:=0.10.0-0
|
||||
PKG_VERSION:=$(subst -,.,$(PKG_SOURCE_VERSION))
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/zhaozg/lua-openssl.git
|
||||
PKG_MIRROR_HASH:=e3c6173321132e2ce69cdedd8638acdc970a3fb1c0c3677d4edd9fe39e84853f
|
||||
|
||||
PKG_MAINTAINER:=Amnon Paz <pazamnon@gmail.com>
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
define Package/lua-openssl
|
||||
SUBMENU:=Lua
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
TITLE:=Lua openSSL binding
|
||||
URL:=http://github.com/zhaozg/lua-openssl
|
||||
DEPENDS:=+lua +libopenssl +librt
|
||||
endef
|
||||
|
||||
define Package/lua-openssl/description
|
||||
A free, MIT-licensed OpenSSL binding for Lua.
|
||||
endef
|
||||
|
||||
define Package/lua-openssl/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/lua
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lua/5.1/openssl.so $(1)/usr/lib/lua/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,lua-openssl))
|
||||
14
lang/lua/lua-openssl/patches/010-no-luajit.patch
Normal file
14
lang/lua/lua-openssl/patches/010-no-luajit.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -12,10 +12,7 @@ endif()
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
-find_package(LuaJIT)
|
||||
-if(NOT LUAJIT_FOUND)
|
||||
- find_package(Lua REQUIRED)
|
||||
-endif()
|
||||
+find_package(Lua REQUIRED)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
|
||||
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
||||
Reference in New Issue
Block a user