aboutsummaryrefslogtreecommitdiff
path: root/package/libuv
diff options
context:
space:
mode:
authorGravatar Gustavo Zacarias <gustavo@zacarias.com.ar>2014-07-18 17:24:18 -0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-19 11:40:15 +0200
commit44584bddd494c4509b795fc63974938205d7751d (patch)
treeb2cfcd2686cafb4a8c1cc2ec9694a6b8dc6e5c58 /package/libuv
parented8ab0ce3d8e43a028b1e6568688f7e2122af6e8 (diff)
downloadbuildroot-44584bddd494c4509b795fc63974938205d7751d.tar.gz
buildroot-44584bddd494c4509b795fc63974938205d7751d.tar.bz2
libuv: new package
[Thomas: add comment suggested by Yann E. Morin.] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libuv')
-rw-r--r--package/libuv/Config.in14
-rw-r--r--package/libuv/libuv.mk27
2 files changed, 41 insertions, 0 deletions
diff --git a/package/libuv/Config.in b/package/libuv/Config.in
new file mode 100644
index 0000000000..60838374d5
--- /dev/null
+++ b/package/libuv/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_LIBUV
+ bool "libuv"
+ depends on BR2_INET_IPV6
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_USE_MMU # fork()
+ help
+ libuv is a multi-platform support library with a focus
+ on asynchronous I/O.
+
+ https://github.com/joyent/libuv
+
+comment "libuv needs a toolchain w/ IPv6, threads"
+ depends on !BR2_INET_IPV6 || !BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_USE_MMU
diff --git a/package/libuv/libuv.mk b/package/libuv/libuv.mk
new file mode 100644
index 0000000000..986aceeb1f
--- /dev/null
+++ b/package/libuv/libuv.mk
@@ -0,0 +1,27 @@
+################################################################################
+#
+# libuv
+#
+################################################################################
+
+LIBUV_VERSION = v0.11.26
+LIBUV_SITE = $(call github,joyent,libuv,$(LIBUV_VERSION))
+LIBUV_DEPENDENCIES = host-pkgconf
+LIBUV_INSTALL_STAGING = YES
+LIBUV_AUTORECONF = YES
+LIBUV_LICENSE = BSD-2c, BSD-3c, ISC, MIT
+LIBUV_LICENSE_FILES = LICENSE
+
+# Upstream needs tests to be run sequentially. This is the default in
+# automake 1.11 and before, but not starting in 1.12. To maintain
+# sequentiality in 1.12 and later, the automake option 'serial-tests'
+# must be used, Unfortunately, it is not recognised by 1.11 and
+# before. So upstream only adds it conditionally. We use automake
+# 1.14, so we need it.
+define LIBUV_FIXUP_AUTOGEN
+ echo "m4_define([UV_EXTRA_AUTOMAKE_FLAGS], [serial-tests])" \
+ >$(@D)/m4/libuv-extra-automake-flags.m4
+endef
+LIBUV_POST_PATCH_HOOKS += LIBUV_FIXUP_AUTOGEN
+
+$(eval $(autotools-package))