pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/inputmethod/uim use PKG_OPTIONS_LEGACY_VARS to handle ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/62fd0a69afa9
branches:  trunk
changeset: 494977:62fd0a69afa9
user:      dillo <dillo%pkgsrc.org@localhost>
date:      Wed Jun 01 14:00:55 2005 +0000

description:
use PKG_OPTIONS_LEGACY_VARS to handle legacy variables
set PKG_SUGGESTED_OPTIONS instead of PKG_DEFAULT_OPTIONS (which
        should be set by the user only)

diffstat:

 inputmethod/uim/options.mk |  26 ++++++--------------------
 1 files changed, 6 insertions(+), 20 deletions(-)

diffs (35 lines):

diff -r 612fb9ae23f8 -r 62fd0a69afa9 inputmethod/uim/options.mk
--- a/inputmethod/uim/options.mk        Wed Jun 01 13:40:46 2005 +0000
+++ b/inputmethod/uim/options.mk        Wed Jun 01 14:00:55 2005 +0000
@@ -1,25 +1,11 @@
-# $NetBSD: options.mk,v 1.1 2005/03/29 18:47:52 wiz Exp $
-
-# Global and legacy options
-.if defined(UIM_USE_ANTHY) && !empty(UIM_USE_ANTHY:M[Yy][Ee][Ss])
-PKG_DEFAULT_OPTIONS+=   anthy
-.endif
-
-.if defined(UIM_USE_CANNA) && !empty(UIM_USE_CANNA:M[Yy][Ee][Ss])
-PKG_DEFAULT_OPTIONS+=   canna
-.endif
+# $NetBSD: options.mk,v 1.2 2005/06/01 14:00:55 dillo Exp $
 
-.if defined(UIM_USE_EB) && !empty(UIM_USE_EB:M[Yy][Ee][Ss])
-PKG_DEFAULT_OPTIONS+=   eb
-.endif
-
-.if defined(UIM_USE_QT) && !empty(UIM_USE_QT:M[Yy][Ee][Ss])
-PKG_DEFAULT_OPTIONS+=   qt
-.endif
-
-PKG_OPTIONS_VAR=        PKG_OPTIONS.uim
 PKG_SUPPORTED_OPTIONS=  anthy canna eb qt
-PKG_DEFAULT_OPTIONS+=  anthy canna
+PKG_SUPPORTED_OPTIONS= anthy canna
+PKG_OPTIONS_LEGACY_VARS+=      UIM_USE_ANTHY:anthy
+PKG_OPTIONS_LEGACY_VARS+=      UIM_USE_CANNA:canna
+PKG_OPTIONS_LEGACY_VARS+=      UIM_USE_EB:eb
+PKG_OPTIONS_LEGACY_VARS+=      UIM_USE_qt:qt
 
 .include "../../mk/bsd.options.mk"
 



Home | Main Index | Thread Index | Old Index