1PORTNAME= memcached 2PORTVERSION= 1.6.42 3CATEGORIES= databases 4MASTER_SITES= http://www.memcached.org/files/ 5 6MAINTAINER= ports@MidnightBSD.org 7COMMENT= High-performance distributed memory object cache system 8WWW= https://memcached.org/ 9 10LICENSE= bsd3 11LICENSE_FILE= ${WRKSRC}/COPYING 12 13USES= autoreconf cpe pkgconfig shebangfix ssl 14SHEBANG_FILES= scripts/memcached-tool 15 16BUILD_DEPENDS= as:devel/binutils 17LIB_DEPENDS= libevent.so:devel/libevent 18 19NO_TEST= yes 20 21CONFLICTS= memcached-1.2* 22 23USE_RC_SUBR= memcached 24SUB_LIST+= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX} 25 26HAS_CONFIGURE= yes 27CONFIGURE_ARGS= --with-libevent=${LOCALBASE} \ 28 --program-prefix= \ 29 --disable-coverage 30 31# Dtrace option disabled until it is fixed upstream 32OPTIONS_DEFINE= SASL DOCS 33OPTIONS_DEFAULT= SASL 34 35.if !exists(/usr/sbin/dtrace) 36OPTIONS_EXCLUDE+= DTRACE 37.endif 38 39OPTIONS_EXCLUDE_i386= DTRACE 40# ld(1) fails to link probes: Relocations in generic ELF (EM: 0) 41OPTIONS_EXCLUDE_aarch64= DTRACE 42OPTIONS_EXCLUDE_armv6= DTRACE 43OPTIONS_EXCLUDE_armv7= DTRACE 44 45DTRACE_DESC= Enable dtrace probes 46SASL_DESC= Enable SASL Authentication 47 48DOCS_BUILD_DEPENDS= xml2rfc:textproc/xml2rfc 49DOCS_CONFIGURE_ENABLE= docs 50 51SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 52SASL_CONFIGURE_ENABLE= sasl 53SASL_CFLAGS= -I${LOCALBASE}/include 54SASL_CPPFLAGS+= ${CFLAGS} 55SASL_LDFLAGS= -L${LOCALBASE}/lib 56 57MAKE_JOBS_UNSAFE= yes 58 59.include <bsd.port.pre.mk> 60 61CONFIGURE_ARGS+= --enable-tls 62 63.if ${ARCH} == amd64 64CONFIGURE_ARGS+= --enable-64bit 65.endif 66 67post-install: 68 ${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool ${PREFIX}/bin 69 70post-install-DOCS-on: 71 ${MKDIR} ${FAKE_DESTDIR}${DOCSDIR} 72.for i in protocol-binary-range.txt protocol-binary.txt protocol.txt \ 73 readme.txt threads.txt 74 ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${FAKE_DESTDIR}${DOCSDIR} 75.endfor 76 77.include <bsd.port.post.mk> 78