Subject: pkg/20387: xchat2 should use pango
To: None <gnats-bugs@gnats.netbsd.org>
From: None <marc@informatik.uni-bremen.de>
List: netbsd-bugs
Date: 02/17/2003 11:03:10
>Number:         20387
>Category:       pkg
>Synopsis:       xchat2 should use pango (instead of xft)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 17 02:04:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Marc Recht
>Release:        NetBSD 1.6N
>Organization:
	
>Environment:
	
	
System: NetBSD leeloo.intern.geht.de 1.6N NetBSD 1.6N (LEELOO) #0: Sun Feb 16 12:46:34 CET 2003 root@leeloo.intern.geht.de:/sys/arch/i386/compile/LEELOO i386
Architecture: i386
Machine: i386
>Description:
xchat2 should use pango as default font redering engine, because it's better
at i18n. See http://mail.nl.linux.org/xchat-announce/2003-02/msg00000.html
for details. Because, it's a bit slower than XFT, XFT could be turned back
on by XCHAT_USE_XFT. Increased PKGREVISION.
(see patch)
	
>How-To-Repeat:
	
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/chat/xchat2/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile    2003/02/16 16:00:24     1.1.1.1
+++ Makefile    2003/02/17 09:51:32
@@ -2,6 +2,7 @@
 #
 
 DISTNAME=      xchat-2.0.0
+PKGREVISION=   1
 CATEGORIES=    chat gnome
 MASTER_SITES=  http://www.xchat.org/files/source/2.0/
 EXTRACT_SUFX=  .tar.bz2
@@ -23,7 +24,6 @@
 LIBTOOL_OVERRIDE=      ${WRKSRC}/libtool
 
 CONFIGURE_ARGS+=       --enable-tcl=no
-CONFIGURE_ARGS+=       --enable-xft
 CONFIGURE_ARGS+=       --disable-perl
 CONFIGURE_ARGS+=       --disable-python
 
@@ -47,10 +47,15 @@
 CONFIGURE_ARGS+=        --enable-openssl=${SSLBASE}
 .endif
 
+# XFT fallback
+.if defined(XCHAT_USE_XFT) && !empty(XCHAT_USE_XFT:M[Yy][Ee][Ss])
+.include "../../fonts/Xft2/buildlink2.mk"
+CONFIGURE_ARGS+=       --enable-xft
+.endif
+
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/lib/xchat/plugins
 
 .include "../../devel/pkgconfig/buildlink2.mk"
-.include "../../fonts/Xft2/buildlink2.mk"
 .include "../../x11/gtk2/buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"

	
>Release-Note:
>Audit-Trail:
>Unformatted: