media-gfx/fontforge: fix build with truetype-debugger enabled
authorMike Gilbert <floppym@gentoo.org>
Sat, 25 Apr 2020 04:10:09 +0000 (00:10 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sat, 25 Apr 2020 04:10:20 +0000 (00:10 -0400)
Closes: https://bugs.gentoo.org/719258
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
media-gfx/fontforge/fontforge-20200314.ebuild

index 78f202d17f268b9ad6da38e90a78877a431fa668..595c9336afa0313bf4ba59df96d876afe5441ac1 100644 (file)
@@ -94,7 +94,12 @@ src_configure() {
        fi
 
        if use truetype-debugger ; then
-               mycmakeargs+=( -DENABLE_FREETYPE_DEBUGGER="${EPREFIX}/usr/include/freetype2/internal4fontforge" )
+               local ft2="${ESYSROOT}/usr/include/freetype2"
+               local ft2i="${ft2}/internal4fontforge"
+               mycmakeargs+=(
+                       -DENABLE_FREETYPE_DEBUGGER="${ft2}"
+                       -DFreeTypeSource_INCLUDE_DIRS="${ft2};${ft2i}/include;${ft2i}/include/freetype;${ft2i}/src/truetype"
+               )
        fi
 
        cmake_src_configure