games-arcade/tuxpuck: Use pkg-config to find freetype
authorLars Wendler <polynomial-c@gentoo.org>
Mon, 7 May 2018 08:24:50 +0000 (10:24 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Mon, 7 May 2018 08:24:50 +0000 (10:24 +0200)
Closes: https://bugs.gentoo.org/654894
Package-Manager: Portage-2.3.36, Repoman-2.3.9

games-arcade/tuxpuck/files/tuxpuck-0.8.2-freetype_pkgconfig.patch [new file with mode: 0644]
games-arcade/tuxpuck/tuxpuck-0.8.2-r2.ebuild

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 (file)
index 0000000..410024e
--- /dev/null
@@ -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
index b1df215d59d0d8817ecaec298e14a6e5394e1bc5..092a493272778ab3fa474a1d1e23d14e0bbbb31c 100644 (file)
@@ -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() {