]> git.pld-linux.org Git - packages/dx.git/commitdiff
- fix build with latest ImageMagick
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 13 Nov 2008 11:59:39 +0000 (11:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dx-ImageMagic.patch -> 1.1

dx-ImageMagic.patch [new file with mode: 0644]

diff --git a/dx-ImageMagic.patch b/dx-ImageMagic.patch
new file mode 100644 (file)
index 0000000..ba8f794
--- /dev/null
@@ -0,0 +1,31 @@
+--- dx-4.4.4/configure.ac.orig 2006-08-21 23:56:08.000000000 +0200
++++ dx-4.4.4/configure.ac      2008-11-13 12:31:28.000000000 +0100
+@@ -801,7 +800,10 @@
+     failed=0;
+     passed=0;
++    old_CPPFLAGS="$CPPFLAGS"
++    CPPFLAGS="$CPPFLAGS -I/usr/include/ImageMagick"
+     AC_CHECK_HEADER([magick/api.h],[passed=`expr $passed + 1`],[failed=`expr $failed + 1`])
++    CPPFLAGS="$old_CPPFLAGS"
+ if test "$ARCH" = "intelnt" ; then
+     AC_CHECK_LIB(CORE_RL_magick_,Hopen,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
+     AC_MSG_CHECKING(if ImageMagick package is complete)
+@@ -836,7 +838,7 @@
+  if test "$HAVE_MC" = "yes" ; then
+     LIB_MAGICK="`Magick-config --ldflags` `Magick-config --libs`"
+-    AC_CHECK_LIB( Magick,GetImageInfo, passed=`expr $passed + 1`, failed=`expr $failed + 1`, [ $LIB_MAGICK ])
++    AC_CHECK_LIB( MagickCore,GetImageInfo, passed=`expr $passed + 1`, failed=`expr $failed + 1`, [ $LIB_MAGICK ])
+     AC_MSG_CHECKING(if ImageMagick package is complete)
+     if test $passed -gt 0
+     then
+@@ -850,7 +852,7 @@
+       LIB_MAGICK="$LIBS `Magick-config --ldflags` `Magick-config --libs`"
+ dnl UNIQUIFY will remove duplicate library tokens leaving the last instance.
+       AC_UTILS_UNIQUIFY($LIB_MAGICK, LIBS)
+-      FMT_LIBS="$FMT_LIBS libMagick.a"
++      FMT_LIBS="$FMT_LIBS libMagickCore.a"
+       AC_DEFINE(HAVE_LIBMAGICK, 1, [Define to 1 if you have the ImageMagick libraries])
+       AC_MSG_RESULT(yes)
+         have_magick='yes'
This page took 0.085188 seconds and 4 git commands to generate.