Skip to content

Commit

Permalink
media-video/dcpomatic: Fix for ImageMagick-7.
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.6, Repoman-2.3.2
  • Loading branch information
xmw committed May 25, 2017
1 parent bc5f839 commit fb5c529
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions media-video/dcpomatic/dcpomatic-2.10.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
18 changes: 18 additions & 0 deletions media-video/dcpomatic/files/dcpomatic-2.10.2-imagemagick-7.patch
Original file line number Diff line number Diff line change
@@ -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 <dcp/version.h>
#include <libssh/libssh.h>
#ifdef DCPOMATIC_IMAGE_MAGICK
-#include <magick/MagickCore.h>
+#include <MagickCore/MagickCore.h>
+#include <MagickCore/version.h>
#else
#include <magick/common.h>
#include <magick/magick_config.h>
-#endif
#include <magick/version.h>
+#endif
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>

0 comments on commit fb5c529

Please sign in to comment.