Files
packages/lang/lua/lua-openssl/Makefile
T
Alexandru Ardelean a3d2536eb0 lua-openssl: fix Lua detection with CMake 4.3
FindLuaJIT.cmake uses NO_DEFAULT_PATH and only searches hardcoded
luajit-specific paths, so it never finds regular Lua. However if
LUAJIT_INCLUDE_DIRS and LUAJIT_LIBRARY are pre-set in the CMake
cache, find_path/find_library skip their searches, the module sets
LUAJIT_FOUND=ON and also sets LUA_INCLUDE_DIR/LUA_LIBRARIES from
those values, and the if(NOT LUAJIT_FOUND) guard skips the broken
find_package(Lua REQUIRED) call that fails under CMake 4.3.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-05-04 19:26:53 +03:00

49 lines
1.2 KiB
Makefile

#
# 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.11.1
PKG_VERSION:=$(subst -,.,$(PKG_SOURCE_VERSION))
PKG_RELEASE:=3
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/zhaozg/lua-openssl.git
PKG_MIRROR_HASH:=286531d44618d2c8843c9acfbe9d56d309caed0a9374b4559b1077099b795958
PKG_MAINTAINER:=Amnon Paz <pazamnon@gmail.com>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
CMAKE_OPTIONS += \
-DLUAJIT_INCLUDE_DIRS=$(STAGING_DIR)/usr/include \
-DLUAJIT_LIBRARY=$(STAGING_DIR)/usr/lib/liblua.so
define Package/lua-openssl
SUBMENU:=Lua
SECTION:=lang
CATEGORY:=Languages
TITLE:=Lua openSSL binding
URL:=http://github.com/zhaozg/lua-openssl
DEPENDS:=+liblua +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))