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.

73 lines
1.6 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libuv
  9. PKG_VERSION:=1.6.1
  10. PKG_RELEASE:=1
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
  13. PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=http://libuv.org/dist/v$(PKG_VERSION)/
  15. PKG_MD5SUM:=51cfa3d8adc05852982e3c742ec3c039
  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. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libuv.pc \
  49. $(1)/usr/lib/pkgconfig/
  50. endef
  51. define Package/libuv/install
  52. $(INSTALL_DIR) $(1)/usr/lib/
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/lib/libuv.so* \
  55. $(1)/usr/lib/
  56. endef
  57. $(eval $(call BuildPackage,libuv))