summaryrefslogtreecommitdiff
path: root/databases/php-mysqli/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/php-mysqli/Makefile')
-rw-r--r--databases/php-mysqli/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/databases/php-mysqli/Makefile b/databases/php-mysqli/Makefile
index bea181aa5ce..bbd2339e12e 100644
--- a/databases/php-mysqli/Makefile
+++ b/databases/php-mysqli/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2013/03/16 02:00:33 taca Exp $
+# $NetBSD: Makefile,v 1.10 2014/06/13 14:17:07 fhajny Exp $
MODNAME= mysqli
CATEGORIES+= databases
@@ -8,9 +8,19 @@ MAINTAINER= pkgsrc-users@NetBSD.org
CONFLICTS= php-mysqli-[0-9]*
+PKG_OPTIONS_VAR= PKG_OPTIONS.php-mysqli
+PKG_SUPPORTED_OPTIONS= mysqlnd
+PKG_SUGGESTED_OPTIONS= # empty
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mmysqlnd)
+CONFIGURE_ARGS+= --with-${MODNAME}=shared,mysqlnd
+.else
EVAL_PREFIX+= MYSQLDIR=mysql-client
-CONFIGURE_ARGS+= --with-${MODNAME}=${PREFIX}/bin/mysql_config
+CONFIGURE_ARGS+= --with-${MODNAME}=shared,${BUILDLINK_PREFIX.mysql-client}
+. include "../../mk/mysql.buildlink3.mk"
+.endif
.include "../../lang/php/ext.mk"
-.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"