You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.7 KiB

  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.24.1
  10. PKG_RELEASE:=1
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@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_HASH:=3dd3eeb7b00214b0226da55b38898d3f9481d0cf744d42faf82771e0f19f2b0a
  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))