2010-01-17 10:20:39 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009-2010 OpenWrt.org
|
|
|
|
# Copyright (C) 2009 Jakob Pfeiffer
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2009-12-28 17:06:27 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=c-ares
|
2010-01-17 10:20:39 +00:00
|
|
|
PKG_VERSION:=1.7.0
|
2009-12-28 17:06:27 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2010-01-17 10:20:39 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://c-ares.haxx.se
|
|
|
|
PKG_MD5SUM:=15ab7852306b554b0b1145f41005a3bb
|
2009-12-28 17:06:27 +00:00
|
|
|
|
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libcares
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Library for asyncronous name resolves
|
|
|
|
URL:=$(PKG_SOURCE_URL)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcares/description
|
2010-01-17 10:20:39 +00:00
|
|
|
c-ares is a C library that performs DNS requests and name resolves
|
|
|
|
asynchronously.
|
2009-12-28 17:06:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcares/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libcares))
|
|
|
|
|