kumquat-buildroot/package/luv/luv.mk
Jörg Krause e512a4b9d0 luv: new package
libuv bindings for LuaJIT and Lua.

[Thomas:
  - Move the package to the sub-menu of Lua modules.
  - Remove no longer needed dependency on
    BR2_PACKAGE_HAS_LUAINTERPRETER.
  - Propagate dependencies of libuv (mmu, !static, threads)
  - Update to upstream version 1.7.4-4.
  - Add hash file.]

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-09-21 16:03:59 +02:00

31 lines
714 B
Makefile

################################################################################
#
# luv
#
################################################################################
LUV_VERSION = 1.7.4-4
LUV_SOURCE = luv-$(LUV_VERSION).tar.gz
LUV_SITE = https://github.com/luvit/luv/releases/download/$(LUV_VERSION)
LUV_LICENSE = Apache-2.0
LUV_LICENSE_FILE = LICENSE.txt
LUV_DEPENDENCIES = libuv
LUV_INSTALL_STAGING = YES
LUV_CONF_OPTS += \
-DBUILD_MODULE=OFF \
-DWITH_SHARED_LIBUV=ON \
-DLUA_BUILD_TYPE=System
ifeq ($(BR2_PACKAGE_LUAJIT),y)
LUV_DEPENDENCIES += luajit
LUV_CONF_OPTS += \
-DWITH_LUA_ENGINE=LuaJIT
else
LUV_DEPENDENCIES += lua
LUV_CONF_OPTS += \
-DWITH_LUA_ENGINE=Lua
endif
$(eval $(cmake-package))