summaryrefslogtreecommitdiffstats
path: root/graphics-libs/freetype2/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'graphics-libs/freetype2/BUILD')
-rwxr-xr-xgraphics-libs/freetype2/BUILD9
1 files changed, 9 insertions, 0 deletions
diff --git a/graphics-libs/freetype2/BUILD b/graphics-libs/freetype2/BUILD
new file mode 100755
index 0000000000..78ceee22e7
--- /dev/null
+++ b/graphics-libs/freetype2/BUILD
@@ -0,0 +1,9 @@
+# Fix freetype2 casting for the first time
+# freetype2 with harfbuzz support requires harfbuzz built with freetype2...
+# see http://wiki.linuxfromscratch.org/blfs/ticket/5331#comment:2
+if is_depends_enabled harfbuzz ${SPELL} && ! spell_ok ${SPELL}; then
+ message "${WARNING_COLOR}Disabling harfbuzz for first cast${DEFAULT_COLOR}" &&
+ list_remove OPTS '--with-harfbuzz=yes' &&
+ OPTS="--with-harfbuzz=no ${OPTS}"
+fi
+default_build