pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/php-memcached devel/libmemcached builds with the...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c41bd612bf8f
branches: trunk
changeset: 648967:c41bd612bf8f
user: rodent <rodent%pkgsrc.org@localhost>
date: Thu Mar 26 03:32:33 2015 +0000
description:
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.
diffstat:
devel/php-memcached/Makefile | 5 ++++-
devel/php-memcached/options.mk | 14 ++++++++++++++
2 files changed, 18 insertions(+), 1 deletions(-)
diffs (41 lines):
diff -r 6cf75c81c87e -r c41bd612bf8f devel/php-memcached/Makefile
--- a/devel/php-memcached/Makefile Wed Mar 25 23:50:12 2015 +0000
+++ b/devel/php-memcached/Makefile Thu Mar 26 03:32:33 2015 +0000
@@ -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 @@
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 -r 6cf75c81c87e -r c41bd612bf8f devel/php-memcached/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/php-memcached/options.mk Thu Mar 26 03:32:33 2015 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index