2015-03-04 13:41:56 +00:00
|
|
|
#
|
2017-01-01 18:03:46 +00:00
|
|
|
# Copyright (C) 2015-2017 OpenWrt.org
|
2015-03-04 13:41:56 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libuv
|
2023-06-17 00:52:25 +00:00
|
|
|
PKG_VERSION:=1.45.0
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2015-03-04 13:41:56 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
|
2015-08-21 23:12:31 +00:00
|
|
|
PKG_SOURCE_URL:=http://dist.libuv.org/dist/v$(PKG_VERSION)/
|
2023-06-17 00:52:25 +00:00
|
|
|
PKG_HASH:=f5b07f65a1e8166e47983a7ed1f42fae0bee08f7458142170c37332fc676a748
|
2015-03-04 13:41:56 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
|
|
|
|
|
2022-03-30 11:01:47 +00:00
|
|
|
PKG_MAINTAINER:=Marko Ratkaj <markoratkaj@gmail.com>
|
2019-09-17 05:18:17 +00:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_CPE_ID:=cpe:/a:libuv_project:libuv
|
|
|
|
|
|
|
|
CMAKE_BINARY_SUBDIR:=out/cmake
|
2015-03-04 13:41:56 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-10 23:27:06 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2015-03-04 13:41:56 +00:00
|
|
|
|
|
|
|
define Package/libuv
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Cross-platform asychronous I/O library
|
2019-09-17 05:18:17 +00:00
|
|
|
URL:=https://libuv.org/
|
2015-03-04 13:41:56 +00:00
|
|
|
DEPENDS:=+libpthread +librt
|
2019-09-17 05:18:17 +00:00
|
|
|
ABI_VERSION:=1
|
2015-03-04 13:41:56 +00:00
|
|
|
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
|
|
|
|
|
2019-09-17 05:18:17 +00:00
|
|
|
CMAKE_OPTIONS += -DBUILD_TESTING=OFF
|
2015-03-04 13:41:56 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2019-09-17 05:18:17 +00:00
|
|
|
$(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
|
2020-12-09 10:57:02 +00:00
|
|
|
$(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
|
2015-03-04 13:41:56 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libuv/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
2019-09-17 05:18:17 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libuv.so* $(1)/usr/lib/
|
2015-03-04 13:41:56 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libuv))
|