# This file is part of MXE. See LICENSE.md for licensing information. PKG := hiredis $(PKG)_WEBSITE := https://github.com/redis/hiredis $(PKG)_DESCR := HIREDIS $(PKG)_IGNORE := $(PKG)_VERSION := 1.2.0 $(PKG)_CHECKSUM := 82ad632d31ee05da13b537c124f819eb88e18851d9cb0c30ae0552084811588c $(PKG)_GH_CONF := redis/hiredis/releases,v $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_URL := https://github.com/redis/hiredis/archive/v$($(PKG)_VERSION).tar.gz $(PKG)_DEPS := cc openssl define $(PKG)_BUILD cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \ -DBUILD_SHARED_LIBS=$(CMAKE_SHARED_BOOL) \ -DCMAKE_INSTALL_LIBDIR='$(PREFIX)/$(TARGET)/lib' \ -DENABLE_SSL=ON \ -DCMAKE_BUILD_TYPE="Release" \ -DENABLE_EXAMPLES=OFF \ -DDISABLE_TESTS=ON \ -DCMAKE_C_FLAGS="-Wno-int-conversion" \ '$(1)' $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' VERBOSE=1 $(MAKE) -C '$(BUILD_DIR)' -j 1 install VERBOSE=1 # Test '$(TARGET)-gcc' \ -W -Wall -Werror -pedantic \ $(if $(MXE_IS_LLVM),"-Wno-sometimes-uninitialized") \ '$(SOURCE_DIR)/test.c' -o '$(PREFIX)/$(TARGET)/bin/test-hiredis.exe' \ `'$(TARGET)-pkg-config' hiredis --cflags --libs` endef