pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/editors/ng Converted to the options framework. Bumped ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d89354700095
branches:  trunk
changeset: 501613:d89354700095
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Oct 24 19:48:24 2005 +0000

description:
Converted to the options framework. Bumped PKGREVISION.

diffstat:

 editors/ng/Makefile |  16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diffs (38 lines):

diff -r bee70071fc01 -r d89354700095 editors/ng/Makefile
--- a/editors/ng/Makefile       Mon Oct 24 19:47:39 2005 +0000
+++ b/editors/ng/Makefile       Mon Oct 24 19:48:24 2005 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.18 2005/06/16 06:57:49 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2005/10/24 19:48:24 rillig Exp $
 
 DISTNAME=      ng-1.4.3
+PKGREVISION=   1
 CATEGORIES=     editors japanese
 MASTER_SITES=   http://tt.sakura.ne.jp/~amura/archives/ng/
 
@@ -10,18 +11,19 @@
 
 WRKSRC=         ${WRKDIR}/ng
 
-.include "../../mk/bsd.prefs.mk"       # for USE_CANNA
+PKG_SUPPORTED_OPTIONS= canna
+PKG_SUGGESTED_OPTIONS= canna
+PKG_OPTIONS_VAR=       PKG_OPTIONS.ng
+PKG_OPTIONS_LEGACY_VARS=       USE_CANNA:canna
 
-.if !defined(USE_CANNA)
-USE_CANNA=     YES
-.endif
+.include "../../mk/bsd.options.mk"
 
-.if ${USE_CANNA} == "YES"
+.if !empty(PKG_OPTIONS:Mcanna)
 .include "../../inputmethod/canna-lib/buildlink3.mk"
+MAKEFLAGS+=    USE_CANNA=YES
 .endif
 
 BUILD_TARGET=  ng
-MAKEFLAGS+=    USE_CANNA=${USE_CANNA}
 
 INSTALLATION_DIRS=     bin
 



Home | Main Index | Thread Index | Old Index