Add a compile flag, MKTTINTERP, that turns on the bytecode interpreter

when it is set to yes (typically in /etc/mk.conf)

The freetype bytecode interpreter is not on by default because it is
patented in some jurisdictions.
This commit is contained in:
perry 2004-03-17 23:15:30 +00:00
parent 86948e4bf1
commit 1743443686
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2004/03/16 17:40:53 matt Exp $
# $NetBSD: Makefile,v 1.5 2004/03/17 23:15:30 perry Exp $
XMODULEDIR= ${X11USRLIBDIR}/modules/fonts
@ -81,6 +81,10 @@ CPPFLAGS+= -DXFREE86_FT2
.include <bsd.x11.mk>
.if defined(MKTTINTERP) && ${MKTTINTERP} != "no"
CPPFLAGS+= -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
.endif
.if !empty(X11FLAGS.LOADABLE)
CPPFLAGS+= -DFONTMODULE
LIBDIR= ${XMODULEDIR}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2004/03/06 03:05:40 rtr Exp $
# $NetBSD: Makefile,v 1.5 2004/03/17 23:15:30 perry Exp $
.include <bsd.own.mk>
@ -22,6 +22,10 @@ INCSDIR=${X11INCDIR}/freetype2
CPPFLAGS+= ${X11FLAGS.THREADLIB}
CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/freetype2
.if defined(MKTTINTERP) && ${MKTTINTERP} != "no"
CPPFLAGS+= -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER
.endif
.PATH: ${FREETYPESRC}/autohint
.PATH: ${FREETYPESRC}/base
.PATH: ${FREETYPESRC}/bdf