Merge pull request #11353 from kvuorine/fwknop-fixes
[feed/packages.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.16.1
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=https://c-ares.haxx.se/download
17 PKG_HASH:=d08312d0ecc3bd48eee0a4cc0d2137c9f194e0a28de2028928c0f6cae85f86ce
18
19 PKG_LICENSE:=MIT
20 PKG_LICENSE_FILES:=LICENSE.md
21 PKG_CPE_ID:=cpe:/a:c-ares_project:c-ares
22
23 CMAKE_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/cmake.mk
28
29 define Package/libcares
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=Library for asyncronous DNS Requests (including name resolves)
33 URL:=http://c-ares.haxx.se/
34 MAINTAINER:=Karl Palsson <karlp@etactica.com>
35 endef
36
37 define Package/libcares/description
38 c-ares is a C library for asynchronous DNS requests (including name resolves)
39
40 C89 compatibility, MIT licensed, builds for and runs on POSIX, Windows,
41 Netware, Android and many more operating systems.
42
43 endef
44
45 CMAKE_OPTIONS += \
46 -DCARES_STATIC=OFF \
47 -DCARES_SHARED=ON \
48 -DCARES_STATIC_PIC=ON \
49 -DCARES_BUILD_TESTS=OFF \
50 -DCARES_BUILD_TOOLS=OFF
51
52 define Package/libcares/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcares.so.* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libcares))