1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/databases/libmemcached/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

33 lines
908 B
Makefile

# $FreeBSD$
PORTNAME= libmemcached
PORTVERSION= 1.0.7
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
LIB_DEPENDS?= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
libevent.so:${PORTSDIR}/devel/libevent2
USES= gmake pathfix pkgconfig perl5 libtool
USE_PERL5= build
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-memcached
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib -lexecinfo"
CXXFLAGS+= -D__STDC_CONSTANT_MACROS
OPTIONS_DEFINE= SASL
SASL_LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
post-patch:
@${REINPLACE_CMD} -e 's|^pkgconfigdir.*|pkgconfigdir = $${PREFIX}/libdata/pkgconfig|' \
-e '/^LDFLAGS *=/ s/$$/ $${LTLIBSASL2}/' \
${WRKSRC}/Makefile.in ${WRKSRC}/support/include.am
.include <bsd.port.mk>