media-video/gpac: Use pkg-config to find freetype

Thanks to Bernd Feige who reported the issue and provided a patch.

Bug: https://bugs.gentoo.org/655272
Package-Manager: Portage-2.3.36, Repoman-2.3.9
This commit is contained in:
Lars Wendler
2018-05-08 20:32:58 +02:00
parent 400a7eb881
commit 59bd97f12a
2 changed files with 18 additions and 1 deletions
@@ -0,0 +1,15 @@
Index: gpac-0.7.1/configure
===================================================================
--- gpac-0.7.1.orig/configure
+++ gpac-0.7.1/configure
@@ -1117,8 +1117,8 @@ if docc $CFLAGS_DIR $ft_cflags $ft_lflag
fi
if test "$cross_prefix" = "" ; then
if test "$has_ft" = "no" ; then
- ft_cflags="`freetype-config --cflags 2>>$logs`"
- ft_lflags="`freetype-config --libs 2>>$logs`"
+ ft_cflags="`pkg-config --cflags freetype2 2>>$logs`"
+ ft_lflags="`pkg-config --libs freetype2 2>>$logs`"
if docc $ft_cflags $ft_lflags $LDFLAGS ; then
has_ft="system"
fi
+3 -1
View File
@@ -56,12 +56,14 @@ RDEPEND="
"
# disabled upstream, see applications/Makefile
# wxwidgets? ( =x11-libs/wxGTK-2.8* )
DEPEND="${RDEPEND}"
DEPEND="${RDEPEND}
virtual/pkgconfig"
# DOCS="AUTHORS BUGS Changelog README.md TODO doc/CODING_STYLE doc/*.doc doc/*.bt doc/SceneGenerators doc/ipmpx_syntax.bt doc/*.txt"
PATCHES=(
"${FILESDIR}/${PN}-0.7.1-configure.patch"
"${FILESDIR}/ffmpeg4.patch"
"${FILESDIR}/${PN}-freetype.patch"
)
DOCS=(