1 |
commit: 6bef3592397b1e52042ca088d0e15e8631a7ccbf |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 7 09:12:41 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 7 09:12:57 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bef3592 |
7 |
|
8 |
games-arcade/openmortal: Use pkg-config to find freetype |
9 |
|
10 |
Closes: https://bugs.gentoo.org/655036 |
11 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
12 |
|
13 |
.../files/openmortal-0.7-freetype_pkgconfig.patch | 24 ++++++++++++++++++++++ |
14 |
games-arcade/openmortal/openmortal-0.7-r2.ebuild | 8 +++++--- |
15 |
2 files changed, 29 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/games-arcade/openmortal/files/openmortal-0.7-freetype_pkgconfig.patch b/games-arcade/openmortal/files/openmortal-0.7-freetype_pkgconfig.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..fe683899f2e |
20 |
--- /dev/null |
21 |
+++ b/games-arcade/openmortal/files/openmortal-0.7-freetype_pkgconfig.patch |
22 |
@@ -0,0 +1,24 @@ |
23 |
+--- openmortal-0.7/configure.in |
24 |
++++ openmortal-0.7/configure.in |
25 |
+@@ -25,6 +25,7 @@ |
26 |
+ AC_C_CONST |
27 |
+ AC_PROG_CXX |
28 |
+ |
29 |
++PKG_PROG_PKG_CONFIG |
30 |
+ |
31 |
+ dnl |
32 |
+ dnl Switches |
33 |
+@@ -122,11 +123,8 @@ |
34 |
+ |
35 |
+ dnl Check for Freetype 2 library |
36 |
+ |
37 |
+-FT2_VERSION=2.1.0 |
38 |
+-AC_CHECK_FT2( |
39 |
+- $FT2_VERSION, |
40 |
+- :, |
41 |
+- AC_MSG_ERROR([*** FreeType 2 version $FT2_VERSION not found!]) |
42 |
++PKG_CHECK_MODULES(FT2, freetype2,, |
43 |
++ AC_MSG_ERROR([*** FreeType2 not found!]) |
44 |
+ ) |
45 |
+ CXXFLAGS="$CXXFLAGS $FT2_CFLAGS" |
46 |
+ LIBS="$LIBS $FT2_LIBS" |
47 |
|
48 |
diff --git a/games-arcade/openmortal/openmortal-0.7-r2.ebuild b/games-arcade/openmortal/openmortal-0.7-r2.ebuild |
49 |
index 025e21b639f..0153c5d051a 100644 |
50 |
--- a/games-arcade/openmortal/openmortal-0.7-r2.ebuild |
51 |
+++ b/games-arcade/openmortal/openmortal-0.7-r2.ebuild |
52 |
@@ -13,7 +13,7 @@ SLOT="0" |
53 |
KEYWORDS="~amd64 ~x86" |
54 |
IUSE="" |
55 |
|
56 |
-DEPEND="media-libs/libsdl[video] |
57 |
+RDEPEND="media-libs/libsdl[video] |
58 |
media-libs/sdl-image |
59 |
media-libs/sdl-mixer |
60 |
media-libs/sdl-ttf |
61 |
@@ -21,13 +21,15 @@ DEPEND="media-libs/libsdl[video] |
62 |
>=media-libs/freetype-2.4.0:2 |
63 |
dev-lang/perl |
64 |
" |
65 |
-RDEPEND="${DEPEND}" |
66 |
+DEPEND="${DEPEND} |
67 |
+ virtual/pkgconfig" |
68 |
|
69 |
src_prepare() { |
70 |
default |
71 |
eapply \ |
72 |
"${FILESDIR}/${P}"-gcc41.patch \ |
73 |
- "${FILESDIR}/${P}"-freetype.patch |
74 |
+ "${FILESDIR}/${P}"-freetype.patch \ |
75 |
+ "${FILESDIR}/${P}"-freetype_pkgconfig.patch |
76 |
mv configure.{in,ac} || die |
77 |
eautoreconf |
78 |
} |