diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-04-06 22:33:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-04-06 22:33:41 +0100 |
commit | e68d405c5d712af4387159df07e226217bdda049 (patch) | |
tree | 009ab0f3d427f0813e62930d71802cb054c07e30 /media-libs/freetype/files | |
parent | 401101f9c8077911929d3f2b60a37098460a5d89 (diff) |
gentoo resync : 06.04.2022
Diffstat (limited to 'media-libs/freetype/files')
-rw-r--r-- | media-libs/freetype/files/freetype-2.12.0-librsvg_automagic.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/media-libs/freetype/files/freetype-2.12.0-librsvg_automagic.patch b/media-libs/freetype/files/freetype-2.12.0-librsvg_automagic.patch new file mode 100644 index 000000000000..bb6854e9ecb5 --- /dev/null +++ b/media-libs/freetype/files/freetype-2.12.0-librsvg_automagic.patch @@ -0,0 +1,56 @@ +https://gitlab.freedesktop.org/freetype/freetype/-/merge_requests/156 + +--- freetype-2.12.0/builds/unix/configure.ac ++++ freetype-2.12.0/builds/unix/configure.ac +@@ -530,13 +530,20 @@ + [test "$ac_cv_search_clock_gettime" = "none required" \ + || LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime]) + +-# 'librsvg' is needed to demonstrate SVG support. +-PKG_CHECK_MODULES([LIBRSVG], [librsvg-2.0 >= 2.46.0], +- [have_librsvg="yes (pkg-config)"], [have_librsvg=no]) +- + FT_DEMO_CFLAGS="" + FT_DEMO_LDFLAGS="$LIB_CLOCK_GETTIME" + ++# 'librsvg' is needed to demonstrate SVG support. ++AC_ARG_WITH([librsvg], ++ [AS_HELP_STRING([--with-librsvg=@<:@yes|no|auto@:>@], ++ [librsvg is needed to demonstrate SVG support in demos @<:@default=auto@:>@])], ++ [], [with_librsvg=auto]) ++ ++have_librsvg=no ++AS_IF([test x"$with_librsvg" != xno], [ ++ PKG_CHECK_MODULES([LIBRSVG], [librsvg-2.0 >= 2.46.0], ++ [have_librsvg="yes (pkg-config)"]) ++]) + if test "$have_librsvg" != no; then + FT_DEMO_CFLAGS="$FT_DEMO_CFLAGS $LIBRSVG_CFLAGS -DHAVE_LIBRSVG" + FT_DEMO_LDFLAGS="$FT_DEMO_LDFLAGS $LIBRSVG_LIBS" +--- freetype-2.12.0/builds/unix/configure.raw ++++ freetype-2.12.0/builds/unix/configure.raw +@@ -530,13 +530,20 @@ + [test "$ac_cv_search_clock_gettime" = "none required" \ + || LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime]) + +-# 'librsvg' is needed to demonstrate SVG support. +-PKG_CHECK_MODULES([LIBRSVG], [librsvg-2.0 >= 2.46.0], +- [have_librsvg="yes (pkg-config)"], [have_librsvg=no]) +- + FT_DEMO_CFLAGS="" + FT_DEMO_LDFLAGS="$LIB_CLOCK_GETTIME" + ++# 'librsvg' is needed to demonstrate SVG support. ++AC_ARG_WITH([librsvg], ++ [AS_HELP_STRING([--with-librsvg=@<:@yes|no|auto@:>@], ++ [librsvg is needed to demonstrate SVG support in demos @<:@default=auto@:>@])], ++ [], [with_librsvg=auto]) ++ ++have_librsvg=no ++AS_IF([test x"$with_librsvg" != xno], [ ++ PKG_CHECK_MODULES([LIBRSVG], [librsvg-2.0 >= 2.46.0], ++ [have_librsvg="yes (pkg-config)"]) ++]) + if test "$have_librsvg" != no; then + FT_DEMO_CFLAGS="$FT_DEMO_CFLAGS $LIBRSVG_CFLAGS -DHAVE_LIBRSVG" + FT_DEMO_LDFLAGS="$FT_DEMO_LDFLAGS $LIBRSVG_LIBS" |