Makefile (1711B)
1 # 2 # Copyright (C) 2015-2017 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.10.2 12 PKG_RELEASE:=1 13 14 PKG_LICENSE_FILES:=LICENSE 15 16 PKG_MAINTAINER:=Luka Perkov <luka.perkov@sartura.hr> 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:=fad96b56f517c1ad3f274a19a10c53b2 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 $(CP) \ 60 $(PKG_INSTALL_DIR)/usr/lib/libuv.a \ 61 $(1)/usr/lib/ 62 63 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig 64 $(CP) \ 65 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libuv.pc \ 66 $(1)/usr/lib/pkgconfig/ 67 endef 68 69 define Package/libuv/install 70 $(INSTALL_DIR) $(1)/usr/lib/ 71 $(CP) \ 72 $(PKG_INSTALL_DIR)/usr/lib/libuv.so* \ 73 $(1)/usr/lib/ 74 endef 75 76 $(eval $(call BuildPackage,libuv))