diff options
Diffstat (limited to 'media-gfx/maim')
-rw-r--r-- | media-gfx/maim/files/maim-5.5.1-libjpeg-9c.patch | 16 | ||||
-rw-r--r-- | media-gfx/maim/maim-5.5.1.ebuild | 4 |
2 files changed, 19 insertions, 1 deletions
diff --git a/media-gfx/maim/files/maim-5.5.1-libjpeg-9c.patch b/media-gfx/maim/files/maim-5.5.1-libjpeg-9c.patch new file mode 100644 index 000000000000..83029fab8283 --- /dev/null +++ b/media-gfx/maim/files/maim-5.5.1-libjpeg-9c.patch @@ -0,0 +1,16 @@ +Allow building with libjpeg-9c +Bug: https://bugs.gentoo.org/656520 + +--- a/src/image.cpp ++++ b/src/image.cpp +@@ -187,8 +187,8 @@ + + jpeg_set_defaults(&cinfo); + // Convert quality from scale 1-10 to 0-100 +- jpeg_set_quality (&cinfo, (int)((float)quality-1.f)*(100.f/9.f), true); +- jpeg_start_compress(&cinfo, true); ++ jpeg_set_quality (&cinfo, (int)((float)quality-1.f)*(100.f/9.f), TRUE); ++ jpeg_start_compress(&cinfo, TRUE); + + JSAMPROW row_pointer; + unsigned char* buffer = (unsigned char*)data; diff --git a/media-gfx/maim/maim-5.5.1.ebuild b/media-gfx/maim/maim-5.5.1.ebuild index cb8869b7b809..a225be4803af 100644 --- a/media-gfx/maim/maim-5.5.1.ebuild +++ b/media-gfx/maim/maim-5.5.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -35,6 +35,8 @@ RDEPEND=" " DEPEND="${RDEPEND}" +PATCHES=( "${FILESDIR}"/${PN}-5.5.1-libjpeg-9c.patch ) + src_configure() { local mycmakeargs=( -DMAIM_UNICODE=$(usex unicode) |