Merge pull request #3073 from paulo-raca/i2c-tools-py3
[feed/packages.git] / libs / libuv / Makefile
1 #
2 # Copyright (C) 2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libuv
11 PKG_VERSION:=1.9.1
12 PKG_RELEASE:=1
13
14 PKG_LICENSE_FILES:=LICENSE
15
16 PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
17
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
21
22 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
23 PKG_BUILD_PARALLEL:=1
24
25 PKG_INSTALL:=1
26 PKG_FIXUP:=autoreconf
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/libuv
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=Cross-platform asychronous I/O library
34 URL:=https://github.com/libuv/libuv
35 DEPENDS:=+libpthread +librt
36 endef
37
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,
41 pyuv, and others.
42 endef
43
44 define Build/Configure
45 ( cd $(PKG_BUILD_DIR); ./autogen.sh )
46 $(call Build/Configure/Default)
47 endef
48
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include/
51 $(CP) \
52 $(PKG_INSTALL_DIR)/usr/include/* \
53 $(1)/usr/include/
54
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) \
57 $(PKG_INSTALL_DIR)/usr/lib/libuv.so* \
58 $(1)/usr/lib/
59
60 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
61 $(CP) \
62 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libuv.pc \
63 $(1)/usr/lib/pkgconfig/
64 endef
65
66 define Package/libuv/install
67 $(INSTALL_DIR) $(1)/usr/lib/
68 $(CP) \
69 $(PKG_INSTALL_DIR)/usr/lib/libuv.so* \
70 $(1)/usr/lib/
71 endef
72
73 $(eval $(call BuildPackage,libuv))