# -*- 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
# configure: error: unable to determine endian
if {[file exists ${prefix}/bin/MemParse]} {
conflicts-append xercesc3
set branch [join [lrange [split ${version} .] 0 1] .]
description libmemcached is a C and C++ client library to the memcached server
long_description libmemcached is a C and C++ client library for memcached. \
It has been designed to be light on memory usage, thread safe, \
and provide full access to server side methods.
homepage http://libmemcached.org/
master_sites http://launchpad.net/${name}/${branch}/${version}/+download/
checksums rmd160 647ea760191755da4832f1a4c78847a330e5b515 \
sha256 e22c0bb032fde08f53de9ffbc5a128233041d9f33b5de022c0978a2149885f82 \
# Uses umem.h if present.
depends_lib-append port:cyrus-sasl2 \
patchfiles-append htonll.patch
patchfiles-append memflush.patch
configure.args --disable-dtrace \
--with-memcached=${prefix}/bin/memcached \
variant hsieh description {Include support for hsieh hashing} {
--disable-hsieh_hash --enable-hsieh_hash
# patchfiles-append no_memslap.diff
# configure.compiler macports-gcc-4.6