archrelease: copy trunk to extra-x86_64
[arch-packages.git] / sdl2_ttf / trunk / freetype-pkgconfig.patch
blob02b06356190ef84c597f95a95264f6d415e9bc17
1 https://bugs.gentoo.org/654758
3 --- SDL_ttf-2.0.11/configure.in
4 +++ SDL_ttf-2.0.11/configure.in
5 @@ -64,6 +64,7 @@
6 ;;
7 esac
9 +PKG_PROG_PKG_CONFIG
11 dnl Check for iconv (character conversion library; see iconv.m4)
12 dnl This isn't available on many systems
13 @@ -94,6 +95,17 @@
14 dnl
15 dnl Get the cflags and libraries from the freetype-config script
16 dnl
17 +PKG_CHECK_MODULES(
18 + FREETYPE2,
19 + freetype2,
20 + [
21 + ft_found=yes
22 + CFLAGS="$CFLAGS $FREETYPE2_CFLAGS"
23 + LIBS="$LIBS $FREETYPE2_LIBS"
24 + ],
25 + ft_found=no
28 AC_ARG_WITH(freetype-prefix,[ --with-freetype-prefix=PFX Prefix where FREETYPE is
29 installed (optional)],
30 freetype_prefix="$withval", freetype_prefix="")
31 @@ -101,6 +113,7 @@
32 where FREETYPE is installed (optional)],
33 freetype_exec_prefix="$withval", freetype_exec_prefix="")
35 +if test "x$ft_found" != "xyes" ; then
36 if test x$freetype_exec_prefix != x ; then
37 freetype_args="$freetype_args --exec-prefix=$freetype_exec_prefix"
38 if test x${FREETYPE_CONFIG+set} != xset ; then
39 @@ -123,6 +136,7 @@
40 CFLAGS="$CFLAGS `$FREETYPE_CONFIG $freetypeconf_args --cflags`"
41 LIBS="$LIBS `$FREETYPE_CONFIG $freetypeconf_args --libs`"
43 +fi
45 dnl Check for SDL
46 SDL_VERSION=1.2.4