mcst-linux-kernel/patches-2024.06.26/mplayer-1.3.0/0103_svn38021_use-pkg-confi...

25 lines
836 B
Diff
Raw Permalink Normal View History

2024-07-09 13:51:45 +03:00
Description: configure: Use pkg-config if freetype-config is unavailable
Currently we only try to use freetype-config, but freetype-config
is deprecated by upstream. Starting soon freetype-config will
not be installed by typical freetype builds anymore.
.
Use pkg-config if freetype-config is not available. This
is identical to how we treat dvdnav-config and dvdread-config.
Origin: upstream, commit:38021
Bug-Debian: https://bugs.debian.org/892442
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/configure
+++ b/configure
@@ -841,7 +841,8 @@ quicktime=auto
_macosx_finder=no
_macosx_bundle=auto
_sortsub=yes
-_freetypeconfig='freetype-config'
+_freetypeconfig='pkg-config freetype2'
+type freetype-config >/dev/null 2>&1 && _freetypeconfig=freetype-config
_fribidi=auto
_enca=auto
_inet6=auto