Commit 44584bdd authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Thomas Petazzoni
Browse files

libuv: new package



[Thomas: add comment suggested by Yann E. Morin.]

Signed-off-by: default avatarGustavo Zacarias <gustavo@zacarias.com.ar>
Reviewed-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent ed8ab0ce
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -849,6 +849,7 @@ menu "Other"
	source "package/libuci/Config.in"
	source "package/libunwind/Config.in"
	source "package/liburcu/Config.in"
	source "package/libuv/Config.in"
	source "package/linux-pam/Config.in"
	source "package/lttng-libust/Config.in"
	source "package/mpc/Config.in"
+14 −0
Original line number Diff line number Diff line
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

package/libuv/libuv.mk

0 → 100644
+27 −0
Original line number Diff line number Diff line
################################################################################
#
# 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))