freebsd-ports/databases/memcached/Makefile
Baptiste Daroussin b564653452 Only use libevent2
Remove libevent as libevent2 is providing a good compatibility interface as well
as providing better performances.
Remove custom patches from libevent2 and install libevent2 the regular way
Mark ports abusing private fields of the libevent1 API as broken
Import a patch from fedora to have honeyd working with libevent2
Remove most of the patches necessary to find the custom installation we used to
have for libevent2

With hat:	portmgr
2014-07-24 13:32:58 +00:00

79 lines
1.8 KiB
Makefile

# Created by: Sean Chittenden <seanc@FreeBSD.org>
# $FreeBSD$
PORTNAME= memcached
PORTVERSION= 1.4.20
PORTREVISION= 2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \
${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR= distfiles
MAINTAINER= swills@FreeBSD.org
COMMENT= High-performance distributed memory object cache system
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2
CONFLICTS= memcached-1.2*
# Dtrace option disabled until it is fixed upstream
OPTIONS_DEFINE= SASL DOCS DTRACE
OPTIONS_DEFAULT= SASL DOCS
DTRACE_DESC= Enable dtrace probes
SASL_DESC= Enable SASL Authentication
USE_RC_SUBR= memcached
SUB_LIST+= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}
USES= shebangfix
SHEBANG_FILES= scripts/memcached-tool
USE_CSTD= c99
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libevent=${LOCALBASE} --program-prefix= \
--disable-coverage
CFLAGS+= -fstack-protector \
-I${LOCALBASE}/include
DTRACE_CONFIGURE_ENABLE= dtrace
SASL_LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
SASL_CONFIGURE_ENABLE= sasl
SASL_CFLAGS= -I${LOCALBASE}/include
SASL_CPPFLAGS+= ${CFLAGS}
SASL_LDFLAGS= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
.if ${ARCH} == amd64
CONFIGURE_ARGS+= --enable-64bit
.endif
.if ${PORT_OPTIONS:MDTRACE}
BROKEN= DTRACE broken with gcc/clang - reported upstream
.endif
.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS= xml2rfc:${PORTSDIR}/textproc/xml2rfc
.endif
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in protocol-binary-range.txt protocol-binary.txt protocol.txt \
readme.txt threads.txt
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
regression-test: test
test: build
${MAKE} -C ${WRKSRC} test
.include <bsd.port.post.mk>