blob: 6dd6128ade7d12c21ca22bf04b75b1a9f4d755c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# $FreeBSD$
PORTNAME= libmemcached
PORTVERSION= 1.0.18
PORTREVISION= 4
CATEGORIES= databases
MASTER_SITES= http://launchpad.net/${PORTNAME}/1.0/${PORTVERSION}/+download/
MAINTAINER= m.tsatsenko@gmail.com
COMMENT= C and C++ client library to the memcached server
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS?= libevent.so:devel/libevent
TEST_DEPENDS= memcached:databases/memcached
USES= autoreconf execinfo gmake pathfix pkgconfig libtool
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-memcached \
--without-sphinx-build \
--enable-libmemcachedprotocol
LIBS+= -L${LOCALBASE}/lib -lexecinfo
CXXFLAGS+= -D__STDC_CONSTANT_MACROS
OPTIONS_DEFINE= DEBUG DTRACE MEMASLAP SASL
OPTIONS_DEFAULT= MEMASLAP SASL MURMUR FNV64
OPTIONS_GROUP= HASH
OPTIONS_GROUP_HASH= FNV64 HSIEH MURMUR
DTRACE_DESC= Enable DTrace support
MEMASLAP_DESC= Load generation and benchmark tool
FNV64_DESC= Enable fnv64 hashing
HSIEH_DESC= Enable hsieh hashing
MURMUR_DESC= Enable murmur hashing
DEBUG_CONFIGURE_ENABLE= debug
DTRACE_CONFIGURE_ENABLE= dtrace
MEMASLAP_CONFIGURE_ENABLE= memaslap
FNV64_CONFIGURE_ENABLE= fnv64_hash
HSIEH_CONFIGURE_ENABLE= hsieh_hash
MURMUR_CONFIGURE_ENABLE= murmur_hash
SASL_CONFIGURE_ENABLE= sasl
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
PATHFIX_MAKEFILEIN= include.am
post-patch:
@${REINPLACE_CMD} -e '/^LDFLAGS *=/ s/$$/ $${LTLIBSASL2}/' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} '/MAKE.*man/d' ${WRKSRC}/man/include.am
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*
regression-test: build
@cd ${WRKSRC} && ${GMAKE} check
.include <bsd.port.mk>
|