OPTIONize sasl2 dependency.

PR:		ports/152140
Submitted by:	garga@
This commit is contained in:
Vanilla I. Shu 2010-11-22 08:55:38 +00:00
parent 9a9e412d8b
commit 7e83a8b75b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264909
2 changed files with 14 additions and 3 deletions

View file

@ -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>

View file

@ -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