2 # Copyright (C) 2009-2010 OpenWrt.org
3 # Copyright (C) 2009 Jakob Pfeiffer
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://c-ares.haxx.se/download
18 PKG_MD5SUM:=d5c6d522cfc54bb6f215a0b7912d46be
23 include $(INCLUDE_DIR)/package.mk
25 TARGET_CPPFLAGS += $(filter -D%,$(TARGET_CFLAGS))
26 TARGET_CFLAGS := $(filter-out -D%,$(TARGET_CFLAGS))
28 define Package/libcares
31 TITLE:=Library for asyncronous DNS Requests (including name resolves)
32 URL:=http://c-ares.haxx.se/
33 MAINTAINER:=Karl Palsson <karlp@remake.is>
36 define Package/libcares/description
37 c-ares is a C library for asynchronous DNS requests (including name resolves)
39 C89 compatibility, MIT licensed, builds for and runs on POSIX, Windows,
40 Netware, Android and many more operating systems.
44 define Package/libcares/install
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
49 define Build/InstallDev
51 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
54 $(eval $(call BuildPackage,libcares))