summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-strategy/asc/files/asc-2.6.0.0-freetype_pkgconfig.patch')
-rw-r--r--games-strategy/asc/files/asc-2.6.0.0-freetype_pkgconfig.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/games-strategy/asc/files/asc-2.6.0.0-freetype_pkgconfig.patch b/games-strategy/asc/files/asc-2.6.0.0-freetype_pkgconfig.patch
new file mode 100644
index 00000000000..a07cd2f8627
--- /dev/null
+++ b/games-strategy/asc/files/asc-2.6.0.0-freetype_pkgconfig.patch
@@ -0,0 +1,28 @@
+https://bugs.gentoo.org/657998
+
+--- asc-2.6.0.0/configure.ac
++++ asc-2.6.0.0/configure.ac
+@@ -401,22 +401,7 @@
+ FREETYPE_CFLAGS="`$ac_cv_path_freetype_config --cflags`"
+ FREETYPE_LIBS="`$ac_cv_path_freetype_config --libs`"
+ else
+- AC_CHECK_LIB(freetype,FT_Init_FreeType,have_freetype=yes)
+- AC_CHECK_HEADER(ft2build.h,have_ft2build=yes)
+- if test "$have_ft2build" != "yes"; then
+- have_freetype="no"
+- elif test "$have_freetype" = "yes"; then
+- FREETYPE_LIBS="-lfreetype"
+- ft2inc="no"
+- AC_MSG_CHECKING(freetype2 include directory)
+- if test -d /usr/local/include/freetype2; then
+- ft2inc="/usr/local/include/freetype2"
+- elif test -d /usr/include/freetype2; then
+- ft2inc="/usr/include/freetype2"
+- fi
+- AC_MSG_RESULT($ft2inc)
+- FREETYPE_CFLAGS="-I$ft2inc"
+- fi
++ PKG_CHECK_MODULES(FREETYPE, freetype2, have_freetype=yes)
+ fi
+
+ if test x$have_freetype = xno; then