blob: 450d466f496115e6cfbdd0007a1c33b7327eaeba [file] [log] [blame]
Patrick Williams169d7bc2024-01-05 11:33:25 -06001# Copyright (c) 2012-2014 LG Electronics, Inc.
2SUMMARY = "c-ares is a C library that resolves names asynchronously."
3HOMEPAGE = "http://daniel.haxx.se/projects/c-ares/"
4SECTION = "libs"
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://LICENSE.md;md5=fdbc58a6da11a9f68aa73c453818decc"
7
Patrick Williams73bd93f2024-02-20 08:07:48 -06008SRC_URI = "https://c-ares.org/download/${BPN}-${PV}.tar.gz \
Patrick Williams169d7bc2024-01-05 11:33:25 -06009 file://run-ptest"
Patrick Williams73bd93f2024-02-20 08:07:48 -060010SRC_URI[sha256sum] = "bed58c4f02b009080ebda6c2467ba469722ac6aebbf4497dc44a83d8c6194e50"
Patrick Williams169d7bc2024-01-05 11:33:25 -060011
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 ${WORKDIR}/run-ptest ${D}${PTEST_PATH}
24}
25
26PACKAGE_BEFORE_PN = "${PN}-utils"
27
28FILES:${PN}-utils = "${bindir}"
29
30BBCLASSEXTEND = "native nativesdk"