2 # Copyright (C) 2015 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@openwrt.org>
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:=654bf6783ac7fc10435c84ec86720a6e
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 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
62 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libuv.pc \
63 $(1)/usr/lib/pkgconfig/
66 define Package/libuv/install
67 $(INSTALL_DIR) $(1)/usr/lib/
69 $(PKG_INSTALL_DIR)/usr/lib/libuv.so* \
73 $(eval $(call BuildPackage,libuv))