summaryrefslogtreecommitdiff
path: root/mail/gld
diff options
context:
space:
mode:
authorwiz <wiz>2006-03-02 20:41:30 +0000
committerwiz <wiz>2006-03-02 20:41:30 +0000
commitcf144e33670a2908330a6cb8e77e243489bcda44 (patch)
tree75c14d23d2cde7ceb2872d6ab40a3846ad870d24 /mail/gld
parent0d4e1dfc0a6125526ce5373959aa66a7a6897f02 (diff)
downloadpkgsrc-cf144e33670a2908330a6cb8e77e243489bcda44.tar.gz
Convert to make better use of the options framework. Addresses part
of PR 32969 by Greg Oster.
Diffstat (limited to 'mail/gld')
-rw-r--r--mail/gld/options.mk13
1 files changed, 5 insertions, 8 deletions
diff --git a/mail/gld/options.mk b/mail/gld/options.mk
index 50546b8f42c..0f41ee4b5a7 100644
--- a/mail/gld/options.mk
+++ b/mail/gld/options.mk
@@ -1,15 +1,12 @@
-# $NetBSD: options.mk,v 1.3 2005/05/31 10:01:37 dillo Exp $
+# $NetBSD: options.mk,v 1.4 2006/03/02 20:41:30 wiz Exp $
-PKG_OPTIONS_VAR= PKG_OPTIONS.gld
-PKG_SUPPORTED_OPTIONS= mysql pgsql
-PKG_SUGGESTED_OPTIONS= mysql
+PKG_OPTIONS_VAR= PKG_OPTIONS.gld
+PKG_OPTIONS_REQUIRED_GROUPS= database
+PKG_OPTIONS_GROUP.database= mysql pgsql
+PKG_SUGGESTED_OPTIONS= mysql
.include "../../mk/bsd.options.mk"
-.if !empty(PKG_OPTIONS:Mmysql) && !empty(PKG_OPTIONS:Mpgsql)
-PKG_FAIL_REASON+= "Choose one option: mysql or pgsql."
-.endif
-
.if !empty(PKG_OPTIONS:Mmysql)
. include "../../mk/mysql.buildlink3.mk"
CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}