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.

57 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2009-2010 OpenWrt.org
  3. # Copyright (C) 2009 Jakob Pfeiffer
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=c-ares
  10. PKG_VERSION:=1.17.1
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://c-ares.haxx.se/download
  14. PKG_HASH:=d73dd0f6de824afd407ce10750ea081af47eba52b8a6cb307d220131ad93fc40
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE.md
  17. PKG_CPE_ID:=cpe:/a:c-ares_project:c-ares
  18. CMAKE_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/cmake.mk
  22. define Package/libcares
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=Library for asyncronous DNS Requests (including name resolves)
  26. URL:=http://c-ares.haxx.se/
  27. MAINTAINER:=Karl Palsson <karlp@etactica.com>
  28. endef
  29. define Package/libcares/description
  30. c-ares is a C library for asynchronous DNS requests (including name resolves)
  31. C89 compatibility, MIT licensed, builds for and runs on POSIX, Windows,
  32. Netware, Android and many more operating systems.
  33. endef
  34. CMAKE_OPTIONS += \
  35. -DCARES_STATIC=OFF \
  36. -DCARES_SHARED=ON \
  37. -DCARES_STATIC_PIC=ON \
  38. -DCARES_BUILD_TESTS=OFF \
  39. -DCARES_BUILD_TOOLS=OFF
  40. define Package/libcares/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcares.so.* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,libcares))