Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libuv
  9. PKG_VERSION:=1.10.2
  10. PKG_RELEASE:=1
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_MAINTAINER:=Luka Perkov <luka.perkov@sartura.hr>
  13. PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=http://dist.libuv.org/dist/v$(PKG_VERSION)/
  15. PKG_MD5SUM:=fad96b56f517c1ad3f274a19a10c53b2
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. PKG_FIXUP:=autoreconf
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libuv
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=Cross-platform asychronous I/O library
  25. URL:=https://github.com/libuv/libuv
  26. DEPENDS:=+libpthread +librt
  27. endef
  28. define Package/libuv/description
  29. libuv is a multi-platform support library with a focus on asynchronous I/O. It
  30. was primarily developed for use by Node.js, but it's also used by Luvit, Julia,
  31. pyuv, and others.
  32. endef
  33. define Build/Configure
  34. ( cd $(PKG_BUILD_DIR); ./autogen.sh )
  35. $(call Build/Configure/Default)
  36. endef
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include/
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/include/* \
  41. $(1)/usr/include/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) \
  44. $(PKG_INSTALL_DIR)/usr/lib/libuv.so* \
  45. $(1)/usr/lib/
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/libuv.a \
  48. $(1)/usr/lib/
  49. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  50. $(CP) \
  51. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libuv.pc \
  52. $(1)/usr/lib/pkgconfig/
  53. endef
  54. define Package/libuv/install
  55. $(INSTALL_DIR) $(1)/usr/lib/
  56. $(CP) \
  57. $(PKG_INSTALL_DIR)/usr/lib/libuv.so* \
  58. $(1)/usr/lib/
  59. endef
  60. $(eval $(call BuildPackage,libuv))