2016-04-11 11:43:18 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# turbolua
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-02-22 11:19:06 +01:00
|
|
|
TURBOLUA_VERSION = v2.1.0
|
2016-04-11 11:43:18 +02:00
|
|
|
TURBOLUA_SITE = $(call github,kernelsauce,turbo,$(TURBOLUA_VERSION))
|
|
|
|
TURBOLUA_DEPENDENCIES = luajit
|
|
|
|
TURBOLUA_LICENSE = Apache-2.0
|
|
|
|
TURBOLUA_LICENSE_FILES = LICENSE
|
|
|
|
|
|
|
|
TURBOLUA_MAKE_OPTS = \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
LUAJIT_VERSION="$(LUAJIT_VERSION)"
|
|
|
|
|
2016-05-13 12:00:24 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
TURBOLUA_MAKE_OPTS += SSL=openssl
|
|
|
|
TURBOLUA_DEPENDENCIES += openssl
|
|
|
|
else
|
|
|
|
TURBOLUA_MAKE_OPTS += SSL=none
|
|
|
|
endif
|
|
|
|
|
2016-04-11 11:43:18 +02:00
|
|
|
define TURBOLUA_BUILD_CMDS
|
2016-10-17 18:07:17 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TURBOLUA_MAKE_OPTS) -C $(@D) all
|
2016-04-11 11:43:18 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define TURBOLUA_INSTALL_TARGET_CMDS
|
2016-10-17 18:07:17 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TURBOLUA_MAKE_OPTS) LDCONFIG=true \
|
2016-04-11 11:43:18 +02:00
|
|
|
PREFIX="$(TARGET_DIR)/usr" -C $(@D) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|