mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
c-ares: Move to tarballs, add ptest and static support
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if ./arestest; then
|
||||||
|
echo "PASS: c-ares"
|
||||||
|
else
|
||||||
|
echo "FAIL: c-ares"
|
||||||
|
fi
|
||||||
@@ -5,14 +5,23 @@ SECTION = "libs"
|
|||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=fdbc58a6da11a9f68aa73c453818decc"
|
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=fdbc58a6da11a9f68aa73c453818decc"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/c-ares/c-ares.git;branch=main;protocol=https"
|
SRC_URI = "https://c-ares.org/download/c-ares-1.24.0.tar.gz \
|
||||||
SRCREV = "972f456f2808b4e4b1730c90ab506f6af5f4c725"
|
file://run-ptest"
|
||||||
|
SRC_URI[sha256sum] = "c517de6d5ac9cd55a9b72c1541c3e25b84588421817b5f092850ac09a8df5103"
|
||||||
|
|
||||||
UPSTREAM_CHECK_GITTAGREGEX = "cares-(?P<pver>\d+_(\d_?)+)"
|
PACKAGECONFIG ?= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
|
||||||
|
PACKAGECONFIG[manpages] = ""
|
||||||
|
PACKAGECONFIG[tests] = "-DCARES_BUILD_TESTS=ON,-DCARES_BUILD_TESTS=OFF,googletest"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
inherit cmake manpages pkgconfig ptest
|
||||||
|
|
||||||
inherit cmake pkgconfig
|
EXTRA_OECMAKE = "-DCARES_STATIC=${@ 'ON' if d.getVar('DISABLE_STATIC') == '' else 'OFF' }"
|
||||||
|
|
||||||
|
do_install_ptest () {
|
||||||
|
install -d ${D}${PTEST_PATH}
|
||||||
|
install -m 0755 ${B}/bin/arestest ${D}${PTEST_PATH}
|
||||||
|
install -m 0755 ${WORKDIR}/run-ptest ${D}${PTEST_PATH}
|
||||||
|
}
|
||||||
|
|
||||||
PACKAGE_BEFORE_PN = "${PN}-utils"
|
PACKAGE_BEFORE_PN = "${PN}-utils"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user