commit:     dd0204b722226cc131f7ed94ccd8470cfc7709c6
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon May  7 08:24:50 2018 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon May  7 08:24:50 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd0204b7

games-arcade/tuxpuck: Use pkg-config to find freetype

Closes: https://bugs.gentoo.org/654894
Package-Manager: Portage-2.3.36, Repoman-2.3.9

 .../tuxpuck/files/tuxpuck-0.8.2-freetype_pkgconfig.patch      | 11 +++++++++++
 games-arcade/tuxpuck/tuxpuck-0.8.2-r2.ebuild                  |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/games-arcade/tuxpuck/files/tuxpuck-0.8.2-freetype_pkgconfig.patch 
b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-freetype_pkgconfig.patch
new file mode 100644
index 00000000000..410024e48dc
--- /dev/null
+++ b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-freetype_pkgconfig.patch
@@ -0,0 +1,11 @@
+--- tuxpuck-0.8.2/utils/Makefile
++++ tuxpuck-0.8.2/utils/Makefile
+@@ -6,7 +6,7 @@
+ all : ttf2font data2c anim
+ 
+ ttf2font : ttf2font.c
+-      $(CC) $(CFLAGS) ttf2font.c `freetype-config --cflags --libs` -o ttf2font
++      $(CC) $(CFLAGS) ttf2font.c `pkg-config --cflags --libs freetype2` -o 
ttf2font
+ 
+ data2c : data2c.c
+       $(CC) $(CFLAGS) data2c.c `sdl-config --cflags --libs` -o data2c

diff --git a/games-arcade/tuxpuck/tuxpuck-0.8.2-r2.ebuild 
b/games-arcade/tuxpuck/tuxpuck-0.8.2-r2.ebuild
index b1df215d59d..092a4932727 100644
--- a/games-arcade/tuxpuck/tuxpuck-0.8.2-r2.ebuild
+++ b/games-arcade/tuxpuck/tuxpuck-0.8.2-r2.ebuild
@@ -21,6 +21,7 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}
        media-libs/freetype:2
+       virtual/pkgconfig
 "
 
 src_prepare() {
@@ -40,7 +41,8 @@ src_prepare() {
 
        eapply "${FILESDIR}"/${P}-ldflags.patch \
                "${FILESDIR}"/${P}-png15.patch \
-               "${FILESDIR}"/${P}-parallel.patch
+               "${FILESDIR}"/${P}-parallel.patch \
+               "${FILESDIR}"/${P}-freetype_pkgconfig.patch
 }
 
 src_compile() {

Reply via email to