Index: Makefile =================================================================== RCS file: /home/pcvs/ports/databases/libmemcached/Makefile,v retrieving revision 1.35 diff -u -u -r1.35 Makefile --- Makefile 20 Oct 2010 03:53:23 -0000 1.35 +++ Makefile 11 Nov 2010 15:52:18 -0000 @@ -7,7 +7,7 @@ PORTNAME= libmemcached PORTVERSION= 0.44 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= http://download.tangent.org/ @@ -20,8 +20,13 @@ USE_GNOME= gnomehack gnometarget pkgconfig CONFIGURE_ARGS= --with-memcached=no --disable-libevent --without-libevent-prefix +OPTIONS= SASL "With (Cyrus) SASL2 support" off + +.include + 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 @@ -125,4 +130,11 @@ memcached_version.3 .endif -.include +.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 Index: distinfo =================================================================== RCS file: /home/pcvs/ports/databases/libmemcached/distinfo,v retrieving revision 1.27 diff -u -u -r1.27 distinfo --- distinfo 20 Oct 2010 03:53:23 -0000 1.27 +++ distinfo 11 Nov 2010 15:52:18 -0000 @@ -1,3 +1,2 @@ -MD5 (libmemcached-0.44.tar.gz) = e6bd825c46fa080b550f90f9001cba8c SHA256 (libmemcached-0.44.tar.gz) = d3ffdfebd83aa06d8ac2762197a51e38115712b43bc3fac6a674734eb67ae7c5 SIZE (libmemcached-0.44.tar.gz) = 740127