summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/c-ares/c-ares_1.34.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/c-ares/c-ares_1.34.1.bb')
-rw-r--r--meta-oe/recipes-support/c-ares/c-ares_1.34.1.bb30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/c-ares/c-ares_1.34.1.bb b/meta-oe/recipes-support/c-ares/c-ares_1.34.1.bb
new file mode 100644
index 0000000000..877e29d9f2
--- /dev/null
+++ b/meta-oe/recipes-support/c-ares/c-ares_1.34.1.bb
@@ -0,0 +1,30 @@
1# Copyright (c) 2012-2014 LG Electronics, Inc.
2SUMMARY = "c-ares is a C library that resolves names asynchronously."
3HOMEPAGE = "https://c-ares.org/"
4SECTION = "libs"
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://LICENSE.md;md5=d3e72a10e08191f2ca1be3f3228d78f3"
7
8SRC_URI = "https://github.com/c-ares/c-ares/releases/download/v${PV}/${BPN}-${PV}.tar.gz \
9 file://run-ptest"
10SRC_URI[sha256sum] = "7e846f1742ab5998aced36d170408557de5292b92ec404fb0f7422f946d60103"
11
12PACKAGECONFIG ?= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
13PACKAGECONFIG[manpages] = ""
14PACKAGECONFIG[tests] = "-DCARES_BUILD_TESTS=ON,-DCARES_BUILD_TESTS=OFF,googletest"
15
16inherit cmake manpages pkgconfig ptest
17
18EXTRA_OECMAKE = "-DCARES_STATIC=${@ 'ON' if d.getVar('DISABLE_STATIC') == '' else 'OFF' }"
19
20do_install_ptest () {
21 install -d ${D}${PTEST_PATH}
22 install -m 0755 ${B}/bin/arestest ${D}${PTEST_PATH}
23 install -m 0755 ${UNPACKDIR}/run-ptest ${D}${PTEST_PATH}
24}
25
26PACKAGE_BEFORE_PN = "${PN}-utils"
27
28FILES:${PN}-utils = "${bindir}"
29
30BBCLASSEXTEND = "native nativesdk"