1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-20 15:48:40 +02:00
openwrt-packages/libs/c-ares/Makefile
Karl Palsson 60e60fc38f c-ares: bump to 1.18.1
Changelog: https://lists.haxx.se/pipermail/c-ares/2021-October/000002.html

This includes the update to the domain name, made upstream, ref: https://lists.haxx.se/pipermail/c-ares/2021-September/000001.html

Signed-off-by: Karl Palsson <karlp@etactica.com>
2021-11-09 09:21:40 +00:00

57 lines
1.4 KiB
Makefile

#
# 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.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=c-ares
PKG_VERSION:=1.18.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://c-ares.org/download
PKG_HASH:=1a7d52a8a84a9fbffb1be9133c0f6e17217d91ea5a6fa61f6b4729cda78ebbcf
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE.md
PKG_CPE_ID:=cpe:/a:c-ares_project:c-ares
CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/libcares
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Library for asyncronous DNS Requests (including name resolves)
URL:=http://c-ares.haxx.se/
MAINTAINER:=Karl Palsson <karlp@etactica.com>
endef
define Package/libcares/description
c-ares is a C library for asynchronous DNS requests (including name resolves)
C89 compatibility, MIT licensed, builds for and runs on POSIX, Windows,
Netware, Android and many more operating systems.
endef
CMAKE_OPTIONS += \
-DCARES_STATIC=OFF \
-DCARES_SHARED=ON \
-DCARES_STATIC_PIC=ON \
-DCARES_BUILD_TESTS=OFF \
-DCARES_BUILD_TOOLS=OFF
define Package/libcares/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcares.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libcares))