summaryrefslogtreecommitdiff
path: root/media-gfx/graphicsmagick
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-28 07:37:55 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-28 07:37:55 +0000
commitd46d1d3a5897cade51811b3848c7bf27969da625 (patch)
tree0dabb04db53e3fe66abe43df0a3cdff5d3b664db /media-gfx/graphicsmagick
parente67d5b4ba05349b3bf4229d0cf7d069809c4420e (diff)
gentoo auto-resync : 28:12:2023 - 07:37:55
Diffstat (limited to 'media-gfx/graphicsmagick')
-rw-r--r--media-gfx/graphicsmagick/Manifest8
-rw-r--r--media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-perl.patch13
-rw-r--r--media-gfx/graphicsmagick/files/graphicsmagick-1.3.36-flags.patch59
-rw-r--r--media-gfx/graphicsmagick/files/graphicsmagick-1.3.40-libjpeg-turbo-3-001.patch69
-rw-r--r--media-gfx/graphicsmagick/files/graphicsmagick-1.3.40-libjpeg-turbo-3-002.patch48
-rw-r--r--media-gfx/graphicsmagick/files/graphicsmagick-1.3.40-libjpeg-turbo-3-003.patch31
-rw-r--r--media-gfx/graphicsmagick/graphicsmagick-1.3.40-r1.ebuild163
7 files changed, 0 insertions, 391 deletions
diff --git a/media-gfx/graphicsmagick/Manifest b/media-gfx/graphicsmagick/Manifest
index ef8abd193593..ac9556c59406 100644
--- a/media-gfx/graphicsmagick/Manifest
+++ b/media-gfx/graphicsmagick/Manifest
@@ -1,16 +1,8 @@
-AUX graphicsmagick-1.3.19-perl.patch 491 BLAKE2B 6a6465162d9a4d7d09b1edb425cc7114cd4e0fc65e48f15c8c2a854fe835fd1fe94c56611c6d2744d9e26884c57b1f67353bfd32abe2f25a145dd7abbf5479f0 SHA512 da114b891ec923253048d90ee14f136742072bcb70e512e8d2838bbcac57b5fe6ea580cdccfd1bba5156777623c43e946ce2a8661f88612d4c24849bef0fb865
-AUX graphicsmagick-1.3.36-flags.patch 2009 BLAKE2B 1d58f03cfeac9be92e2e85a2b6274ec22e3cb2c65d62e3095f2bb3da8f817ae52fdd6fe70e5da30bb8110202ec8c8268ffef7069c34d55ef7f7ccc3e53785418 SHA512 205694ea04e7b65c5519c564bbfa1ebd33ef4fa7800aec1a91439ed90794629dd54ab42c1c7f4f2f5ce3b7b078b3fffe76ce37c61643087f5cca244931b5bd3a
-AUX graphicsmagick-1.3.40-libjpeg-turbo-3-001.patch 2445 BLAKE2B 64779cb1c77576acf69fc72a56db2c526632650bff9dc24d9ce2bb708743e337a02c7cc447345e40ae6537f4173643fe349c558123b0c741441bc058e261a9f3 SHA512 6bcdad66f3b66944ce5039f4417c1f4959264f7b2da096f11e90c124e36857f6546c83f70b31d94233b58ebd4dbd40a3071e5b79716e4d7a6d0db689600ba0e0
-AUX graphicsmagick-1.3.40-libjpeg-turbo-3-002.patch 1735 BLAKE2B 36514306292a07130b0a38828d758019f3ddf2bc3080d65b754d525d1271af0f8a4fb3f36d2267a91296a337268ab6fa4717c836bf1ed42ce5761de86b163343 SHA512 4133e53d855a71c5f9432510fd10b5cd6fdd2aa3d20178ef16732e98b87ea11e186314c54d09c743bb903b62a10529c7aea791b7e40b920049f0c1ea6baceb4f
-AUX graphicsmagick-1.3.40-libjpeg-turbo-3-003.patch 1232 BLAKE2B 05268740f0774df6dfdafb744922e1dab6d0a6774ea4939c46195fe2f7f56d87fe3e4ca2b46dfa842b2110c56d6c1a77b87977f38936b73ea2d302b47cc03059 SHA512 4385bb7e8129c130d1c5ab2e1a248de6ba4241066bd40fe122a9b67309c03b15151fe8a41acd0c0ec0bc63483bbbb0a49085cc0a6456e72b4b3b822ac1357661
AUX graphicsmagick-1.3.41-flags.patch 1677 BLAKE2B 43eecb10dd3d45fad8283635144b1ee7c8adfc30d2b75ea597a574d899b57819f5a2c5d33ff68cc547b59af30990bea8a59a674475250055e41e5b70b1087b6c SHA512 2dad1b9b73d7fbd113ac842cabe974f8398ff8c8f2d1a8d7e98a91849a7b2953f2904cfc2d3720dd4096771a5ef0f7fa1744ff35502705f4ac98a1f804caa8e0
AUX graphicsmagick-1.3.41-perl.patch 482 BLAKE2B 8bdd60e4cc7c5ce7b2f6fac01c069a124148f593b8b4435b8b3a6aa1da644c4cb4e895d12a211a1aab5c4a6b35a4e775f0964961577a289fc1ca59ebdd346e88 SHA512 4e3d50bb32e7ed5ccac9a6e9d3938ab09ce86f1f02f43d02b6108cfa536b19b14a55a1f2ccdb0e1c9bb5c9180b6e37c8a5802193fd6df6a9e905195d0b3f5368
AUX graphicsmagick-1.3.42-autoconf-2.72-perl-lfs.patch 935 BLAKE2B 2ac2ca646d7c85dc4f372f2ebc863a3555d30a4b8365057bff3a5be730e0b114651b486b1ca57ef65cbc34f904224317a76eaa41d315fb0abf823f2bdd4bea58 SHA512 b31e875dabd10cb34612d408f99e60fe66d36d785b46ed440544cdb7431060d5155729a49580ce152c2aac7935df1cffe2f04725107378aa445f28a99376c788
-DIST GraphicsMagick-1.3.40.tar.xz 5507792 BLAKE2B 2052eb34931f07c902a9c68192ebe4d36137cd23219b1598bae2fa78c5c8bfd1efadf9fd430ed4fee8dc903e50ffabe5a9c76bf55966b85b6f303b2decdca6ee SHA512 e64902aa2a8702d03d188350bd4252a2263e431611f9a70f38cd8beede8a38cc91bb4de3603fedf15420ebbba488f609f218e9b45e356b9f8dc8e4a75f380ee5
-DIST GraphicsMagick-1.3.40.tar.xz.asc 228 BLAKE2B 70eaaa0cd30cfe23ac6dc5e8edc026c57eea7b1a608e83da3408f6fa9fc2cceeb8190e4e9015f321ee688f2a32689d244d69bc61764a99ab0f99ada72143a575 SHA512 82c628e4a260a690c7b1941321881a97d54b4c9580dcbfd8ae786a1774dc43c46e8542488ca875346446858e7475847c440cfca572315a5fe123315b187a240a
DIST GraphicsMagick-1.3.42.tar.xz 5553692 BLAKE2B f8f0d7d420375262b7db8ffcc1c9eb4e372fb20a7c5e55f566d965183bb9a8d3a20a43c249a0b05235caaa0883c58885329d5c8d1967f464c0b757d40d6fc825 SHA512 b512c9c4c06ec60f7d31e140da08f2bc16d492a2dab82778f1b38c074a25340159e59bfbaa30b2997a6fbd10a500ae1bda527e3c3854e4462bcae837e818428a
DIST GraphicsMagick-1.3.42.tar.xz.asc 228 BLAKE2B 723f8d1ca13bd5b32a12d69bb46f4991df6e7963f0d4c12ddaf60167a9ade4c6fa36819cce1df202437143bc55e17dd6f2cff821412dafceeb3ab5e3dbf3dc7b SHA512 de5d90c748376e7e480a066e9354ac1771f15cb2d8c6e5c9249672fd811b7bbe06f97b3348240538fa8d0d7c11150f57fb5148285214712944f7535afb943bd0
-EBUILD graphicsmagick-1.3.40-r1.ebuild 4030 BLAKE2B 074c388f51d8d748a3362b0c8189ac1ba66c700186cc670a04ea7929244c3f039b34d780ce7ad2b909cbee700003feabe01e111995748da3bb05167f54d2a8ce SHA512 bb24cbb108394cc5ef855b4de40232032ba8ad73306d45bb906de6e3dbeaeb6d6a9b4eda9d0d8b6381d7a09a09917affbdbf3afb2d4f96f42aa6252c91a423d7
EBUILD graphicsmagick-1.3.42.ebuild 3929 BLAKE2B 2760f36c100e4e76fab7253becce521d4e2aaa2765bf1b7fef12c2a82ae87f00a26ec8d370505ff8c42bc45c422fb2eec6789693fe196366c513f78d8a0d461e SHA512 90d47141fc69519fc913a39520dded157c01d994333ade9b518f9ae17b75d4c2a34452779f505789e472cdb2bd6da5dd281559425f880bee4e1612285161666a
EBUILD graphicsmagick-9999.ebuild 3880 BLAKE2B 17ca7c78e6dd99d50c2f7da6d49e3c4bf62733747c62f367e501ee7bada5be1142e26ce829a023ae965acfabc0522d17e38a72ac25b3d356fdfc32d5600847f3 SHA512 babd116e1e3f4119d9cd3e60ffd87d26dbfed4e951a36d2eac26905226ff20363b8f5678c88b0137fbc4ddc3ae0f2e5db69d2db69b8eb3b509545a3b55ed710f
MISC metadata.xml 1230 BLAKE2B 336c8cf97916b4907c95d16791e785336521c865aee9909129771e9d16405ff92471c56e9adae7ffd5354b769804c7e92bb20c1698c06b4994b73148b345bc6e SHA512 cdf719939c41c7aca942d6dec97d2b7496b345c9f9718b758ee08bc03a6a5afc80c989c0e977be021d292c8bf95007a4c42ef2346bb0c460bb48cacc9970560e
diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-perl.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-perl.patch
deleted file mode 100644
index 39cf05fd55f1..000000000000
--- a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.19-perl.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Link perl bindings against built libraries instead of system libraries (bug #456180).
-
---- GraphicsMagick-1.3.19/PerlMagick/Makefile.PL.in
-+++ GraphicsMagick-1.3.19/PerlMagick/Makefile.PL.in
-@@ -23,7 +23,7 @@
- my $magick_BIN_DIR="$ENV{'DESTDIR'}@BIN_DIR@";
- my $magick_DEP_LIBS='@MAGICK_DEP_LIBS@';
- my $magick_PERLMAINCC='@PERLMAINCC@';
--my $magick_LIB_DIR="$ENV{'DESTDIR'}@MAGICKLIBDIR@";
-+my $magick_LIB_DIR="../magick/.libs";
-
- # Compute test specification
- my $delegate_tests='t/*.t';
diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.36-flags.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.36-flags.patch
deleted file mode 100644
index 311cd7829258..000000000000
--- a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.36-flags.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-diff --git a/Magick++/bin/GraphicsMagick++-config.in b/Magick++/bin/GraphicsMagick++-config.in
-index 9733be2..4c49362 100755
---- a/Magick++/bin/GraphicsMagick++-config.in
-+++ b/Magick++/bin/GraphicsMagick++-config.in
-@@ -33,7 +33,7 @@ while test $# -gt 0; do
- echo '@MAGICK_API_CPPFLAGS@'
- ;;
- --cxxflags)
-- echo '@CXXFLAGS@'
-+ echo '@MAGICK_API_CXXFLAGS@'
- ;;
- --ldflags)
- echo '@MAGICK_API_LDFLAGS@'
-diff --git a/configure.ac b/configure.ac
-index d6a30f6..2f5ff6c 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -335,6 +335,7 @@ fi
-
- AC_OPENMP([C])
- CFLAGS="$OPENMP_CFLAGS $CFLAGS"
-+MAGICK_API_CFLAGS="$MAGICK_API_CFLAGS $OPENMP_CFLAGS"
- #CXXFLAGS="$OPENMP_CXXFLAGS $CXXFLAGS"
- #LDFLAGS="$LDFLAGS $OPENMP_CFLAGS"
- AC_SUBST([OPENMP_CFLAGS])
-@@ -3689,9 +3690,10 @@ MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
- MAGICK_EXTRA_DEP_LIBS=`echo $MAGICK_EXTRA_DEP_LIBS | sed -e 's/ */ /g'`
- #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
-
--MAGICK_API_CFLAGS=$CFLAGS
-+MAGICK_API_CFLAGS=`echo $MAGICK_API_CFLAGS | sed -e 's/ */ /g'`
- MAGICK_API_CPPFLAGS=`echo $MAGICK_API_CPPFLAGS | sed -e 's/ */ /g'`
--MAGICK_API_LDFLAGS="-L$LIB_DIR $LDFLAGS"
-+MAGICK_API_CXXFLAGS=""
-+MAGICK_API_LDFLAGS="-L$LIB_DIR"
- MAGICK_API_DEP_LIBS="$MAGICK_DEP_LIBS"
- MAGICK_API_LIBS="-lGraphicsMagick $MAGICK_API_DEP_LIBS $MAGICK_EXTRA_DEP_LIBS"
-
-@@ -3721,6 +3723,7 @@ AC_SUBST([X_CFLAGS])
-
- AC_SUBST([MAGICK_API_CFLAGS])
- AC_SUBST([MAGICK_API_CPPFLAGS])
-+AC_SUBST(MAGICK_API_CXXFLAGS)
- AC_SUBST([MAGICK_API_PC_CPPFLAGS])
- AC_SUBST([MAGICK_API_LDFLAGS])
- AC_SUBST([MAGICK_API_LIBS])
-diff --git a/magick/GraphicsMagick-config.in b/magick/GraphicsMagick-config.in
-index 8b2f016..3f66ae3 100644
---- a/magick/GraphicsMagick-config.in
-+++ b/magick/GraphicsMagick-config.in
-@@ -30,7 +30,7 @@ while test $# -gt 0; do
- echo @PACKAGE_VERSION@
- ;;
- --cflags)
-- echo '@CFLAGS@'
-+ echo '@MAGICK_API_CFLAGS@'
- ;;
- --cppflags)
- echo '@MAGICK_API_CPPFLAGS@'
diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.40-libjpeg-turbo-3-001.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.40-libjpeg-turbo-3-001.patch
deleted file mode 100644
index a505f8b7e2d8..000000000000
--- a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.40-libjpeg-turbo-3-001.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-https://bugs.gentoo.org/909834
-https://hg.osdn.net/view/graphicsmagick/GM/rev/f07f6a9c3a58
-
-# HG changeset patch
-# User Bob Friesenhahn <bfriesen@GraphicsMagick.org>
-# Date 1675529318 21600
-# Node ID f07f6a9c3a5862971b17d1481bb53f0666b0b66c
-# Parent 166bc6d3500ddeb243c7c1b25ca0d9eade8e3b55
-configure.ac: Test for interesting libjpeg-turbo 3.0 functions
-
---- a/configure
-+++ b/configure
-@@ -26116,6 +26116,20 @@
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- have_jpeg='yes'
-+ # Test for interesting libjpeg-turbo 3.0 functions (which may also appear in other JPEG libraries)
-+ for ac_func in jpeg_enable_lossless jpeg12_write_scanlines jpeg16_write_scanlines \
-+ jpeg12_read_scanlines jpeg16_read_scanlines
-+do :
-+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
-+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
-+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
-+ cat >>confdefs.h <<_ACEOF
-+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
-+_ACEOF
-+
-+fi
-+done
-+
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
---- a/configure.ac
-+++ b/configure.ac
-@@ -2250,6 +2250,9 @@
- AC_DEFINE([HasJPEG],[1],[Define if you have JPEG library])
- AC_MSG_RESULT([yes])
- have_jpeg='yes'
-+ # Test for interesting libjpeg-turbo 3.0 functions (which may also appear in other JPEG libraries)
-+ AC_CHECK_FUNCS([jpeg_enable_lossless jpeg12_write_scanlines jpeg16_write_scanlines \
-+ jpeg12_read_scanlines jpeg16_read_scanlines])
- fi
- else
- AC_MSG_RESULT([no])
---- a/magick/magick_config.h.in
-+++ b/magick/magick_config.h.in
-@@ -149,6 +149,21 @@
- /* Define to 1 if you have the `jas_init_library' function. */
- #undef HAVE_JAS_INIT_LIBRARY
-
-+/* Define to 1 if you have the `jpeg12_read_scanlines' function. */
-+#undef HAVE_JPEG12_READ_SCANLINES
-+
-+/* Define to 1 if you have the `jpeg12_write_scanlines' function. */
-+#undef HAVE_JPEG12_WRITE_SCANLINES
-+
-+/* Define to 1 if you have the `jpeg16_read_scanlines' function. */
-+#undef HAVE_JPEG16_READ_SCANLINES
-+
-+/* Define to 1 if you have the `jpeg16_write_scanlines' function. */
-+#undef HAVE_JPEG16_WRITE_SCANLINES
-+
-+/* Define to 1 if you have the `jpeg_enable_lossless' function. */
-+#undef HAVE_JPEG_ENABLE_LOSSLESS
-+
- /* Define if you have the <lcms2.h> header file. */
- #undef HAVE_LCMS2_H
-
diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.40-libjpeg-turbo-3-002.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.40-libjpeg-turbo-3-002.patch
deleted file mode 100644
index d45fc6d9605b..000000000000
--- a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.40-libjpeg-turbo-3-002.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-https://bugs.gentoo.org/909834
-https://hg.osdn.net/view/graphicsmagick/GM/rev/166bc6d3500d
-
-# HG changeset patch
-# User Bob Friesenhahn <bfriesen@GraphicsMagick.org>
-# Date 1675522420 21600
-# Node ID 166bc6d3500ddeb243c7c1b25ca0d9eade8e3b55
-# Parent 8c82d3be78692071e2f74fb1b9543e9b8384d7cb
-JPEG: Ignore C_LOSSLESS_SUPPORTED/D_LOSSLESS_SUPPORTED defined by JPEG-Turbo
-
---- a/coders/jpeg.c
-+++ b/coders/jpeg.c
-@@ -1,5 +1,5 @@
- /*
--% Copyright (C) 2003-2022 GraphicsMagick Group
-+% Copyright (C) 2003-2023 GraphicsMagick Group
- % Copyright (C) 2002 ImageMagick Studio
- % Copyright 1991-1999 E. I. du Pont de Nemours and Company
- %
-@@ -954,7 +954,7 @@
- i;
-
- save_quality=0;
--#ifdef D_LOSSLESS_SUPPORTED
-+#if !defined(LIBJPEG_TURBO_VERSION_NUMBER) && defined(D_LOSSLESS_SUPPORTED)
- if (image->compression==LosslessJPEGCompression)
- {
- save_quality=100;
-@@ -1461,7 +1461,9 @@
- }
- #endif
- #if (JPEG_LIB_VERSION >= 61) && defined(D_PROGRESSIVE_SUPPORTED)
--#ifdef D_LOSSLESS_SUPPORTED
-+#if !defined(LIBJPEG_TURBO_VERSION_NUMBER) && defined(D_LOSSLESS_SUPPORTED)
-+ /* This code is based on a patch to IJG JPEG 6b, or somesuch. Standard
-+ library does not have a 'process' member. */
- image->interlace=
- jpeg_info.process == JPROC_PROGRESSIVE ? LineInterlace : NoInterlace;
- image->compression=jpeg_info.process == JPROC_LOSSLESS ?
-@@ -2896,7 +2898,7 @@
- if ((image->compression == LosslessJPEGCompression) ||
- (quality > 100))
- {
--#if defined(C_LOSSLESS_SUPPORTED)
-+#if !defined(LIBJPEG_TURBO_VERSION_NUMBER) && defined(C_LOSSLESS_SUPPORTED)
- if (quality < 100)
- ThrowException(&image->exception,CoderWarning,
- LosslessToLossyJPEGConversion,(char *) NULL);
diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.40-libjpeg-turbo-3-003.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.40-libjpeg-turbo-3-003.patch
deleted file mode 100644
index 5b72576b1512..000000000000
--- a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.40-libjpeg-turbo-3-003.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-https://bugs.gentoo.org/909834
-https://hg.osdn.net/view/graphicsmagick/GM/rev/03561d79e918
-
-# HG changeset patch
-# User Bob Friesenhahn <bfriesen@GraphicsMagick.org>
-# Date 1676216369 21600
-# Node ID 03561d79e9180a65d204b6240a5846fd8b01d1b4
-# Parent 6eb67db043d537ae350409535873c5cbf55ba14c
-ReadJPEGImage(): Use MagickAllocateResourceLimitedClearedArray()
-
---- a/coders/jpeg.c
-+++ b/coders/jpeg.c
-@@ -1695,7 +1695,7 @@
- }
- }
-
-- jpeg_pixels=MagickAllocateResourceLimitedArray(JSAMPLE *,
-+ jpeg_pixels=MagickAllocateResourceLimitedClearedArray(JSAMPLE *,
- jpeg_info.output_components,
- MagickArraySize(image->columns,
- sizeof(JSAMPLE)));
-@@ -1704,9 +1704,6 @@
- jpeg_destroy_decompress(&jpeg_info);
- ThrowJPEGReaderException(ResourceLimitError,MemoryAllocationFailed,image);
- }
-- (void) memset(jpeg_pixels,0,MagickArraySize(jpeg_info.output_components,
-- MagickArraySize(image->columns,
-- sizeof(JSAMPLE))));
-
- /*
- Extended longjmp-based error handler (with jpeg_pixels)
diff --git a/media-gfx/graphicsmagick/graphicsmagick-1.3.40-r1.ebuild b/media-gfx/graphicsmagick/graphicsmagick-1.3.40-r1.ebuild
deleted file mode 100644
index d170dd62dcd7..000000000000
--- a/media-gfx/graphicsmagick/graphicsmagick-1.3.40-r1.ebuild
+++ /dev/null
@@ -1,163 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit autotools toolchain-funcs
-
-MY_P=${P/graphicsm/GraphicsM}
-DESCRIPTION="Collection of tools and libraries for many image formats"
-HOMEPAGE="http://www.graphicsmagick.org/ https://hg.osdn.net/view/graphicsmagick/GM"
-
-if [[ ${PV} == 9999 ]] ; then
- inherit mercurial
- EHG_REPO_URI="http://hg.code.sf.net/p/${PN}/code"
-else
- VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/bobfriesenhahn.asc
- inherit verify-sig
- SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz"
- SRC_URI+=" verify-sig? ( mirror://sourceforge/${PN}/${MY_P}.tar.xz.asc )"
- S="${WORKDIR}/${MY_P}"
-
- KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
-
- BDEPEND="verify-sig? ( sec-keys/openpgp-keys-bobfriesenhahn )"
-fi
-
-LICENSE="MIT"
-SLOT="0/${PV%.*}"
-
-IUSE="bzip2 +cxx debug dynamic-loading fpx heif imagemagick jbig jpeg jpegxl lcms lzma"
-IUSE+=" openmp perl png postscript q16 q32 static-libs svg tcmalloc tiff truetype"
-IUSE+=" webp wmf X zlib zstd"
-
-RDEPEND="
- dev-libs/libltdl
- bzip2? ( app-arch/bzip2 )
- fpx? ( media-libs/libfpx )
- heif? ( media-libs/libheif:= )
- imagemagick? ( !media-gfx/imagemagick )
- jbig? ( media-libs/jbigkit )
- jpeg? ( media-libs/libjpeg-turbo:= )
- jpegxl? ( media-libs/libjxl:= )
- lcms? ( media-libs/lcms:2 )
- lzma? ( app-arch/xz-utils )
- perl? ( dev-lang/perl:= )
- png? ( media-libs/libpng:= )
- postscript? ( app-text/ghostscript-gpl )
- svg? ( dev-libs/libxml2 )
- tcmalloc? ( dev-util/google-perftools:= )
- tiff? ( media-libs/tiff:= )
- truetype? (
- media-fonts/urw-fonts
- >=media-libs/freetype-2
- )
- webp? ( media-libs/libwebp:= )
- wmf? ( media-libs/libwmf )
- X? (
- x11-libs/libSM
- x11-libs/libX11
- x11-libs/libXext
- )
- zlib? ( sys-libs/zlib )
- zstd? ( app-arch/zstd:= )
-"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-1.3.36-flags.patch
- "${FILESDIR}"/${PN}-1.3.19-perl.patch
- "${FILESDIR}"/graphicsmagick-1.3.40-libjpeg-turbo-3-001.patch
- "${FILESDIR}"/graphicsmagick-1.3.40-libjpeg-turbo-3-002.patch
- "${FILESDIR}"/graphicsmagick-1.3.40-libjpeg-turbo-3-003.patch
-)
-
-pkg_pretend() {
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
-}
-
-pkg_setup() {
- [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
-}
-
-src_prepare() {
- default
-
- eautoreconf
-}
-
-src_configure() {
- local depth=8
-
- use q16 && depth=16
- use q32 && depth=32
-
- local myeconfargs=(
- --enable-largefile
- --enable-shared
- $(use_enable static-libs static)
- $(use_enable debug prof)
- $(use_enable debug gcov)
- $(use_enable imagemagick magick-compat)
- $(use_enable openmp)
- --with-threads
- $(use_with dynamic-loading modules)
- --with-quantum-depth=${depth}
- --without-frozenpaths
- $(use_with cxx magick-plus-plus)
- $(use_with heif)
- $(use_with jpegxl jxl)
- $(use_with perl)
- --with-perl-options=INSTALLDIRS=vendor
- $(use_with bzip2 bzlib)
- $(use_with postscript dps)
- $(use_with fpx)
- $(use_with jbig)
- $(use_with webp)
- $(use_with jpeg)
- # Needs last-rited/unpackaged jasper
- --without-jp2
- $(use_with lcms lcms2)
- $(use_with lzma)
- $(use_with png)
- $(use_with tcmalloc)
- $(use_with tiff)
- --without-trio
- $(use_with truetype ttf)
- $(use_with wmf)
- --with-fontpath="${EPREFIX}"/usr/share/fonts
- --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
- --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts
- $(use_with svg xml)
- $(use_with zlib)
- $(use_with zstd)
- $(use_with X x)
- )
-
- econf "${myeconfargs[@]}"
-}
-
-src_compile() {
- default
-
- use perl && emake perl-build
-}
-
-src_test() {
- unset DISPLAY # some perl tests fail when DISPLAY is set
-
- default
-}
-
-src_install() {
- default
-
- if use perl ; then
- emake -C PerlMagick DESTDIR="${D}" install
-
- find "${ED}" -type f -name perllocal.pod -exec rm -f {} + || die
- find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + || die
- fi
-
- find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + || die
-}