summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lermytte <gentoo@lermytte.be>2016-11-28 00:07:16 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2017-04-04 17:41:35 +0200
commit2da389e51d92dbe277d6e7b5cfd8194d5cae4ec3 (patch)
treefde59b23c7e674459e60ee201d8a4e0090a8d7b5 /media-gfx/ufraw/files
parentmedia-gfx/ufraw: Fix runtime crash (diff)
downloadgentoo-2da389e51d92dbe277d6e7b5cfd8194d5cae4ec3.tar.gz
gentoo-2da389e51d92dbe277d6e7b5cfd8194d5cae4ec3.tar.bz2
gentoo-2da389e51d92dbe277d6e7b5cfd8194d5cae4ec3.zip
media-gfx/ufraw: add explicit jpeg2k support
Upstream links to libjasper when available. This commit patches configure.ac to make libjasper support explicit and adds a jpeg2k USE flag to enable/disable it. Gentoo-bug: 470836 Package-Manager: portage-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/2939
Diffstat (limited to 'media-gfx/ufraw/files')
-rw-r--r--media-gfx/ufraw/files/ufraw-0.22-jasper-automagic.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/media-gfx/ufraw/files/ufraw-0.22-jasper-automagic.patch b/media-gfx/ufraw/files/ufraw-0.22-jasper-automagic.patch
new file mode 100644
index 000000000000..93e1d691af1d
--- /dev/null
+++ b/media-gfx/ufraw/files/ufraw-0.22-jasper-automagic.patch
@@ -0,0 +1,21 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -159,8 +159,16 @@
+ have_jpeg=${ac_cv_lib_jpeg_jpeg_CreateCompress:-no}
+
+ # Check for libjasper.
+-AC_CHECK_LIB(jasper, jas_image_decode)
+-have_jasper=${ac_cv_lib_jasper_jas_image_decode:-no}
++AC_ARG_ENABLE([jasper],
++ AS_HELP_STRING([--enable-jasper], [enable JPEG2000 support]))
++
++have_jasper=no
++AS_IF([test "x$enable_jasper" = "xyes"], [
++ AC_SEARCH_LIBS([jas_image_decode], [jasper], [have_jasper=yes], [
++ AC_MSG_ERROR([unable to find the jas_image_decode() function])
++ ])
++])
++
+
+ # Check for tiff headers and library.
+ PKG_CHECK_MODULES(LIBTIFF, libtiff-4,