From bb3189edd0a4968a6202d2c77003042cc1902f27 Mon Sep 17 00:00:00 2001 From: rillig Date: Mon, 24 Oct 2005 19:48:24 +0000 Subject: [PATCH] Converted to the options framework. Bumped PKGREVISION. --- editors/ng/Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/editors/ng/Makefile b/editors/ng/Makefile index 1283a0a19a2c..a92922599c12 100644 --- a/editors/ng/Makefile +++ b/editors/ng/Makefile @@ -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 @@ COMMENT= Very light Emacs-clone with japanese support 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