Subject: pkg/19010: mail/cue should take account of USE_CANNA
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 11/10/2002 20:03:32
>Number:         19010
>Category:       pkg
>Synopsis:       mail/cue should take account of USE_CANNA
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 10 23:20:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 1.6K
>Organization:

>Environment:
	
	
System: NetBSD kaeru 1.6K NetBSD 1.6K (build.kaeru) #173: Sun Nov 10 18:20:21 JST 2002 takashi@kaeru:/usr/home/takashi/work/kernel/build.kaeru i386
Architecture: i386
Machine: i386
>Description:
	
>How-To-Repeat:
	
>Fix:
Index: Makefile
===================================================================
RCS file: /cvs/NetBSD/pkgsrc/mail/cue/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- Makefile	2002/11/09 02:01:59	1.16
+++ Makefile	2002/11/10 10:58:25
@@ -21,8 +21,13 @@ CONFIGURE_ARGS+=	--enable-ipv6
 CONFIGURE_ARGS+=	--disable-ipv6
 .endif
 
-# require Canna, for now, cue assumes Japanese encoding anyways
+.if !defined(USE_CANNA) || ${USE_CANNA} == "YES"
+.include "../../inputmethod/canna-lib/buildlink2.mk"
 CONFIGURE_ARGS+=	--with-canna=${BUILDLINK_PREFIX.canna-lib}
+.else
+CONFIGURE_ARGS+=	--without-canna
+.endif
+
 CONFIGURE_ARGS+=	--with-openssl=${SSLBASE}
 .if defined(USE_IDEA)
 CONFIGURE_ARGS+=	--enable-idea
@@ -36,6 +41,5 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/cue.hlp  ${PREFIX}/share/doc/cue
 	${INSTALL_DATA} ${WRKSRC}/cue.html ${PREFIX}/share/doc/cue
 
-.include "../../inputmethod/canna-lib/buildlink2.mk"
 .include "../../security/openssl/buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: