mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
Allow OpenOffice.org to be built with system freetype2 library instead of
bundled one. The knob is WITH_SYSTEM_FREETYPE. The most notable advantage of using the latest freetype library from ports is it has CJK emboldening feature (i.e., it makes fake bold fonts from non-bold ones) and OpenOffice.org already makes use of it when the feature is available. Approved by: maho
This commit is contained in:
parent
eea81c262a
commit
c32f21340a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=189574
@ -184,8 +184,7 @@ EXTRA_PATCHES+= ${FILESDIR}/rtld-workaround-i66667
|
||||
.if defined(WITH_GNUGCJ)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/gcj-fbsdworkaround
|
||||
.endif
|
||||
|
||||
.if defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
.if !defined(WITH_SYSTEM_FREETYPE) && defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
|
||||
.endif
|
||||
|
||||
|
@ -37,6 +37,13 @@ CONFIGURE_ARGS+= --enable-evolution2=yes
|
||||
USE_GNOME+= glib20
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SYSTEM_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 @@ pre-fetch:
|
||||
@${ECHO} "You can compile OOo without gnome VFS support with"
|
||||
@${ECHO} "make -DWITHOUT_GNOMEVFS"
|
||||
.endif
|
||||
.if !defined(WITH_SYSTEM_FREETYPE)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can compile OOo with freetype2 from ports with"
|
||||
@${ECHO} "make -DWITH_SYSTEM_FREETYPE"
|
||||
.if !defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
@${ECHO}
|
||||
@${ECHO} "You may get better quality of glyphs"
|
||||
@ -94,6 +105,7 @@ pre-fetch:
|
||||
@${ECHO} "make -DWITH_TTF_BYTECODE_ENABLED"
|
||||
@${ECHO} "See http://www.freetype.org/patents.html for details"
|
||||
.endif
|
||||
.endif
|
||||
.if !defined(LOCALIZED_LANG)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can select the language for OOo by making it with:"
|
||||
|
@ -183,8 +183,7 @@ EXTRA_PATCHES+= ${FILESDIR}/rtld-workaround-i66667
|
||||
.if defined(WITH_GNUGCJ)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/gcj-fbsdworkaround
|
||||
.endif
|
||||
|
||||
.if defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
.if !defined(WITH_SYSTEM_FREETYPE) && defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
|
||||
.endif
|
||||
|
||||
|
@ -37,6 +37,13 @@ CONFIGURE_ARGS+= --enable-evolution2=yes
|
||||
USE_GNOME+= glib20
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SYSTEM_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 @@ pre-fetch:
|
||||
@${ECHO} "You can compile OOo without gnome VFS support with"
|
||||
@${ECHO} "make -DWITHOUT_GNOMEVFS"
|
||||
.endif
|
||||
.if !defined(WITH_SYSTEM_FREETYPE)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can compile OOo with freetype2 from ports with"
|
||||
@${ECHO} "make -DWITH_SYSTEM_FREETYPE"
|
||||
.if !defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
@${ECHO}
|
||||
@${ECHO} "You may get better quality of glyphs"
|
||||
@ -94,6 +105,7 @@ pre-fetch:
|
||||
@${ECHO} "make -DWITH_TTF_BYTECODE_ENABLED"
|
||||
@${ECHO} "See http://www.freetype.org/patents.html for details"
|
||||
.endif
|
||||
.endif
|
||||
.if !defined(LOCALIZED_LANG)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can select the language for OOo by making it with:"
|
||||
|
@ -185,8 +185,7 @@ EXTRA_PATCHES+= ${FILESDIR}/rtld-workaround-i66667
|
||||
.if defined(WITH_GNUGCJ)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/gcj-fbsdworkaround
|
||||
.endif
|
||||
|
||||
.if defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
.if !defined(WITH_SYSTEM_FREETYPE) && defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
|
||||
.endif
|
||||
|
||||
|
@ -37,6 +37,13 @@ CONFIGURE_ARGS+= --enable-evolution2=yes
|
||||
USE_GNOME+= glib20
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SYSTEM_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 @@ pre-fetch:
|
||||
@${ECHO} "You can compile OOo without gnome VFS support with"
|
||||
@${ECHO} "make -DWITHOUT_GNOMEVFS"
|
||||
.endif
|
||||
.if !defined(WITH_SYSTEM_FREETYPE)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can compile OOo with freetype2 from ports with"
|
||||
@${ECHO} "make -DWITH_SYSTEM_FREETYPE"
|
||||
.if !defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
@${ECHO}
|
||||
@${ECHO} "You may get better quality of glyphs"
|
||||
@ -94,6 +105,7 @@ pre-fetch:
|
||||
@${ECHO} "make -DWITH_TTF_BYTECODE_ENABLED"
|
||||
@${ECHO} "See http://www.freetype.org/patents.html for details"
|
||||
.endif
|
||||
.endif
|
||||
.if !defined(LOCALIZED_LANG)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can select the language for OOo by making it with:"
|
||||
|
@ -184,8 +184,7 @@ EXTRA_PATCHES+= ${FILESDIR}/rtld-workaround-i66667
|
||||
.if defined(WITH_GNUGCJ)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/gcj-fbsdworkaround
|
||||
.endif
|
||||
|
||||
.if defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
.if !defined(WITH_SYSTEM_FREETYPE) && defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
|
||||
.endif
|
||||
|
||||
|
@ -37,6 +37,13 @@ CONFIGURE_ARGS+= --enable-evolution2=yes
|
||||
USE_GNOME+= glib20
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SYSTEM_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 @@ pre-fetch:
|
||||
@${ECHO} "You can compile OOo without gnome VFS support with"
|
||||
@${ECHO} "make -DWITHOUT_GNOMEVFS"
|
||||
.endif
|
||||
.if !defined(WITH_SYSTEM_FREETYPE)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can compile OOo with freetype2 from ports with"
|
||||
@${ECHO} "make -DWITH_SYSTEM_FREETYPE"
|
||||
.if !defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
@${ECHO}
|
||||
@${ECHO} "You may get better quality of glyphs"
|
||||
@ -94,6 +105,7 @@ pre-fetch:
|
||||
@${ECHO} "make -DWITH_TTF_BYTECODE_ENABLED"
|
||||
@${ECHO} "See http://www.freetype.org/patents.html for details"
|
||||
.endif
|
||||
.endif
|
||||
.if !defined(LOCALIZED_LANG)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can select the language for OOo by making it with:"
|
||||
|
@ -183,8 +183,7 @@ EXTRA_PATCHES+= ${FILESDIR}/rtld-workaround-i66667
|
||||
.if defined(WITH_GNUGCJ)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/gcj-fbsdworkaround
|
||||
.endif
|
||||
|
||||
.if defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
.if !defined(WITH_SYSTEM_FREETYPE) && defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
|
||||
.endif
|
||||
|
||||
|
@ -37,6 +37,13 @@ CONFIGURE_ARGS+= --enable-evolution2=yes
|
||||
USE_GNOME+= glib20
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SYSTEM_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 @@ pre-fetch:
|
||||
@${ECHO} "You can compile OOo without gnome VFS support with"
|
||||
@${ECHO} "make -DWITHOUT_GNOMEVFS"
|
||||
.endif
|
||||
.if !defined(WITH_SYSTEM_FREETYPE)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can compile OOo with freetype2 from ports with"
|
||||
@${ECHO} "make -DWITH_SYSTEM_FREETYPE"
|
||||
.if !defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
@${ECHO}
|
||||
@${ECHO} "You may get better quality of glyphs"
|
||||
@ -94,6 +105,7 @@ pre-fetch:
|
||||
@${ECHO} "make -DWITH_TTF_BYTECODE_ENABLED"
|
||||
@${ECHO} "See http://www.freetype.org/patents.html for details"
|
||||
.endif
|
||||
.endif
|
||||
.if !defined(LOCALIZED_LANG)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can select the language for OOo by making it with:"
|
||||
|
@ -185,8 +185,7 @@ EXTRA_PATCHES+= ${FILESDIR}/rtld-workaround-i66667
|
||||
.if defined(WITH_GNUGCJ)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/gcj-fbsdworkaround
|
||||
.endif
|
||||
|
||||
.if defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
.if !defined(WITH_SYSTEM_FREETYPE) && defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
|
||||
.endif
|
||||
|
||||
|
@ -37,6 +37,13 @@ CONFIGURE_ARGS+= --enable-evolution2=yes
|
||||
USE_GNOME+= glib20
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SYSTEM_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 @@ pre-fetch:
|
||||
@${ECHO} "You can compile OOo without gnome VFS support with"
|
||||
@${ECHO} "make -DWITHOUT_GNOMEVFS"
|
||||
.endif
|
||||
.if !defined(WITH_SYSTEM_FREETYPE)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can compile OOo with freetype2 from ports with"
|
||||
@${ECHO} "make -DWITH_SYSTEM_FREETYPE"
|
||||
.if !defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
@${ECHO}
|
||||
@${ECHO} "You may get better quality of glyphs"
|
||||
@ -94,6 +105,7 @@ pre-fetch:
|
||||
@${ECHO} "make -DWITH_TTF_BYTECODE_ENABLED"
|
||||
@${ECHO} "See http://www.freetype.org/patents.html for details"
|
||||
.endif
|
||||
.endif
|
||||
.if !defined(LOCALIZED_LANG)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can select the language for OOo by making it with:"
|
||||
|
@ -184,8 +184,7 @@ EXTRA_PATCHES+= ${FILESDIR}/rtld-workaround-i66667
|
||||
.if defined(WITH_GNUGCJ)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/gcj-fbsdworkaround
|
||||
.endif
|
||||
|
||||
.if defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
.if !defined(WITH_SYSTEM_FREETYPE) && defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
|
||||
.endif
|
||||
|
||||
|
@ -37,6 +37,13 @@ CONFIGURE_ARGS+= --enable-evolution2=yes
|
||||
USE_GNOME+= glib20
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SYSTEM_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 @@ pre-fetch:
|
||||
@${ECHO} "You can compile OOo without gnome VFS support with"
|
||||
@${ECHO} "make -DWITHOUT_GNOMEVFS"
|
||||
.endif
|
||||
.if !defined(WITH_SYSTEM_FREETYPE)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can compile OOo with freetype2 from ports with"
|
||||
@${ECHO} "make -DWITH_SYSTEM_FREETYPE"
|
||||
.if !defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
@${ECHO}
|
||||
@${ECHO} "You may get better quality of glyphs"
|
||||
@ -94,6 +105,7 @@ pre-fetch:
|
||||
@${ECHO} "make -DWITH_TTF_BYTECODE_ENABLED"
|
||||
@${ECHO} "See http://www.freetype.org/patents.html for details"
|
||||
.endif
|
||||
.endif
|
||||
.if !defined(LOCALIZED_LANG)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can select the language for OOo by making it with:"
|
||||
|
@ -183,8 +183,7 @@ EXTRA_PATCHES+= ${FILESDIR}/rtld-workaround-i66667
|
||||
.if defined(WITH_GNUGCJ)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/gcj-fbsdworkaround
|
||||
.endif
|
||||
|
||||
.if defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
.if !defined(WITH_SYSTEM_FREETYPE) && defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
|
||||
.endif
|
||||
|
||||
|
@ -37,6 +37,13 @@ CONFIGURE_ARGS+= --enable-evolution2=yes
|
||||
USE_GNOME+= glib20
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SYSTEM_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 @@ pre-fetch:
|
||||
@${ECHO} "You can compile OOo without gnome VFS support with"
|
||||
@${ECHO} "make -DWITHOUT_GNOMEVFS"
|
||||
.endif
|
||||
.if !defined(WITH_SYSTEM_FREETYPE)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can compile OOo with freetype2 from ports with"
|
||||
@${ECHO} "make -DWITH_SYSTEM_FREETYPE"
|
||||
.if !defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
@${ECHO}
|
||||
@${ECHO} "You may get better quality of glyphs"
|
||||
@ -94,6 +105,7 @@ pre-fetch:
|
||||
@${ECHO} "make -DWITH_TTF_BYTECODE_ENABLED"
|
||||
@${ECHO} "See http://www.freetype.org/patents.html for details"
|
||||
.endif
|
||||
.endif
|
||||
.if !defined(LOCALIZED_LANG)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can select the language for OOo by making it with:"
|
||||
|
@ -184,8 +184,7 @@ EXTRA_PATCHES+= ${FILESDIR}/rtld-workaround-i66667
|
||||
.if defined(WITH_GNUGCJ)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/gcj-fbsdworkaround
|
||||
.endif
|
||||
|
||||
.if defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
.if !defined(WITH_SYSTEM_FREETYPE) && defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/optpatch-freetype
|
||||
.endif
|
||||
|
||||
|
@ -37,6 +37,13 @@ CONFIGURE_ARGS+= --enable-evolution2=yes
|
||||
USE_GNOME+= glib20
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SYSTEM_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 @@ pre-fetch:
|
||||
@${ECHO} "You can compile OOo without gnome VFS support with"
|
||||
@${ECHO} "make -DWITHOUT_GNOMEVFS"
|
||||
.endif
|
||||
.if !defined(WITH_SYSTEM_FREETYPE)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can compile OOo with freetype2 from ports with"
|
||||
@${ECHO} "make -DWITH_SYSTEM_FREETYPE"
|
||||
.if !defined(WITH_TTF_BYTECODE_ENABLED)
|
||||
@${ECHO}
|
||||
@${ECHO} "You may get better quality of glyphs"
|
||||
@ -94,6 +105,7 @@ pre-fetch:
|
||||
@${ECHO} "make -DWITH_TTF_BYTECODE_ENABLED"
|
||||
@${ECHO} "See http://www.freetype.org/patents.html for details"
|
||||
.endif
|
||||
.endif
|
||||
.if !defined(LOCALIZED_LANG)
|
||||
@${ECHO}
|
||||
@${ECHO} "You can select the language for OOo by making it with:"
|
||||
|
Loading…
Reference in New Issue
Block a user