mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
lua: remove 3 sub-options, always install all
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
9de94e3477
commit
76983349cf
@ -7,29 +7,11 @@ config BR2_PACKAGE_LUA
|
|||||||
|
|
||||||
if BR2_PACKAGE_LUA
|
if BR2_PACKAGE_LUA
|
||||||
|
|
||||||
config BR2_PACKAGE_LUA_COMPILER
|
|
||||||
bool "lua compiler"
|
|
||||||
select BR2_PACKAGE_LUA_SHARED_LIBRARY
|
|
||||||
help
|
|
||||||
Install luac binary
|
|
||||||
|
|
||||||
config BR2_PACKAGE_LUA_INTERPRETER
|
|
||||||
bool "lua interpreter"
|
|
||||||
select BR2_PACKAGE_LUA_SHARED_LIBRARY
|
|
||||||
help
|
|
||||||
Install lua binary
|
|
||||||
|
|
||||||
config BR2_PACKAGE_LUA_INTERPRETER_READLINE
|
config BR2_PACKAGE_LUA_INTERPRETER_READLINE
|
||||||
bool "readline support"
|
bool "readline support"
|
||||||
depends on BR2_PACKAGE_LUA_INTERPRETER
|
|
||||||
select BR2_PACKAGE_READLINE
|
select BR2_PACKAGE_READLINE
|
||||||
select BR2_PACKAGE_NCURSES
|
select BR2_PACKAGE_NCURSES
|
||||||
help
|
help
|
||||||
Enables command-line editing in the lua interpreter.
|
Enables command-line editing in the lua interpreter.
|
||||||
|
|
||||||
config BR2_PACKAGE_LUA_SHARED_LIBRARY
|
|
||||||
bool "shared library"
|
|
||||||
help
|
|
||||||
Install shared liblua.so
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
@ -10,11 +10,7 @@ LUA_INSTALL_STAGING = YES
|
|||||||
LUA_LICENSE = MIT
|
LUA_LICENSE = MIT
|
||||||
LUA_LICENSE_FILES = COPYRIGHT
|
LUA_LICENSE_FILES = COPYRIGHT
|
||||||
|
|
||||||
LUA_CFLAGS = -Wall
|
LUA_CFLAGS = -Wall -fPIC
|
||||||
ifeq ($(BR2_PACKAGE_LUA_SHARED_LIBRARY),y)
|
|
||||||
LUA_CFLAGS += -fPIC
|
|
||||||
endif
|
|
||||||
|
|
||||||
LUA_MYLIBS += -ldl
|
LUA_MYLIBS += -ldl
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LUA_INTERPRETER_READLINE),y)
|
ifeq ($(BR2_PACKAGE_LUA_INTERPRETER_READLINE),y)
|
||||||
@ -46,13 +42,11 @@ define HOST_LUA_BUILD_CMDS
|
|||||||
PKG_VERSION=$(LUA_VERSION) -C $(@D)/src all
|
PKG_VERSION=$(LUA_VERSION) -C $(@D)/src all
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LUA_SHARED_LIBRARY),y)
|
|
||||||
define LUA_INSTALL_STAGING_SHARED_LIB
|
define LUA_INSTALL_STAGING_SHARED_LIB
|
||||||
$(INSTALL) -m 0755 -D $(@D)/src/liblua.so.$(LUA_VERSION) \
|
$(INSTALL) -m 0755 -D $(@D)/src/liblua.so.$(LUA_VERSION) \
|
||||||
$(STAGING_DIR)/usr/lib/liblua.so.$(LUA_VERSION)
|
$(STAGING_DIR)/usr/lib/liblua.so.$(LUA_VERSION)
|
||||||
ln -sf liblua.so.$(LUA_VERSION) $(STAGING_DIR)/usr/lib/liblua.so
|
ln -sf liblua.so.$(LUA_VERSION) $(STAGING_DIR)/usr/lib/liblua.so
|
||||||
endef
|
endef
|
||||||
endif
|
|
||||||
|
|
||||||
define LUA_INSTALL_STAGING_CMDS
|
define LUA_INSTALL_STAGING_CMDS
|
||||||
$(INSTALL) -m 0644 -D $(@D)/etc/lua.pc \
|
$(INSTALL) -m 0644 -D $(@D)/etc/lua.pc \
|
||||||
@ -66,29 +60,19 @@ define LUA_INSTALL_STAGING_CMDS
|
|||||||
$(INSTALL) -m 0644 -D $(@D)/src/lauxlib.h $(STAGING_DIR)/usr/include/lauxlib.h
|
$(INSTALL) -m 0644 -D $(@D)/src/lauxlib.h $(STAGING_DIR)/usr/include/lauxlib.h
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LUA_INTERPRETER),y)
|
|
||||||
define LUA_INSTALL_INTERPRETER
|
define LUA_INSTALL_INTERPRETER
|
||||||
$(INSTALL) -m 0755 -D $(@D)/src/lua $(TARGET_DIR)/usr/bin/lua
|
$(INSTALL) -m 0755 -D $(@D)/src/lua $(TARGET_DIR)/usr/bin/lua
|
||||||
endef
|
endef
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LUA_COMPILER),y)
|
|
||||||
define LUA_INSTALL_COMPILER
|
define LUA_INSTALL_COMPILER
|
||||||
$(INSTALL) -m 0755 -D $(@D)/src/luac $(TARGET_DIR)/usr/bin/luac
|
$(INSTALL) -m 0755 -D $(@D)/src/luac $(TARGET_DIR)/usr/bin/luac
|
||||||
endef
|
endef
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_LUA_SHARED_LIBRARY),y)
|
|
||||||
define LUA_INSTALL_LIBRARY
|
define LUA_INSTALL_LIBRARY
|
||||||
$(INSTALL) -m 0755 -D $(@D)/src/liblua.so.$(LUA_VERSION) \
|
$(INSTALL) -m 0755 -D $(@D)/src/liblua.so.$(LUA_VERSION) \
|
||||||
$(TARGET_DIR)/usr/lib/liblua.so.$(LUA_VERSION)
|
$(TARGET_DIR)/usr/lib/liblua.so.$(LUA_VERSION)
|
||||||
ln -sf liblua.so.$(LUA_VERSION) $(TARGET_DIR)/usr/lib/liblua.so
|
ln -sf liblua.so.$(LUA_VERSION) $(TARGET_DIR)/usr/lib/liblua.so
|
||||||
$(INSTALL) -m 0644 -D $(@D)/src/liblua.a $(TARGET_DIR)/usr/lib/liblua.a
|
$(INSTALL) -m 0644 -D $(@D)/src/liblua.a $(TARGET_DIR)/usr/lib/liblua.a
|
||||||
endef
|
|
||||||
else
|
|
||||||
define LUA_INSTALL_LIBRARY
|
|
||||||
$(INSTALL) -m 0644 -D $(@D)/src/liblua.a $(TARGET_DIR)/usr/lib/liblua.a
|
|
||||||
endef
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_HAVE_DEVFILES),y)
|
ifeq ($(BR2_HAVE_DEVFILES),y)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user