add c-ares, a library for asynchronous dns requests (based on a patch by Jakob Pfeiffer)
[openwrt/svn-archive/archive.git] / libs / c-ares / Makefile
1 # $Id: Makefile xxxx 2009-11-18 07:14:33Z nbd $
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=c-ares
6 PKG_VERSION:=1.6.0
7 PKG_RELEASE:=1
8
9 PKG_SOURCE_URL:=http://c-ares.haxx.se/
10 PKG_SOURCE:=c-ares-$(PKG_VERSION).tar.gz
11 PKG_MD5SUM:=4503b0db3dd79d3c1f58d87722dbab46
12 PKG_CAT:=zcat
13
14 PKG_FIXUP:=libtool
15 PKG_INSTALL:=1
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/libcares
20 SECTION:=libs
21 CATEGORY:=Libraries
22 TITLE:=Library for asyncronous name resolves
23 URL:=$(PKG_SOURCE_URL)
24 endef
25
26 define Package/libcares/description
27 c-ares is a C library that performs DNS requests and name resolves asynchronously.
28 endef
29
30 define Package/libcares/install
31 $(INSTALL_DIR) $(1)/usr/lib
32 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
33 endef
34
35 define Build/InstallDev
36 $(INSTALL_DIR) $(1)
37 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
38 endef
39
40 $(eval $(call BuildPackage,libcares))
41