mirror of https://git.wownero.com/dsc/mxe.git
add package luv to luarocks plugin
This commit is contained in:
parent
ab6b7d9f05
commit
c03bcd35dd
|
@ -0,0 +1,69 @@
|
|||
This file is part of MXE.
|
||||
See index.html for further information.
|
||||
|
||||
Contains ad hoc patches for cross building.
|
||||
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Boris Nagaev <bnagaev@gmail.com>
|
||||
Date: Mon, 25 Apr 2016 02:31:37 +0200
|
||||
Subject: [PATCH] add rockspec from upstream
|
||||
|
||||
|
||||
diff --git a/luv-1.9.0-1.rockspec b/luv-1.9.0-1.rockspec
|
||||
new file mode 100644
|
||||
index 1111111..2222222
|
||||
--- /dev/null
|
||||
+++ b/luv-1.9.0-1.rockspec
|
||||
@@ -0,0 +1,34 @@
|
||||
+package = "luv"
|
||||
+version = "1.9.0-1"
|
||||
+source = {
|
||||
+ url = 'https://github.com/luvit/luv/releases/download/'..version..'/luv-'..version..'.tar.gz'
|
||||
+}
|
||||
+
|
||||
+description = {
|
||||
+ summary = "Bare libuv bindings for lua",
|
||||
+ detailed = [[
|
||||
+libuv bindings for luajit and lua 5.1/5.2/5.3.
|
||||
+
|
||||
+This library makes libuv available to lua scripts. It was made for the luvit
|
||||
+project but should usable from nearly any lua project.
|
||||
+ ]],
|
||||
+ homepage = "https://github.com/luvit/luv",
|
||||
+ license = "Apache 2.0"
|
||||
+}
|
||||
+
|
||||
+dependencies = {
|
||||
+ "lua >= 5.1"
|
||||
+}
|
||||
+
|
||||
+build = {
|
||||
+ type = 'cmake',
|
||||
+ variables = {
|
||||
+ CMAKE_C_FLAGS="$(CFLAGS)",
|
||||
+ CMAKE_MODULE_LINKER_FLAGS="$(LIBFLAG)",
|
||||
+ LUA_LIBDIR="$(LUA_LIBDIR)",
|
||||
+ LUA_INCDIR="$(LUA_INCDIR)",
|
||||
+ LUA="$(LUA)",
|
||||
+ LIBDIR="$(LIBDIR)",
|
||||
+ LUADIR="$(LUADIR)",
|
||||
+ },
|
||||
+}
|
||||
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Boris Nagaev <bnagaev@gmail.com>
|
||||
Date: Mon, 25 Apr 2016 02:25:47 +0200
|
||||
Subject: [PATCH] use external libuv
|
||||
|
||||
|
||||
diff --git a/luv-1.9.0-1.rockspec b/luv-1.9.0-1.rockspec
|
||||
index 1111111..2222222 100644
|
||||
--- a/luv-1.9.0-1.rockspec
|
||||
+++ b/luv-1.9.0-1.rockspec
|
||||
@@ -30,5 +30,6 @@ build = {
|
||||
LUA="$(LUA)",
|
||||
LIBDIR="$(LIBDIR)",
|
||||
LUADIR="$(LUADIR)",
|
||||
+ WITH_SHARED_LIBUV="ON",
|
||||
},
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
# This file is part of MXE.
|
||||
# See index.html for further information.
|
||||
|
||||
PKG := luv
|
||||
$(PKG)_WEBSITE := https://github.com/luvit/luv
|
||||
$(PKG)_OWNER := https://github.com/starius
|
||||
$(PKG)_IGNORE :=
|
||||
$(PKG)_VERSION := 1.9.0-1
|
||||
$(PKG)_CHECKSUM := fab5ba54f141711afc432216d03f3664710798204c78a2a7414479f10b2b2d83
|
||||
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
||||
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
|
||||
$(PKG)_URL := https://github.com/luvit/luv/releases/download/1.9.0-1/$($(PKG)_FILE)
|
||||
$(PKG)_DEPS := gcc libuv luarocks
|
||||
|
||||
define $(PKG)_UPDATE
|
||||
$(call MXE_GET_GITHUB_TAGS, luvit/luv)
|
||||
endef
|
||||
|
||||
# shared-only because luarocks is shared-only
|
||||
|
||||
define $(PKG)_BUILD_SHARED
|
||||
cd '$(1)' && '$(TARGET)-luarocks' make
|
||||
endef
|
Loading…
Reference in New Issue