blob: 0445485b87bc25dbf73d12b35ad647d3edd67665 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
# New ports collection makefile for: libmemcached
# Date created: January 22, 2008
# Whom: Yen-Ming Lee <leeym@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libmemcached
PORTVERSION= 0.51
PORTREVISION= 0
CATEGORIES= databases
MASTER_SITES= http://launchpad.net/${PORTNAME}/1.0/${PORTVERSION}/+download/
MAINTAINER= vanilla@FreeBSD.org
COMMENT= A C and C++ client library to the memcached server
FETCH_ARGS?= -pRr
USE_GMAKE= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
USE_GNOME= gnomehack pkgconfig
CONFIGURE_ARGS= --with-memcached=no --disable-libevent --without-libevent-prefix
OPTIONS= SASL "With (Cyrus) SASL2 support" off
.include <bsd.port.pre.mk>
post-patch:
${REINPLACE_CMD} -e 's|^pkgconfigdir.*|pkgconfigdir = $${PREFIX}/libdata/pkgconfig|' \
-e '/^LDFLAGS *=/ s/$$/ $${LTLIBSASL2}/' \
${WRKSRC}/Makefile.in
.if defined(NO_INSTALL_MANPAGES)
${REINPLACE_CMD} -e 's|^SUBDIRS = docs |SUBDIRS = |' ${WRKSRC}/Makefile.in
.endif
.if !defined(NO_INSTALL_MANPAGES)
USE_PERL5_BUILD=yes # pod2man
MAN1= memaslap.1 \
memcapable.1 \
memcat.1 \
memcp.1 \
memdump.1 \
memerror.1 \
memflush.1 \
memrm.1 \
memslap.1 \
memstat.1
MAN3= hashkit_clone.3 \
hashkit_crc32.3 \
hashkit_create.3 \
hashkit_fnv1_32.3 \
hashkit_fnv1_64.3 \
hashkit_fnv1a_32.3 \
hashkit_fnv1a_64.3 \
hashkit_free.3 \
hashkit_functions.3 \
hashkit_hsieh.3 \
hashkit_is_allocated.3 \
hashkit_jenkins.3 \
hashkit_md5.3 \
hashkit_murmur.3 \
hashkit_value.3 \
libhashkit.3 \
libmemcached.3 \
libmemcachedutil.3 \
libmemcached_check_configuration.3 \
libmemcached_configuration.3 \
libmemcached_examples.3 \
memcached.3 \
memcached_add.3 \
memcached_add_by_key.3 \
memcached_analyze.3 \
memcached_append.3 \
memcached_append_by_key.3 \
memcached_behavior_get.3 \
memcached_behavior_set.3 \
memcached_callback_get.3 \
memcached_callback_set.3 \
memcached_cas.3 \
memcached_cas_by_key.3 \
memcached_clone.3 \
memcached_create.3 \
memcached_decrement.3 \
memcached_decrement_with_initial.3 \
memcached_delete.3 \
memcached_delete_by_key.3 \
memcached_destroy_sasl_auth_data.3 \
memcached_dump.3 \
memcached_fetch.3 \
memcached_flush_buffers.3 \
memcached_fetch_execute.3 \
memcached_fetch_result.3 \
memcached_free.3 \
memcached_generate_hash.3 \
memcached_generate_hash_value.3 \
memcached_get.3 \
memcached_get_sasl_callbacks.3 \
memcached_get_by_key.3 \
memcached_get_memory_allocators.3 \
memcached_get_user_data.3 \
memcached_increment.3 \
memcached_increment_with_initial.3 \
memcached_lib_version.3 \
memcached_mget.3 \
memcached_mget_by_key.3 \
memcached_mget_execute.3 \
memcached_mget_execute_by_key.3 \
memcached_pool_behavior_get.3 \
memcached_pool_behavior_set.3 \
memcached_pool_create.3 \
memcached_pool_destroy.3 \
memcached_pool_pop.3 \
memcached_pool_push.3 \
memcached_pool_st.3 \
memcached_prepend.3 \
memcached_prepend_by_key.3 \
memcached_quit.3 \
memcached_replace.3 \
memcached_replace_by_key.3 \
memcached_sasl_set_auth_data.3 \
memcached_server_add.3 \
memcached_server_count.3 \
memcached_server_cursor.3 \
memcached_server_list.3 \
memcached_server_list_append.3 \
memcached_server_list_count.3 \
memcached_server_list_free.3 \
memcached_server_push.3 \
memcached_servers_parse.3 \
memcached_set.3 \
memcached_set_sasl_callbacks.3 \
memcached_set_by_key.3 \
memcached_set_memory_allocators.3 \
memcached_set_user_data.3 \
memcached_stat.3 \
memcached_stat_execute.3 \
memcached_stat_get_keys.3 \
memcached_stat_get_value.3 \
memcached_stat_servername.3 \
memcached_strerror.3 \
memcached_verbosity.3 \
memcached_version.3
.endif
.if defined(WITH_SASL)
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
CONFIGURE_ARGS+= --with-libsasl2-prefix="${LOCALBASE}"
.else
CONFIGURE_ARGS+= --disable-sasl
.endif
.include <bsd.port.post.mk>
|