pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/sqlrelay Convert to options framework.
details: https://anonhg.NetBSD.org/pkgsrc/rev/5a47bfd952bd
branches: trunk
changeset: 503980:5a47bfd952bd
user: wiz <wiz%pkgsrc.org@localhost>
date: Fri Dec 02 17:28:37 2005 +0000
description:
Convert to options framework.
diffstat:
databases/sqlrelay/Makefile | 19 ++-----------------
databases/sqlrelay/options.mk | 28 ++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 17 deletions(-)
diffs (65 lines):
diff -r 5009c5d33f34 -r 5a47bfd952bd databases/sqlrelay/Makefile
--- a/databases/sqlrelay/Makefile Fri Dec 02 17:18:22 2005 +0000
+++ b/databases/sqlrelay/Makefile Fri Dec 02 17:28:37 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2005/05/22 20:07:46 jlam Exp $
+# $NetBSD: Makefile,v 1.10 2005/12/02 17:28:37 wiz Exp $
DISTNAME= sqlrelay-0.33.1
PKGREVISION= 1
@@ -14,22 +14,7 @@
USE_TOOLS+= gmake
USE_LIBTOOL= YES
-#SQLRELAY_DATABASES+= mysql postgresql
-SQLRELAY_DATABASES?= # empty
-
-.for _db_ in ${SQLRELAY_DATABASES}
-SQLRELAY.${_db_}?= YES
-.endfor
-
-.if defined(SQLRELAY.mysql) && ${SQLRELAY.mysql} == "YES"
-. include "../../mk/mysql.buildlink3.mk"
-CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_DIR}
-.endif
-
-.if defined(SQLRELAY.postgresql) && ${SQLRELAY.postgresql} == "YES"
-. include "../../mk/pgsql.buildlink3.mk"
-CONFIGURE_ARGS+= --with-postgresql=${BUILDLINK_DIR}
-.endif
+.include "options.mk"
.include "../../devel/rudiments/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 5009c5d33f34 -r 5a47bfd952bd databases/sqlrelay/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/sqlrelay/options.mk Fri Dec 02 17:28:37 2005 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: options.mk,v 1.1 2005/12/02 17:28:37 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.sqlrelay
+PKG_SUPPORTED_OPTIONS+= mysql pgsql
+
+# remove legacy handling after 2005Q4
+.if defined(SQLRELAY_DATABASES)
+.if !empty(SQLRELAY_DATABASES:Mmysql)
+PKG_LEGACY_OPTIONS+= mysql
+PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable SQLRELAY_DATABASES used, use PKG_OPTIONS.sqlrelay+=mysql instead."
+.endif
+.if !empty(SQLRELAY_DATABASES:Mpostgresql)
+PKG_LEGACY_OPTIONS+= pgsql
+PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable SQLRELAY_DATABASES used, use PKG_OPTIONS.sqlrelay+=pqsql instead."
+.endif
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mmysql)
+CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_DIR}
+.include "../../mk/mysql.buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+CONFIGURE_ARGS+= --with-postgresql=${BUILDLINK_DIR}
+.include "../../mk/pgsql.buildlink3.mk"
+.endif
Home |
Main Index |
Thread Index |
Old Index