From fb5c529a39bb80573cbd2c71e5ec5cb4c73a9b98 Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Thu, 25 May 2017 21:43:09 +0200 Subject: [PATCH] media-video/dcpomatic: Fix for ImageMagick-7. Package-Manager: Portage-2.3.6, Repoman-2.3.2 --- media-video/dcpomatic/dcpomatic-2.10.2.ebuild | 4 ++++ .../files/dcpomatic-2.10.2-imagemagick-7.patch | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 media-video/dcpomatic/files/dcpomatic-2.10.2-imagemagick-7.patch diff --git a/media-video/dcpomatic/dcpomatic-2.10.2.ebuild b/media-video/dcpomatic/dcpomatic-2.10.2.ebuild index 637661d1af0b7..9cd6b2365fe3b 100644 --- a/media-video/dcpomatic/dcpomatic-2.10.2.ebuild +++ b/media-video/dcpomatic/dcpomatic-2.10.2.ebuild @@ -85,6 +85,10 @@ src_prepare() { -e '/film_metadata_test.cc/d' \ -i test/wscript || die + if has_version ">media-gfx/imagemagick-7" ; then + epatch "${FILESDIR}"/${PN}-2.10.2-imagemagick-7.patch + fi + default } diff --git a/media-video/dcpomatic/files/dcpomatic-2.10.2-imagemagick-7.patch b/media-video/dcpomatic/files/dcpomatic-2.10.2-imagemagick-7.patch new file mode 100644 index 0000000000000..2e4e9e8838efa --- /dev/null +++ b/media-video/dcpomatic/files/dcpomatic-2.10.2-imagemagick-7.patch @@ -0,0 +1,18 @@ +--- dcpomatic-2.10.2/src/lib/environment_info.cc ++++ dcpomatic-2.10.2/src/lib/environment_info.cc +@@ -25,12 +25,13 @@ + #include + #include + #ifdef DCPOMATIC_IMAGE_MAGICK +-#include ++#include ++#include + #else + #include + #include +-#endif + #include ++#endif + extern "C" { + #include + #include