1.45.0 * linux: introduce io_uring support * src: add new metrics APIs * unix,win: give thread pool threads an 8 MB stack * win,unix: change execution order of timers 1.44.2 * loop: better align order-of-events behavior between platforms * zos: fix fs event not fired if the watched file is moved/removed/recreated * win: Fix pipe resource leak if closed during connect (and other bugs) * zos: don't error when killing a zombie process * macos: avoid posix_spawnp() cwd bug * kqueue: skip EVFILT_PROC events when invalidating events for an fd. Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
59 lines
1.7 KiB
Makefile
59 lines
1.7 KiB
Makefile
#
|
|
# Copyright (C) 2015-2017 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libuv
|
|
PKG_VERSION:=1.45.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=http://dist.libuv.org/dist/v$(PKG_VERSION)/
|
|
PKG_HASH:=f5b07f65a1e8166e47983a7ed1f42fae0bee08f7458142170c37332fc676a748
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
|
|
|
|
PKG_MAINTAINER:=Marko Ratkaj <markoratkaj@gmail.com>
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_CPE_ID:=cpe:/a:libuv_project:libuv
|
|
|
|
CMAKE_BINARY_SUBDIR:=out/cmake
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/libuv
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=Cross-platform asychronous I/O library
|
|
URL:=https://libuv.org/
|
|
DEPENDS:=+libpthread +librt
|
|
ABI_VERSION:=1
|
|
endef
|
|
|
|
define Package/libuv/description
|
|
libuv is a multi-platform support library with a focus on asynchronous I/O. It
|
|
was primarily developed for use by Node.js, but it's also used by Luvit, Julia,
|
|
pyuv, and others.
|
|
endef
|
|
|
|
CMAKE_OPTIONS += -DBUILD_TESTING=OFF
|
|
|
|
define Build/InstallDev
|
|
$(call Build/InstallDev/cmake,$(1))
|
|
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libuv.pc
|
|
$(SED) 's,/usr/lib,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/libuv.pc
|
|
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libuv-static.pc
|
|
$(SED) 's,/usr/lib,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/libuv-static.pc
|
|
endef
|
|
|
|
define Package/libuv/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libuv.so* $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libuv))
|