1 |
bicatali 12/08/01 23:21:41 |
2 |
|
3 |
Added: opendx-4.4.4-magick.patch |
4 |
Removed: 20-opendx-revdep |
5 |
Log: |
6 |
Build for newer imagemagick and add possibility for graphicsmagick as well, fixing bug #314375. Keyword for x86-linux, switch to EAPI 4 |
7 |
|
8 |
(Portage version: 2.2.01.20796-prefix/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 sci-visualization/opendx/files/opendx-4.4.4-magick.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/opendx/files/opendx-4.4.4-magick.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/opendx/files/opendx-4.4.4-magick.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: opendx-4.4.4-magick.patch |
17 |
=================================================================== |
18 |
newer magick libraries, use pkg-config, add possibility to link with |
19 |
graphicsmagick, fix for as-needed |
20 |
|
21 |
--- dx-4.4.4.orig/src/exec/dxmods/_im_image.c |
22 |
+++ dx-4.4.4/src/exec/dxmods/_im_image.c |
23 |
@@ -329,7 +329,7 @@ |
24 |
DestroyImageInfo(new_frame_info); |
25 |
DestroyImageInfo(image_info); |
26 |
#if MagickLibVersion > 0x0537 |
27 |
- DestroyConstitute(); |
28 |
+ ConstituteComponentTerminus(); |
29 |
#endif |
30 |
DXSetError(ERROR_INTERNAL, "reason = %s, description = %s", |
31 |
image->exception.reason, |
32 |
@@ -346,7 +346,7 @@ |
33 |
DestroyImageInfo(new_frame_info); |
34 |
DestroyImageInfo(image_info); |
35 |
#if MagickLibVersion > 0x0537 |
36 |
- DestroyConstitute(); |
37 |
+ ConstituteComponentTerminus(); |
38 |
#endif |
39 |
DXErrorReturn( ERROR_INTERNAL , "out of memory allocating buffer _im_image.c"); |
40 |
} |
41 |
@@ -375,7 +375,7 @@ |
42 |
DestroyImageInfo(image_info); |
43 |
DestroyImageInfo(new_frame_info); |
44 |
#if MagickLibVersion > 0x0537 |
45 |
- DestroyConstitute(); |
46 |
+ ConstituteComponentTerminus(); |
47 |
#endif |
48 |
|
49 |
DEBUGMESSAGE("back from DestroyImage"); |
50 |
@@ -491,7 +491,7 @@ |
51 |
DestroyImage(image); |
52 |
DestroyImageInfo(image_info); |
53 |
#if MagickLibVersion > 0x0537 |
54 |
- DestroyConstitute(); |
55 |
+ ConstituteComponentTerminus(); |
56 |
#endif |
57 |
} |
58 |
return (OK); |
59 |
--- dx-4.4.4.orig/configure.ac |
60 |
+++ dx-4.4.4/configure.ac |
61 |
@@ -799,7 +799,29 @@ |
62 |
LIB_MAGICK='' |
63 |
if test "$with_magick" != 'no' |
64 |
then |
65 |
- AS_MESSAGE([checking for ImageMagick support ......]) |
66 |
+ found=0 |
67 |
+ static_lib="libGraphicsMagick.a" |
68 |
+ PKG_CHECK_MODULES(GraphicsMagick, GraphicsMagick, [found=1], [found=0]) |
69 |
+ MAGICK_CFLAGS="$GraphicsMagick_CFLAGS" |
70 |
+ MAGICK_LIBS="$GraphicsMagick_LIBS" |
71 |
+ if test $found -eq 0 |
72 |
+ then |
73 |
+ static_lib="libMagick.a" |
74 |
+ PKG_CHECK_MODULES(ImageMagick, ImageMagick, [found=1], [found=0]) |
75 |
+ MAGICK_CFLAGS="$ImageMagick_CFLAGS" |
76 |
+ MAGICK_LIBS="$ImageMagick_LIBS" |
77 |
+ fi |
78 |
+ if test $found -eq 1 |
79 |
+ then |
80 |
+ CFLAGS="$CFLAGS $MAGICK_CFLAGS" |
81 |
+dnl UNIQUIFY will remove duplicate library tokens leaving the last instance. |
82 |
+ AC_UTILS_UNIQUIFY([$LIBS $MAGICK_LIBS], LIBS) |
83 |
+ FMT_LIBS="$FMT_LIBS $static_lib" |
84 |
+ AC_DEFINE(HAVE_LIBMAGICK, 1, [Define to 1 if you have the ImageMagick libraries]) |
85 |
+ have_magick='yes' |
86 |
+dnl legacy checks installations without pkg-config |
87 |
+ else |
88 |
+ AS_MESSAGE([checking for ImageMagick support (no pkg-config) ......]) |
89 |
AC_CHECK_PROG(HAVE_MC, Magick-config, yes, no) |
90 |
|
91 |
failed=0; |
92 |
@@ -866,6 +888,7 @@ |
93 |
fi |
94 |
fi |
95 |
fi |
96 |
+fi |
97 |
|
98 |
AC_LANG([C++]) |
99 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int a = true;]])], |
100 |
--- dx-4.4.4.orig/src/exec/dxmods/Makefile.am |
101 |
+++ dx-4.4.4/src/exec/dxmods/Makefile.am |
102 |
@@ -113,4 +113,5 @@ |
103 |
$(SOURCES6) \ |
104 |
$(SOURCES7) |
105 |
|
106 |
+libDXMODS_la_LIBADD = @MAGICK_LIBS@ |
107 |
@LOCALMAKE@ |