summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/luarocks/luv-1-fixes.patch69
-rw-r--r--plugins/luarocks/luv.mk23
2 files changed, 92 insertions, 0 deletions
diff --git a/plugins/luarocks/luv-1-fixes.patch b/plugins/luarocks/luv-1-fixes.patch
new file mode 100644
index 0000000..bce9e26
--- /dev/null
+++ b/plugins/luarocks/luv-1-fixes.patch
@@ -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",
+ },
+ }
diff --git a/plugins/luarocks/luv.mk b/plugins/luarocks/luv.mk
new file mode 100644
index 0000000..b36b07a
--- /dev/null
+++ b/plugins/luarocks/luv.mk
@@ -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