This patch allows freetype2 to be built with system library. The most important reason to use the latest version is emboldening. configure script complains like this if you use internal freetype2: Internal freetype2 does not support emboldening See i65520 for more info. --- Makefile.orig Thu Apr 5 15:12:40 2007 +++ Makefile Fri Apr 6 13:18:52 2007 @@ -184,8 +184,7 @@ .if defined(WITH_GNUGCJ) EXTRA_PATCHES+= ${FILESDIR}/gcj-fbsdworkaround .endif - -.if defined(WITH_TTF_BYTECODE_ENABLED) +.if !defined(WITH_EXTERNAL_FREETYPE) && defined(WITH_TTF_BYTECODE_ENABLED) EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype .endif --- files/Makefile.knobs.orig Fri Apr 6 15:06:55 2007 +++ files/Makefile.knobs Fri Apr 6 13:24:38 2007 @@ -37,6 +37,13 @@ USE_GNOME+= glib20 .endif +.if defined(WITH_EXTERNAL_FREETYPE) +LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 +CONFIGURE_ARGS+= --with-system-freetype=yes +.else +CONFIGURE_ARGS+= --with-system-freetype=no +.endif + .if defined(ALL_LOCALIZED_LANGS) CONFIGURE_ARGS+= --with-lang=ALL .else @@ -85,6 +92,10 @@ @${ECHO} "You can compile OOo without gnome VFS support with" @${ECHO} "make -DWITHOUT_GNOMEVFS" .endif +.if !defined(WITH_EXTERNAL_FREETYPE) + @${ECHO} + @${ECHO} "You can compile OOo with freetype2 from ports with" + @${ECHO} "make -DWITH_EXTERNAL_FREETYPE" .if !defined(WITH_TTF_BYTECODE_ENABLED) @${ECHO} @${ECHO} "You may get better quality of glyphs" @@ -93,6 +104,7 @@ @${ECHO} "US05155805 US05159668 and US05325479, with" @${ECHO} "make -DWITH_TTF_BYTECODE_ENABLED" @${ECHO} "See http://www.freetype.org/patents.html for details" +.endif .endif .if !defined(LOCALIZED_LANG) @${ECHO}