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_LICENSE_FILES:=LICENSE
16 PKG_MAINTAINER:=Luka Perkov <luka.perkov@sartura.hr>
18 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
19 PKG_SOURCE_URL:=http://dist.libuv.org/dist/v$(PKG_VERSION)/
20 PKG_MD5SUM:=fad96b56f517c1ad3f274a19a10c53b2
22 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
28 include $(INCLUDE_DIR)/package.mk
33 TITLE:=Cross-platform asychronous I/O library
34 URL:=https://github.com/libuv/libuv
35 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 define Build/Configure
45 ( cd $(PKG_BUILD_DIR); ./autogen.sh )
46 $(call Build/Configure/Default)
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include/
52 $(PKG_INSTALL_DIR)/usr/include/* \
55 $(INSTALL_DIR) $(1)/usr/lib
57 $(PKG_INSTALL_DIR)/usr/lib/libuv.so* \
60 $(PKG_INSTALL_DIR)/usr/lib/libuv.a \
63 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
65 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libuv.pc \
66 $(1)/usr/lib/pkgconfig/
69 define Package/libuv/install
70 $(INSTALL_DIR) $(1)/usr/lib/
72 $(PKG_INSTALL_DIR)/usr/lib/libuv.so* \
76 $(eval $(call BuildPackage,libuv))