Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 1 | # Copyright (c) 2012-2014 LG Electronics, Inc. |
| 2 | SUMMARY = "c-ares is a C library that resolves names asynchronously." |
| 3 | HOMEPAGE = "http://daniel.haxx.se/projects/c-ares/" |
| 4 | SECTION = "libs" |
| 5 | LICENSE = "MIT" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=fdbc58a6da11a9f68aa73c453818decc" |
| 7 | |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame] | 8 | SRC_URI = "https://c-ares.org/download/${BPN}-${PV}.tar.gz \ |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 9 | file://run-ptest" |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 10 | SRC_URI[sha256sum] = "0a72be66959955c43e2af2fbd03418e82a2bd5464604ec9a62147e37aceb420b" |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 11 | |
| 12 | PACKAGECONFIG ?= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" |
| 13 | PACKAGECONFIG[manpages] = "" |
| 14 | PACKAGECONFIG[tests] = "-DCARES_BUILD_TESTS=ON,-DCARES_BUILD_TESTS=OFF,googletest" |
| 15 | |
| 16 | inherit cmake manpages pkgconfig ptest |
| 17 | |
| 18 | EXTRA_OECMAKE = "-DCARES_STATIC=${@ 'ON' if d.getVar('DISABLE_STATIC') == '' else 'OFF' }" |
| 19 | |
| 20 | do_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 | |
| 26 | PACKAGE_BEFORE_PN = "${PN}-utils" |
| 27 | |
| 28 | FILES:${PN}-utils = "${bindir}" |
| 29 | |
| 30 | BBCLASSEXTEND = "native nativesdk" |