You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.3 KiB
57 lines
1.3 KiB
################################################################################
|
|
#
|
|
# lua
|
|
#
|
|
################################################################################
|
|
|
|
LUA_ABIVERSION = 5.2
|
|
LUA_VERSION = 5.2.4
|
|
LUA_DIR = lua-$(LUA_VERSION)
|
|
LUA_SOURCE = lua-$(LUA_VERSION).tar.gz
|
|
LUA_SITE = https://www.lua.org
|
|
|
|
LUA_DEPENDENCIES = ncurses
|
|
|
|
LUA_MAKE_ARGS = \
|
|
linux
|
|
|
|
LUA_MAKE_OPTS = \
|
|
PKG_VERSION=$(LUA_VERSION) \
|
|
$(TARGET_CONFIGURE_ENVIRONMENT) \
|
|
AR="$(TARGET_AR) rcu" \
|
|
LDFLAGS="$(TARGET_LDFLAGS)"
|
|
|
|
LUA_MAKE_INSTALL_OPTS = \
|
|
INSTALL_TOP=$(TARGET_prefix) \
|
|
INSTALL_MAN=$(TARGET_DIR)$(REMOVE_man1dir)
|
|
|
|
define LUA_MAKE_PC
|
|
$(CHDIR)/$($(PKG)_DIR); \
|
|
$($(PKG)_MAKE) pc INSTALL_TOP=$(TARGET_prefix) > $(TARGET_libdir)/pkgconfig/lua.pc
|
|
endef
|
|
LUA_POST_BUILD_HOOKS += LUA_MAKE_PC
|
|
|
|
define LUA_TARGET_CLEANUP
|
|
$(TARGET_RM) $(TARGET_bindir)/luac
|
|
endef
|
|
LUA_TARGET_FINALIZE_HOOKS += LUA_TARGET_CLEANUP
|
|
|
|
lua: | $(TARGET_DIR)
|
|
$(call generic-package)
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
HOST_LUA_PATCH = 0001-fix-LUA_ROOT.patch
|
|
HOST_LUA_PATCH += 0002-remove-readline.patch
|
|
|
|
HOST_LUA_MAKE_ARGS = \
|
|
linux
|
|
|
|
HOST_LUA_MAKE_INSTALL_OPTS = \
|
|
INSTALL_TOP=$(HOST_DIR) \
|
|
INSTALL_MAN=$(HOST_DIR)/share/man/man1
|
|
|
|
HOST_LUA = $(HOST_DIR)/bin/lua
|
|
|
|
host-lua: | $(HOST_DIR)
|
|
$(call host-generic-package)
|
|
|