Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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.11.0
  11. PKG_RELEASE:=1
  12. PKG_LICENSE:=MIT
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=http://c-ares.haxx.se/download
  15. PKG_MD5SUM:=d5c6d522cfc54bb6f215a0b7912d46be
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. TARGET_CPPFLAGS += $(filter -D%,$(TARGET_CFLAGS))
  20. TARGET_CFLAGS := $(filter-out -D%,$(TARGET_CFLAGS))
  21. define Package/libcares
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=Library for asyncronous DNS Requests (including name resolves)
  25. URL:=http://c-ares.haxx.se/
  26. MAINTAINER:=Karl Palsson <karlp@remake.is>
  27. endef
  28. define Package/libcares/description
  29. c-ares is a C library for asynchronous DNS requests (including name resolves)
  30. C89 compatibility, MIT licensed, builds for and runs on POSIX, Windows,
  31. Netware, Android and many more operating systems.
  32. endef
  33. define Package/libcares/install
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
  36. endef
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)
  39. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  40. endef
  41. $(eval $(call BuildPackage,libcares))