1 |
commit: dd38b4c265dd04f2659a0d4518bc687f82c168ac |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 4 06:52:56 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 4 06:52:56 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd38b4c2 |
7 |
|
8 |
media-libs/freetype: Workaround windows mis-detection |
9 |
|
10 |
Thanks to slyfox for providing a fix. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/654712 |
13 |
Package-Manager: Portage-2.3.35, Repoman-2.3.9 |
14 |
|
15 |
media-libs/freetype/freetype-2.9.1-r1.ebuild | 7 +++++++ |
16 |
media-libs/freetype/freetype-9999.ebuild | 7 +++++++ |
17 |
2 files changed, 14 insertions(+) |
18 |
|
19 |
diff --git a/media-libs/freetype/freetype-2.9.1-r1.ebuild b/media-libs/freetype/freetype-2.9.1-r1.ebuild |
20 |
index 097647c00a6..f8e4fb37a31 100644 |
21 |
--- a/media-libs/freetype/freetype-2.9.1-r1.ebuild |
22 |
+++ b/media-libs/freetype/freetype-2.9.1-r1.ebuild |
23 |
@@ -175,6 +175,13 @@ multilib_src_configure() { |
24 |
LIBPNG_LDFLAGS="$($(tc-getPKG_CONFIG) --libs libpng)" |
25 |
) |
26 |
|
27 |
+ case ${CHOST} in |
28 |
+ mingw*|*-mingw*) ;; |
29 |
+ # Workaround windows mis-detection: bug #654712 |
30 |
+ # Have to do it for both ${CHOST}-windres and windres |
31 |
+ *) myeconfargs+=( ac_cv_prog_RC= ac_cv_prog_ac_ct_RC= ) ;; |
32 |
+ esac |
33 |
+ |
34 |
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
35 |
} |
36 |
|
37 |
|
38 |
diff --git a/media-libs/freetype/freetype-9999.ebuild b/media-libs/freetype/freetype-9999.ebuild |
39 |
index 097647c00a6..f8e4fb37a31 100644 |
40 |
--- a/media-libs/freetype/freetype-9999.ebuild |
41 |
+++ b/media-libs/freetype/freetype-9999.ebuild |
42 |
@@ -175,6 +175,13 @@ multilib_src_configure() { |
43 |
LIBPNG_LDFLAGS="$($(tc-getPKG_CONFIG) --libs libpng)" |
44 |
) |
45 |
|
46 |
+ case ${CHOST} in |
47 |
+ mingw*|*-mingw*) ;; |
48 |
+ # Workaround windows mis-detection: bug #654712 |
49 |
+ # Have to do it for both ${CHOST}-windres and windres |
50 |
+ *) myeconfargs+=( ac_cv_prog_RC= ac_cv_prog_ac_ct_RC= ) ;; |
51 |
+ esac |
52 |
+ |
53 |
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
54 |
} |