]> git.pld-linux.org Git - packages/dx.git/blame - dx-ImageMagic.patch
- build at most in C++14 mode; release 25
[packages/dx.git] / dx-ImageMagic.patch
CommitLineData
b54d7b7f
JR
1--- dx-4.4.4/configure.ac.orig 2006-08-21 23:56:08.000000000 +0200
2+++ dx-4.4.4/configure.ac 2008-11-13 12:31:28.000000000 +0100
3@@ -801,7 +800,10 @@
4
5 failed=0;
6 passed=0;
7+ old_CPPFLAGS="$CPPFLAGS"
8+ CPPFLAGS="$CPPFLAGS -I/usr/include/ImageMagick"
9 AC_CHECK_HEADER([magick/api.h],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`])
10+ CPPFLAGS="$old_CPPFLAGS"
11 if test "$ARCH" = "intelnt" ; then
12 AC_CHECK_LIB(CORE_RL_magick_,Hopen,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
13 AC_MSG_CHECKING(if ImageMagick package is complete)
14@@ -836,7 +838,7 @@
15
16 if test "$HAVE_MC" = "yes" ; then
17 LIB_MAGICK="`Magick-config --ldflags` `Magick-config --libs`"
18- AC_CHECK_LIB( Magick,GetImageInfo, passed=`expr $passed + 1`, failed=`expr $failed + 1`, [ $LIB_MAGICK ])
19+ AC_CHECK_LIB( MagickCore,GetImageInfo, passed=`expr $passed + 1`, failed=`expr $failed + 1`, [ $LIB_MAGICK ])
20 AC_MSG_CHECKING(if ImageMagick package is complete)
21 if test $passed -gt 0
22 then
23@@ -850,7 +852,7 @@
24 LIB_MAGICK="$LIBS `Magick-config --ldflags` `Magick-config --libs`"
25 dnl UNIQUIFY will remove duplicate library tokens leaving the last instance.
26 AC_UTILS_UNIQUIFY($LIB_MAGICK, LIBS)
27- FMT_LIBS="$FMT_LIBS libMagick.a"
28+ FMT_LIBS="$FMT_LIBS libMagickCore.a"
29 AC_DEFINE(HAVE_LIBMAGICK, 1, [Define to 1 if you have the ImageMagick libraries])
30 AC_MSG_RESULT(yes)
31 have_magick='yes'
cdc4bc0f
JR
32diff -urN dx-4.4.4/src/exec/dxmods/_im_image.c dx-4.4.4-new/src/exec/dxmods/_im_image.c
33--- dx-4.4.4/src/exec/dxmods/_im_image.c 2006-01-05 17:55:43.000000000 -0500
34+++ dx-4.4.4-new/src/exec/dxmods/_im_image.c 2008-05-11 01:09:15.000000000 -0400
35@@ -999,8 +999,11 @@
36 /* Opacities in colormap is wrong; use direct color map */
37 if ( image->matte )
38 for ( x = 0; x < width; x++ )
39- omap[*(indexes2++)] = ( 1.0 -
40+ {
41+ int omap_index = *(indexes2++); // if Magick has HDRI, Quantum is a float
42+ omap[(omap_index < 0 ? 0 : omap_index)] = ( 1.0 - // clamp if negative
43 ((float) (pixies++)->opacity) / MaxRGB );
44+ }
45 }
46 } else
47 DXErrorGoto( ERROR_INTERNAL, "unexpected image field format" );
2816ba88 48--- dx-4.4.4/src/exec/dxmods/_im_image.c.orig 2010-01-19 11:42:23.000000000 +0100
49+++ dx-4.4.4/src/exec/dxmods/_im_image.c 2010-01-19 11:42:48.000000000 +0100
50@@ -329,7 +329,7 @@
51 DestroyImageInfo(new_frame_info);
52 DestroyImageInfo(image_info);
53 #if MagickLibVersion > 0x0537
54- DestroyConstitute();
55+ ConstituteComponentTerminus();
56 #endif
57 DXSetError(ERROR_INTERNAL, "reason = %s, description = %s",
58 image->exception.reason,
59@@ -346,7 +346,7 @@
60 DestroyImageInfo(new_frame_info);
61 DestroyImageInfo(image_info);
62 #if MagickLibVersion > 0x0537
63- DestroyConstitute();
64+ ConstituteComponentTerminus();
65 #endif
66 DXErrorReturn( ERROR_INTERNAL , "out of memory allocating buffer _im_image.c");
67 }
68@@ -375,7 +375,7 @@
69 DestroyImageInfo(image_info);
70 DestroyImageInfo(new_frame_info);
71 #if MagickLibVersion > 0x0537
72- DestroyConstitute();
73+ ConstituteComponentTerminus();
74 #endif
75
76 DEBUGMESSAGE("back from DestroyImage");
77@@ -491,7 +491,7 @@
78 DestroyImage(image);
79 DestroyImageInfo(image_info);
80 #if MagickLibVersion > 0x0537
81- DestroyConstitute();
82+ ConstituteComponentTerminus();
83 #endif
84 }
85 return (OK);
This page took 0.189693 seconds and 4 git commands to generate.