--- x11-misc/xlockmore/xlockmore-5.43.ebuild +++ x11-misc/xlockmore/xlockmore-5.43.ebuild @@ -53,7 +53,7 @@ } src_configure() { - local myconf="" + local myconf="" freetype_direct_test_include if use opengl && use truetype; then myconf="${myconf} --with-ftgl" @@ -62,6 +62,11 @@ myconf="${myconf} --without-ftgl" fi + # workaround for >=freetype-2.5.1 + if use truetype && has_version ">=media-libs/freetype-2.5.1" ; then + export freetype_direct_test_include="freetype2/freetype.h" + fi + econf \ $(use_enable pam) \ $(use_enable xlockrc) \