pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/php-mysqli php-mysqli: split options.mk into...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5c346bd5ecdf
branches:  trunk
changeset: 455302:5c346bd5ecdf
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Jul 02 15:18:42 2021 +0000

description:
php-mysqli: split options.mk into separate file

diffstat:

 databases/php-mysqli/Makefile   |  16 ++--------------
 databases/php-mysqli/options.mk |  14 ++++++++++++++
 2 files changed, 16 insertions(+), 14 deletions(-)

diffs (47 lines):

diff -r 74cb9c187313 -r 5c346bd5ecdf databases/php-mysqli/Makefile
--- a/databases/php-mysqli/Makefile     Fri Jul 02 14:04:06 2021 +0000
+++ b/databases/php-mysqli/Makefile     Fri Jul 02 15:18:42 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2021/06/23 20:33:08 nia Exp $
+# $NetBSD: Makefile,v 1.15 2021/07/02 15:18:42 nia Exp $
 
 PKGREVISION=           1
 MODNAME=               mysqli
@@ -9,18 +9,6 @@
 
 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
-.  include "../../mk/mysql.buildlink3.mk"
-CONFIGURE_ARGS+=       --with-${MODNAME}=${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config
-.endif
-
+.include "options.mk"
 .include "../../lang/php/ext.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 74cb9c187313 -r 5c346bd5ecdf databases/php-mysqli/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/php-mysqli/options.mk   Fri Jul 02 15:18:42 2021 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2021/07/02 15:18:42 nia Exp $
+
+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
+.  include "../../mk/mysql.buildlink3.mk"
+CONFIGURE_ARGS+=       --with-${MODNAME}=${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config
+.endif



Home | Main Index | Thread Index | Old Index