mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
Changelog: https://github.com/redis/hiredis/releases/tag/v1.3.0 Fix: | CMake Error at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Alper Ak <alperyasinak1@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
38 lines
1.5 KiB
BlitzBasic
38 lines
1.5 KiB
BlitzBasic
DESCRIPTION = "Minimalistic C client library for Redis"
|
|
HOMEPAGE = "http://github.com/redis/hiredis"
|
|
SECTION = "libs"
|
|
LICENSE = "BSD-3-Clause"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=d84d659a35c666d23233e54503aaea51"
|
|
|
|
SRC_URI = " \
|
|
git://github.com/redis/hiredis;protocol=https;branch=master \
|
|
file://run-ptest \
|
|
"
|
|
SRCREV = "ccad7ebaf99310957004661d1c5f82d2a33ebd10"
|
|
|
|
inherit cmake ptest
|
|
|
|
# 'testssl' is not enabled by default as redis recipe does not build with ssl support
|
|
# option 'testssl' requires 'ssl'
|
|
PACKAGECONFIG ??= "ssl ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'test testasync', '', d)}"
|
|
PACKAGECONFIG[ssl] = "-DENABLE_SSL=ON, -DENABLE_SSL=OFF, openssl"
|
|
PACKAGECONFIG[test] = "-DDISABLE_TESTS=OFF, -DDISABLE_TESTS=ON"
|
|
PACKAGECONFIG[testssl] = "-DENABLE_SSL_TESTS=ON, -DENABLE_SSL_TESTS=OFF, openssl"
|
|
PACKAGECONFIG[testasync] = "-DENABLE_ASYNC_TESTS=ON, -DENABLE_ASYNC_TESTS=OFF, libevent"
|
|
|
|
do_install_ptest() {
|
|
install ${S}/test.sh ${D}${PTEST_PATH}/
|
|
install ${B}/hiredis-test ${D}${PTEST_PATH}/
|
|
if ${@bb.utils.contains('PACKAGECONFIG','testssl','true','false',d)}; then
|
|
sed -i 's/TEST_SSL=0/TEST_SSL=1/g' ${D}${PTEST_PATH}/run-ptest
|
|
fi
|
|
if ${@bb.utils.contains('PACKAGECONFIG','testasync','true','false',d)}; then
|
|
sed -i 's/TEST_ASYNC=0/TEST_ASYNC=1/g' ${D}${PTEST_PATH}/run-ptest
|
|
fi
|
|
}
|
|
|
|
FILES:${PN}-dev += "${datadir}/hiredis_ssl ${prefix}/build"
|
|
|
|
RDEPENDS:${PN} = "virtual-redis"
|
|
RDEPENDS:${PN}-ptest = "${@bb.utils.contains('PACKAGECONFIG', 'testssl', 'openssl-bin', '', d)}"
|