From dfe460ba774f2a95167edac5ba4a3edb868d569d Mon Sep 17 00:00:00 2001 From: jlam Date: Sun, 22 Aug 2004 19:32:51 +0000 Subject: Change the way that legacy USE_* and FOO_USE_* options are converted into the bsd.options.mk framework. Instead of appending to ${PKG_OPTIONS_VAR}, it appends to PKG_DEFAULT_OPTIONS. This causes the default options to be the union of PKG_DEFAULT_OPTIONS and any old USE_* and FOO_USE_* settings. This fixes PR pkg/26590. --- mail/cyrus-imapd21/Makefile | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'mail/cyrus-imapd21') diff --git a/mail/cyrus-imapd21/Makefile b/mail/cyrus-imapd21/Makefile index 03e0b13adec..8cca2bf7e10 100644 --- a/mail/cyrus-imapd21/Makefile +++ b/mail/cyrus-imapd21/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.22 2004/07/31 03:52:00 jlam Exp $ +# $NetBSD: Makefile,v 1.23 2004/08/22 19:32:51 jlam Exp $ DISTNAME= cyrus-imapd-2.1.15 PKGREVISION= 3 @@ -59,24 +59,11 @@ CONFIGURE_ARGS+= --with-bdb-incdir=${BUILDLINK_PREFIX.db3}/include/db3 CONFIGURE_ENV+= ac_cv_lib_${_var_}_db_create=no .endfor -# Global and legacy options -.if defined(CYRUS_USE_INET6) || defined(CYRUS_DB_RECOMMENDED) || \ - defined(KERBEROS) -. if !defined(PKG_OPTIONS.cyrus-imapd) -. if defined(CYRUS_USE_INET6) -PKG_OPTIONS.cyrus-imapd+= inet6 -. endif -. if defined(CYRUS_DB_RECOMMENDED) -PKG_OPTIONS.cyrus-imapd+= recommended-db -. endif -. if defined(KERBEROS) -. if ${KERBEROS} == "4" -PKG_OPTIONS.cyrus-imapd+= kerberos4 -. else -PKG_OPTIONS.cyrus-imapd+= kerberos -. endif -. endif -. endif +.if defined(CYRUS_USE_INET6) +PKG_DEFAULT_OPTIONS+= inet6 +.endif +.if defined(CYRUS_DB_RECOMMENDED) +PKG_DEFAULT_OPTIONS+= recommended-db .endif PKG_OPTIONS_VAR= PKG_OPTIONS.cyrus-imapd -- cgit v1.2.3