From 93471d46df981321d092df277be22419f65c3ab7 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 7 Jan 2017 13:45:49 +0100 Subject: [PATCH] build: workaround to detect freetype on my Debian system I don't know if recent Cmake/Debian work better. --- build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.sh b/build.sh index e343cc53cf..b72df23dc9 100755 --- a/build.sh +++ b/build.sh @@ -147,6 +147,13 @@ fi if [ "$useCross" -eq 2 ] && [ "$(uname -m)" = "x86_64" ] && [ -e "/usr/lib/x86_64-linux-gnu/wx/config/gtk2-unicode-3.0" ]; then sudo update-alternatives --set wx-config /usr/lib/i386-linux-gnu/wx/config/gtk2-unicode-3.0 fi +# Workaround for Debian. Cmake failed to find freetype include path +if [ "$useCross" -eq 0 ] && [ "$(uname -m)" = "x86_64" ] && [ -e "/usr/include/x86_64-linux-gnu/freetype2/ft2build.h" ]; then + export GTKMM_BASEPATH=/usr/include/x86_64-linux-gnu/freetype2 +fi +if [ "$useCross" -eq 2 ] && [ "$(uname -m)" = "x86_64" ] && [ -e "/usr/include/i386-linux-gnu/freetype2/ft2build.h" ]; then + export GTKMM_BASEPATH=/usr/include/i386-linux-gnu/freetype2 +fi echo "Building pcsx2 with $flags" | tee "$log"