For change log, see: https://github.com/redis/hiredis/releases/tag/v1.3.0 Note this version raises the minimum cmake version from 3.0.0 to 3.7.0. This change fixes build with a host-cmake 4.0.0 (which has removed compatibility with cmake < 3.5). Such a failure happens on Arch Linux which is now providing cmake 4.0. Fixes: https://autobuild.buildroot.org/results/662fc308807866f9e25655541f6a8ef9ff32e55a/ Signed-off-by: James Hilliard <james.hilliard1@gmail.com> [Julien: add details in commit log] Signed-off-by: Julien Olivain <ju.o@free.fr>
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# hiredis
|
|
#
|
|
################################################################################
|
|
|
|
HIREDIS_VERSION_MAJOR = 1.3
|
|
HIREDIS_VERSION = $(HIREDIS_VERSION_MAJOR).0
|
|
HIREDIS_SITE = $(call github,redis,hiredis,v$(HIREDIS_VERSION))
|
|
HIREDIS_LICENSE = BSD-3-Clause
|
|
HIREDIS_LICENSE_FILES = COPYING
|
|
HIREDIS_CPE_ID_VENDOR = redislabs
|
|
HIREDIS_INSTALL_STAGING = YES
|
|
|
|
# The package is a dependency to ccache so ccache cannot be a dependency
|
|
HOST_HIREDIS_ADD_CCACHE_DEPENDENCY = NO
|
|
|
|
HIREDIS_CONF_OPTS = -DENABLE_NUGET=OFF -DDISABLE_TESTS=ON
|
|
HOST_HIREDIS_CONF_OPTS = -DENABLE_NUGET=OFF -DDISABLE_TESTS=ON -DENABLE_SSL=OFF
|
|
|
|
# Set CMAKE_BUILD_TYPE to Release or the libraries will be suffixed with "d"
|
|
# resulting in build failures when linking.
|
|
HIREDIS_CONF_OPTS += -DCMAKE_BUILD_TYPE=Release
|
|
HOST_HIREDIS_CONF_OPTS += -DCMAKE_BUILD_TYPE=Release
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL)$(BR2_TOOLCHAIN_HAS_THREADS),yy)
|
|
HIREDIS_CONF_OPTS += -DENABLE_SSL=ON
|
|
HIREDIS_DEPENDENCIES += openssl
|
|
else
|
|
HIREDIS_CONF_OPTS += -DENABLE_SSL=OFF
|
|
endif
|
|
|
|
# We may be a ccache dependency, so we can't use ccache; reset the
|
|
# options set by the cmake infra.
|
|
HOST_HIREDIS_CONF_OPTS += \
|
|
-UCMAKE_C_COMPILER_LAUNCHER \
|
|
-UCMAKE_CXX_COMPILER_LAUNCHER
|
|
|
|
$(eval $(cmake-package))
|
|
$(eval $(host-cmake-package))
|