# -*- 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
maintainers {blair @blair}
description C-based HTTP client library
The serf library is a C-based HTTP client library built upon the \
Apache Portable Runtime (APR) library. It multiplexes \
connections, running the read/write communication asynchronously. \
Memory copies and transformations are kept to a minimum to provide \
high performance operation.
homepage https://serf.apache.org
master_sites https://archive.apache.org/dist/serf/
checksums rmd160 4bbc773841eb2bd83a7c12170937b403201dd83b \
sha256 549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc \
patchfiles patch-SConstruct.diff \
depends_lib port:apr port:apr-util path:lib/libssl.dylib:openssl port:zlib
build.cmd ${prefix}/bin/scons
build.args CC=${configure.cc} \
CPPFLAGS="${configure.cppflags}" \
CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
LINKFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
# Workaround scons buggy lack of MACOSX_DEPLOYMENT_TARGET propagation:
build.args-append CC="MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target} ${configure.cc}"
build.target APR=${prefix} \
destroot.cmd ${build.cmd}
destroot.args --install-sandbox=${destroot}
set sharedir ${destroot}${prefix}/share
set docdir ${sharedir}/doc/${name}