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.

59 lines
1.5 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.34.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://dist.libuv.org/dist/v$(PKG_VERSION)/
  13. PKG_HASH:=65d93b4504ef5f3ec784c0c186f4ba8abd1031292c7f15dda8111d7e319adf46
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
  15. PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
  16. PKG_LICENSE:=MIT
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_CPE_ID:=cpe:/a:libuv_project:libuv
  19. CMAKE_INSTALL:=1
  20. CMAKE_BINARY_SUBDIR:=out/cmake
  21. PKG_BUILD_PARALLEL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. include $(INCLUDE_DIR)/cmake.mk
  24. define Package/libuv
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=Cross-platform asychronous I/O library
  28. URL:=https://libuv.org/
  29. DEPENDS:=+libpthread +librt
  30. ABI_VERSION:=1
  31. endef
  32. define Package/libuv/description
  33. libuv is a multi-platform support library with a focus on asynchronous I/O. It
  34. was primarily developed for use by Node.js, but it's also used by Luvit, Julia,
  35. pyuv, and others.
  36. endef
  37. CMAKE_OPTIONS += -DBUILD_TESTING=OFF
  38. define Build/InstallDev
  39. $(call Build/InstallDev/cmake,$(1))
  40. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libuv.pc
  41. $(SED) 's,/usr/lib,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/libuv.pc
  42. endef
  43. define Package/libuv/install
  44. $(INSTALL_DIR) $(1)/usr/lib/
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuv.so* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,libuv))