1 |
commit: 4fde525de771a9a8f3460bb1d76d9b2b9c1976a0 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 23 12:46:12 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 23 12:46:26 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fde525d |
7 |
|
8 |
media-libs/ming: Use better patch to find freetype. |
9 |
|
10 |
Package-Manager: Portage-2.3.38, Repoman-2.3.9 |
11 |
|
12 |
.../ming/files/ming-0.4.8-freetype_pkgconfig.patch | 27 +++++++++++++++++----- |
13 |
1 file changed, 21 insertions(+), 6 deletions(-) |
14 |
|
15 |
diff --git a/media-libs/ming/files/ming-0.4.8-freetype_pkgconfig.patch b/media-libs/ming/files/ming-0.4.8-freetype_pkgconfig.patch |
16 |
index 5c2de7554d4..5bddf052122 100644 |
17 |
--- a/media-libs/ming/files/ming-0.4.8-freetype_pkgconfig.patch |
18 |
+++ b/media-libs/ming/files/ming-0.4.8-freetype_pkgconfig.patch |
19 |
@@ -1,4 +1,4 @@ |
20 |
-From ef3719d39e8bb7e96c6ec57d60261f1516353460 Mon Sep 17 00:00:00 2001 |
21 |
+From 0d5b3bc1cc492c10072def017fe704782bc4b274 Mon Sep 17 00:00:00 2001 |
22 |
From: Lars Wendler <polynomial-c@g.o> |
23 |
Date: Fri, 4 May 2018 17:40:04 +0200 |
24 |
Subject: [PATCH] Use pkg-config to find freetype |
25 |
@@ -6,14 +6,14 @@ Subject: [PATCH] Use pkg-config to find freetype |
26 |
As of freetype-2.9.1 the freetype-config script has been deprecated and |
27 |
is no longer shipped by default. |
28 |
--- |
29 |
- configure.in | 22 ++-------------------- |
30 |
- 1 file changed, 2 insertions(+), 20 deletions(-) |
31 |
+ configure.in | 30 +++++++----------------------- |
32 |
+ 1 file changed, 7 insertions(+), 23 deletions(-) |
33 |
|
34 |
diff --git a/configure.in b/configure.in |
35 |
-index 95943a0b..f1685c26 100644 |
36 |
+index 361db86c..cb9423f5 100644 |
37 |
--- a/configure.in |
38 |
+++ b/configure.in |
39 |
-@@ -257,26 +257,8 @@ freetype_support=yes) |
40 |
+@@ -257,26 +257,10 @@ freetype_support=yes) |
41 |
|
42 |
if test "$freetype_support" = "yes"; then |
43 |
dnl Check for the freetype library |
44 |
@@ -38,10 +38,25 @@ index 95943a0b..f1685c26 100644 |
45 |
- AC_SUBST(FREETYPE_LIBS) |
46 |
- AC_SUBST(FREETYPE_CFLAGS) |
47 |
+ PKG_PROG_PKG_CONFIG |
48 |
-+ PKG_CHECK_MODULES(FREETYPE, freetype2,, AC_MSG_ERROR([Could not find freetype])) |
49 |
++ PKG_CHECK_MODULES(FREETYPE, freetype2, HAS_FREETYPE=true, |
50 |
++ AC_MSG_ERROR([Could not find freetype]) |
51 |
++ ) |
52 |
fi |
53 |
|
54 |
dnl Check for the ungif or gif (new or old) libraries |
55 |
+@@ -334,9 +318,9 @@ if test -n "${ZLIB}" -a -n "${ZLIB_INC}"; then |
56 |
+ AC_DEFINE([USE_ZLIB], [1], [Use zlib]) |
57 |
+ fi |
58 |
+ |
59 |
+-AM_CONDITIONAL(USE_FREETYPE, test x${ft_config} != x) |
60 |
+-if test -n "${ft_config}"; then |
61 |
+- AC_DEFINE(USE_FREETYPE, [1], [Use freetype library]) |
62 |
++AM_CONDITIONAL(USE_FREETYPE, test x${HAS_FREETYPE} != x) |
63 |
++if test x${HAS_FREETYPE} = xtrue ; then |
64 |
++ AC_DEFINE(USE_FREETYPE, [1], [Use freetype library]) |
65 |
+ fi |
66 |
+ |
67 |
+ AM_CONDITIONAL(GIFLIB_GIFERRORSTRING, test x"$ac_cv_lib_gif_GifErrorString" = xyes) |
68 |
-- |
69 |
2.17.0 |