diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2010-11-22 08:55:38 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2010-11-22 08:55:38 +0000 |
commit | 7e83a8b75b3753ae4bee40dc9f95f030180600c6 (patch) | |
tree | 8119a1d78651caf7af3903e3348faecd30b9a7a5 /databases/libmemcached | |
parent | 9a9e412d8bcd2603c2ea8a89ba5efb2eb12ec556 (diff) |
OPTIONize sasl2 dependency.
PR: ports/152140
Submitted by: garga@
Notes
Notes:
svn path=/head/; revision=264909
Diffstat (limited to 'databases/libmemcached')
-rw-r--r-- | databases/libmemcached/Makefile | 16 | ||||
-rw-r--r-- | databases/libmemcached/distinfo | 1 |
2 files changed, 14 insertions, 3 deletions
diff --git a/databases/libmemcached/Makefile b/databases/libmemcached/Makefile index 3e1a4ef11df5..ffbda7d2864a 100644 --- a/databases/libmemcached/Makefile +++ b/databases/libmemcached/Makefile @@ -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 @@ GNU_CONFIGURE= yes USE_GNOME= gnomehack gnometarget 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 @@ -125,4 +130,11 @@ MAN3= hashkit_clone.3 \ memcached_version.3 .endif -.include <bsd.port.mk> +.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> diff --git a/databases/libmemcached/distinfo b/databases/libmemcached/distinfo index 43d88b8091df..017f5ca63a68 100644 --- a/databases/libmemcached/distinfo +++ b/databases/libmemcached/distinfo @@ -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 |