[Xfce4-commits] [xfce/tumbler] 01/01: Use pkg-config to find FreeType

noreply at xfce.org noreply at xfce.org
Sun Sep 2 08:39:19 CEST 2018


This is an automated email from the git hooks/post-receive script.

a   l   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/tumbler.

commit d462f3b951dfc4f066938e9ffe3ec769b4ca9038
Author: Evangelos Foutras <evangelos at foutrelis.com>
Date:   Sun Jun 10 22:48:13 2018 +0300

    Use pkg-config to find FreeType
    
    Starting with FreeType 2.9.1, freetype-config might not be available.
---
 acinclude.m4 | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/acinclude.m4 b/acinclude.m4
index 546e2fe..596917b 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -52,23 +52,7 @@ if test x"$ac_tumbler_font_thumbnailer" = x"yes"; then
   PKG_CHECK_MODULES([GDK_PIXBUF], [gdk-pixbuf-2.0 >= 2.14], 
   [
     dnl Check for FreeType 2.x
-    FREETYPE_LIBS=""
-    FREETYPE_CFLAGS=""
-    AC_PATH_PROG([FREETYPE_CONFIG], [freetype-config], [no])
-    if test x"$FREETYPE_CONFIG" != x"no"; then
-      AC_MSG_CHECKING([FREETYPE_CFLAGS])
-      FREETYPE_CFLAGS="`$FREETYPE_CONFIG --cflags`"
-      AC_MSG_RESULT([$FREETYPE_CFLAGS])
-    
-      AC_MSG_CHECKING([FREETYPE_LIBS])
-      FREETYPE_LIBS="`$FREETYPE_CONFIG --libs`"
-      AC_MSG_RESULT([$FREETYPE_LIBS])
-    else
-      dnl We can only build the font thumbnailer if FreeType 2.x is available
-      ac_tumbler_font_thumbnailer=no
-    fi
-    AC_SUBST([FREETYPE_CFLAGS])
-    AC_SUBST([FREETYPE_LIBS])
+    PKG_CHECK_MODULES([FREETYPE], [freetype2], [], [ac_tumbler_font_thumbnailer=no])
   ], [ac_tumbler_font_thumbnailer=no])
 fi
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list