# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
PortGroup compiler_blacklist_versions 1.0
github.setup redis hiredis 0.14.0 v
categories databases
platforms darwin
license BSD
maintainers nomaintainer
description Hiredis is a minimalistic C client library for the Redis database.
long_description ${description}
checksums rmd160 ce8554b08c2d95da669d52b71da5ce74bcb0d694 \
sha256 65ee8959bd7af2e25a8ba8fe075a288b3e5eeaac1e2e68ddd52a29dbd2196c5f \
size 63088
# C99 is required
compiler.blacklist-append \
{clang < 211.10.1}
use_configure no
# The Makefile misuses LIBRARY_PATH
# https://github.com/redis/hiredis/issues/382
compiler.library_path
variant universal {}
build.args-append CC="${configure.cc}" \
CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \
OPTIMIZATION="${configure.optflags}" \
PREFIX=${prefix}
destroot.args PREFIX=${prefix}