make libmad depending on CONFIG_BUILD_PATENTED
[openwrt/svn-archive/archive.git] / libs / c-ares / Makefile
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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=c-ares
12 PKG_VERSION:=1.7.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://c-ares.haxx.se
17 PKG_MD5SUM:=dc7e0f32e92613aed9aff233a6b69753
18
19 PKG_FIXUP:=libtool
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libcares
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=Library for asyncronous name resolves
28 URL:=$(PKG_SOURCE_URL)
29 endef
30
31 define Package/libcares/description
32 c-ares is a C library that performs DNS requests and name resolves
33 asynchronously.
34 endef
35
36 define Package/libcares/install
37 $(INSTALL_DIR) $(1)/usr/lib
38 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
39 endef
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)
43 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
44 endef
45
46 $(eval $(call BuildPackage,libcares))
47