diff options
author | rodent <rodent@pkgsrc.org> | 2015-03-26 03:32:33 +0000 |
---|---|---|
committer | rodent <rodent@pkgsrc.org> | 2015-03-26 03:32:33 +0000 |
commit | 7d6905099a7191937763e1cd8c7fdb9ff55190fa (patch) | |
tree | f8dc38dfec7db47ad86bec1fbdec6527c209ab36 | |
parent | 3ea7c3d82432da293d958472d436ec6fd4e12ed4 (diff) | |
download | pkgsrc-7d6905099a7191937763e1cd8c7fdb9ff55190fa.tar.gz |
devel/libmemcached builds with the sasl option by default. Therefore, this
package will pickup that option and build itself with SASL support too.
However, the user might want to disable that in devel/libmemcached and this
package too. Use the options framework to make that possible, while retain-
ing default pkgsrc behaviour which is enabling it.
-rw-r--r-- | devel/php-memcached/Makefile | 5 | ||||
-rw-r--r-- | devel/php-memcached/options.mk | 14 |
2 files changed, 18 insertions, 1 deletions
diff --git a/devel/php-memcached/Makefile b/devel/php-memcached/Makefile index cfdc4bfc742..f18ba45b219 100644 --- a/devel/php-memcached/Makefile +++ b/devel/php-memcached/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2014/05/18 21:19:54 joerg Exp $ +# $NetBSD: Makefile,v 1.5 2015/03/26 03:32:33 rodent Exp $ # MODNAME= memcached @@ -14,10 +14,13 @@ USE_TOOLS+= pkg-config CONFLICTS= php-memcached-[0-9]* +USE_LANGUAGES= c c++ CONFIGURE_ARGS+= --enable-${MODNAME} CONFIGURE_ARGS+= --with-libmemcached-dir=${BUILDLINK_PREFIX.libmemcached} CONFIGURE_ARGS+= --with-zlib-dir=${BUILDLINK_PREFIX.zlib} +.include "options.mk" + .include "../../lang/php/ext.mk" .include "../../devel/libmemcached/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" diff --git a/devel/php-memcached/options.mk b/devel/php-memcached/options.mk new file mode 100644 index 00000000000..85cd3ef2849 --- /dev/null +++ b/devel/php-memcached/options.mk @@ -0,0 +1,14 @@ +# $NetBSD: options.mk,v 1.1 2015/03/26 03:32:33 rodent Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.php-memcached +PKG_SUPPORTED_OPTIONS= sasl +PKG_SUGGESTED_OPTIONS= sasl + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Msasl) +.include "../../security/cyrus-sasl/buildlink3.mk" +CONFIGURE_ARGS+= --enable-memcached-sasl +.else +CONFIGURE_ARGS+= --disable-memcached-sasl +.endif |