summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libwebp/files/libwebp-1.2.3-libpng-pkg-config.patch')
-rw-r--r--media-libs/libwebp/files/libwebp-1.2.3-libpng-pkg-config.patch32
1 files changed, 9 insertions, 23 deletions
diff --git a/media-libs/libwebp/files/libwebp-1.2.3-libpng-pkg-config.patch b/media-libs/libwebp/files/libwebp-1.2.3-libpng-pkg-config.patch
index fe33b97fa270..b219206c23b0 100644
--- a/media-libs/libwebp/files/libwebp-1.2.3-libpng-pkg-config.patch
+++ b/media-libs/libwebp/files/libwebp-1.2.3-libpng-pkg-config.patch
@@ -1,6 +1,6 @@
--- a/configure.ac
+++ b/configure.ac
-@@ -518,43 +518,15 @@ AS_IF([test "x$enable_sdl" != "xno"], [
+@@ -518,42 +518,20 @@ AS_IF([test "x$enable_sdl" != "xno"], [
AM_CONDITIONAL([BUILD_VWEBP_SDL], [test "$build_vwebp_sdl" = "yes"])
dnl === check for PNG support ===
@@ -18,9 +18,13 @@
- PNG_INCLUDES=`$LIBPNG_CONFIG --cflags`
- PNG_LIBS="`$LIBPNG_CONFIG --ldflags`"
- fi
--
++ LIBCHECK_PROLOGUE([PNG])
++ PKG_CHECK_MODULES([LIBPNG], [libpng])
+
- WITHLIB_OPTION([png], [PNG])
--
++ AC_DEFINE(WEBP_HAVE_PNG, [1], [Set to 1 if PNG library is installed])
++ png_support=yes
+
- LIBCHECK_PROLOGUE([PNG])
- AC_CHECK_HEADER(png.h,
- AC_SEARCH_LIBS(png_get_libpng_ver, [png],
@@ -41,26 +45,8 @@
- PNG_INCLUDES=""
- ],
- )
-- LIBCHECK_EPILOGUE([PNG])
-+ PKG_CHECK_MODULES([LIBPNG], [libpng])
-+ PNG_INCLUDES="${LIBPNG_CFLAGS}"
++ PNG_INCLUDES="${LIBPNG_CFLAGS} -DWEBP_HAVE_PNG"
+ PNG_LIBS="${LIBPNG_LIBS}"
+ LIBCHECK_EPILOGUE([PNG])
])
- dnl === check for JPEG support ===
-diff --git a/configure.ac b/configure.ac
-index b7a0d3e..5709913 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -524,9 +524,11 @@ AC_ARG_ENABLE([png], AS_HELP_STRING([--disable-png],
- [Disable detection of PNG format support
- @<:@default=auto@:>@]))
- AS_IF([test "x$enable_png" != "xno"], [
-+ LIBCHECK_PROLOGUE([PNG])
- PKG_CHECK_MODULES([LIBPNG], [libpng])
- PNG_INCLUDES="${LIBPNG_CFLAGS}"
- PNG_LIBS="${LIBPNG_LIBS}"
-+ LIBCHECK_EPILOGUE([PNG])
- ])
-
- dnl === check for JPEG support ===