Subject: Re: pkg/24935: freetype2 has no MKTTINTERP knob
To: None <martin@duskware.de, gnats-bugs@gnats.NetBSD.org>
From: Marc Recht <recht@netbsd.org>
List: netbsd-bugs
Date: 03/27/2004 19:11:52
> When building freetype2 as part of xsrc in the base system, the MKTTINTERP
> setting allows to enable the bytecode interpreter for true type font
> outlines.

I'm running freety2 with the patch below for some time now. I can commit it 
after the freeze.
(With a s/FT2_USE_BYTECODE_INTERPRETER/MKTTINTERP/g)

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/freetype2/Makefile,v
retrieving revision 1.29
diff -u -r1.29 Makefile
--- Makefile	14 Feb 2004 18:26:28 -0000	1.29
+++ Makefile	27 Mar 2004 18:08:02 -0000
@@ -30,6 +30,12 @@

 .include "../../mk/bsd.prefs.mk"

+.if defined(FT2_USE_BYTECODE_INTERPRETER) &&	\
+  !empty(FT2_USE_BYTECODE_INTERPRETER:M[yY][eE][sS])
+CFLAGS+= -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
+.endif
+BUILD_DEFS+= FT2_USE_BYTECODE_INTERPRETER
+
 post-configure:
 	cd ${WRKSRC} && ${LN} -s builds/unix/unix.mk config.mk
 .if ${OPSYS} == "IRIX"

-- 
Marc Recht