2 # Copyright (C) 2015-2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-v
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://dist.libuv.org
/dist/v
$(PKG_VERSION
)/
16 PKG_HASH
:=f5b07f65a1e8166e47983a7ed1f42fae0bee08f7458142170c37332fc676a748
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-v
$(PKG_VERSION
)
19 PKG_MAINTAINER
:=Marko Ratkaj
<markoratkaj@gmail.com
>
21 PKG_LICENSE_FILES
:=LICENSE
22 PKG_CPE_ID
:=cpe
:/a
:libuv_project
:libuv
24 CMAKE_BINARY_SUBDIR
:=out
/cmake
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/cmake.mk
32 TITLE
:=Cross-platform asychronous I
/O library
33 URL
:=https
://libuv.org
/
34 DEPENDS
:=+libpthread
+librt
38 define Package
/libuv
/description
39 libuv is a multi-platform support library with a focus on asynchronous I
/O. It
40 was primarily developed for use by Node.js
, but it
's also used by Luvit, Julia,
44 CMAKE_OPTIONS += -DBUILD_TESTING=OFF
46 define Build/InstallDev
47 $(call Build/InstallDev/cmake,$(1))
48 $(SED) 's
,/usr
/include,$$$${prefix}/include,g
' $(1)/usr/lib/pkgconfig/libuv.pc
49 $(SED) 's
,/usr
/lib
,$$$${prefix}/lib
,g
' $(1)/usr/lib/pkgconfig/libuv.pc
50 $(SED) 's
,/usr
/include,$$$${prefix}/include,g
' $(1)/usr/lib/pkgconfig/libuv-static.pc
51 $(SED) 's
,/usr
/lib
,$$$${prefix}/lib
,g
' $(1)/usr/lib/pkgconfig/libuv-static.pc
54 define Package/libuv/install
55 $(INSTALL_DIR) $(1)/usr/lib/
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuv.so* $(1)/usr/lib/
59 $(eval $(call BuildPackage,libuv))