echo '-L/usr/local/lib '
;;
--libs)
- echo "-L${libdir} -lMagick++ -lMagickWand -lMagickCore -llcms2 -ltiff -lfreetype -ljasper -ljpeg -lpng -lfontconfig -lXext -lXt -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lgvc -lgraph -lcdt -lz -lm -lgomp -lpthread -lltdl"
+ echo "-L${libdir} -lMagick++ -lMagickWand -lMagickCore -llcms2 -ltiff -lfreetype -ljasper -ljpeg -lpng -lfontconfig -lXext -lXt -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lgvc -lgraph -lcdt -lz -lm -lgomp -lpthread "
;;
*)
echo "${usage}" 1>&2
#if !defined(_MAGICK_CONFIG_H)
# define _MAGICK_CONFIG_H
# if !defined(vms) && !defined(macintosh)
-# include "MagickCore/magick-config.h"
+# include "magick/magick-config.h"
# else
# include "magick-config.h"
# endif
//
namespace MagickCore
{
-#include <MagickCore/MagickCore.h>
-#include <MagickWand/MagickWand.h>
+#include <magick/MagickCore.h>
+#include <wand/MagickWand.h>
#undef inline // Remove possible definition from config.h
#undef class
'INC' => $INC_magick,
# C compiler
- #'CC' => 'gcc -std=gnu99 -std=gnu99',
+ #'CC' => 'g++',
# C pre-processor flags (e.g. -I & -D options)
# 'CPPFLAGS' => "$Config{'cppflags'} -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/graphviz -I/usr/include/freetype2 -I/usr/include/libxml2",
'CCFLAGS' => $CCFLAGS_magick,
# Linker
- #'LD' => $Config{'ld'} == $Config{'cc'} ? 'gcc -std=gnu99 -std=gnu99' : $Config{'ld'},
+ #'LD' => $Config{'ld'} == $Config{'cc'} ? 'g++' : $Config{'ld'},
# Linker flags for building an executable
'LDFLAGS' => $LDFLAGS_magick,
# 'OPTIMIZE' => '',
# Use same compiler as ImageMagick
- 'PERLMAINCC' => ' -fopenmp',
+ 'PERLMAINCC' => 'g++ -fopenmp',
# Set Perl installation prefix to ImageMagick installation prefix
# 'PREFIX' => '/usr/local',
if test -x PerlMagick -a -f Makefile.aperl ; then
# Static build test incantation
- ${MAKE} -f Makefile.aperl CC='gcc -std=gnu99 -std=gnu99' TEST_VERBOSE=1 test
+ ${MAKE} -f Makefile.aperl CC='g++' TEST_VERBOSE=1 test
elif test -f Makefile -a -f Magick.o; then
# Shared build test incantation
- ${MAKE} CC='gcc -std=gnu99 -std=gnu99' TEST_VERBOSE=1 test
+ ${MAKE} CC='g++' TEST_VERBOSE=1 test
else
echo 'PerlMagick has not been built!'
exit 1
((color).blue == (target).blue))
#endif
-/* Convenience macros for copying RGB or RGB+opacity components
- * between a pixel and a PixelPacket.
- */
-
-#define GetRGBOPixelComponents(pixel, packet) \
- { \
- (packet).red = GetRedPixelComponent((pixel)); \
- (packet).green = GetGreenPixelComponent((pixel)); \
- (packet).blue = GetBluePixelComponent((pixel)); \
- (packet).opacity = GetOpacityPixelComponent((pixel)); \
- }
-
-/* Not same as SetRGBOPixelComponent in magick/pixel.h */
-#define SetRGBOPixelComponents(pixel, packet) \
- { \
- SetRedPixelComponent((pixel),(packet).red); \
- SetGreenPixelComponent((pixel),(packet).green); \
- SetBluePixelComponent((pixel),(packet).blue); \
- SetOpacityPixelComponent((pixel),(packet).opacity); \
- }
-
-#define GetRGBPixelComponents(pixel, packet) \
- { \
- (packet).red = GetRedPixelComponent((pixel)); \
- (packet).green = GetGreenPixelComponent((pixel)); \
- (packet).blue = GetBluePixelComponent((pixel)); \
- }
-
-#define SetRGBPixelComponents(pixel, packet) \
- { \
- SetRedPixelComponent((pixel),(packet).red); \
- SetGreenPixelComponent((pixel),(packet).green); \
- SetBluePixelComponent((pixel),(packet).blue); \
- }
-
/* Macros for left-bit-replication to ensure that pixels
* and PixelPackets all have the image->depth, and for use
* in PNG8 quantization.
if (magn_methy <= 1)
{
/* replicate previous */
- SetRGBOPixelComponent(q,(pixels));
+ SetRGBOPixelComponents(q,(pixels));
}
else if (magn_methy == 2 || magn_methy == 4)
{
if (i == 0)
{
- SetRGBOPixelComponent(q,(pixels));
+ SetRGBOPixelComponents(q,(pixels));
}
else
/* Replicate nearest */
if (i <= ((m+1) << 1))
{
- SetRGBOPixelComponent(q,(pixels));
+ SetRGBOPixelComponents(q,(pixels));
}
else
{
- SetRGBOPixelComponent(q,(n));
+ SetRGBOPixelComponents(q,(n));
}
if (magn_methy == 5)
if (magn_methx <= 1)
{
/* replicate previous */
- SetRGBOPixelComponent(q,(pixels));
+ SetRGBOPixelComponents(q,(pixels));
}
else if (magn_methx == 2 || magn_methx == 4)
{
if (i == 0)
{
- SetRGBOPixelComponent(q,(pixels));
+ SetRGBOPixelComponents(q,(pixels));
}
/* To do: Rewrite using Get/Set***PixelComponent() */
/* Replicate nearest */
if (i <= ((m+1) << 1))
{
- SetRGBOPixelComponent(q,(pixels));
+ SetRGBOPixelComponents(q,(pixels));
}
else
{
- SetRGBOPixelComponent(q,(n));
+ SetRGBOPixelComponents(q,(n));
}
if (magn_methx == 5)
{
if (number_opaque == 0)
{
- GetRGBPixelComponents(q, opaque[0]);
+ GetRGBPixelComponents(q, opaque);
opaque[0].opacity=OpaqueOpacity;
number_opaque=1;
}
number_opaque < 259)
{
number_opaque++;
- GetRGBPixelComponents(q, opaque[i]);
+ GetRGBPixelComponents(q, opaque+i);
opaque[i].opacity=OpaqueOpacity;
}
}
{
if (number_transparent == 0)
{
- GetRGBOPixelComponents(q, transparent[0]);
+ GetRGBOPixelComponents(q, transparent);
ping_trans_color.red=
(unsigned short) GetRedPixelComponent(q);
ping_trans_color.green=
number_transparent < 259)
{
number_transparent++;
- GetRGBOPixelComponents(q, transparent[i]);
+ GetRGBOPixelComponents(q, transparent+i);
}
}
}
{
if (number_semitransparent == 0)
{
- GetRGBOPixelComponents(q, semitransparent[0]);
+ GetRGBOPixelComponents(q, semitransparent);
number_semitransparent = 1;
}
number_semitransparent < 259)
{
number_semitransparent++;
- GetRGBOPixelComponents(q, semitransparent[i]);
+ GetRGBOPixelComponents(q, semitransparent+i);
}
}
}
if (GetOpacityPixelComponent(r) > TransparentOpacity/2)
{
SetOpacityPixelComponent(r,TransparentOpacity);
- SetRGBPixelComponents(r,image->background_color);
+ SetRGBPixelComponents(r,&image->background_color);
}
else
SetOpacityPixelComponent(r,OpaqueOpacity);
<configure name="LIB_VERSION" value="0x670"/>
<configure name="LIB_VERSION_NUMBER" value="6,7,0,1"/>
<configure name="SVN_REVISION" value="4491" />
- <configure name="RELEASE_DATE" value="2011-05-24"/>
- <configure name="CONFIGURE" value="./configure "/>
+ <configure name="RELEASE_DATE" value="2011-05-25"/>
+ <configure name="CONFIGURE" value="./configure '--disable-shared' 'CC=g++'"/>
<configure name="PREFIX" value="/usr/local"/>
<configure name="EXEC-PREFIX" value="/usr/local"/>
<configure name="CONFIGURE_PATH" value="/usr/local/etc/ImageMagick/"/>
<configure name="LIBRARY_PATH" value="/usr/local/lib/ImageMagick-6.7.0"/>
<configure name="CODER_PATH" value="/usr/local/lib/ImageMagick-6.7.0/modules-Q16/coders"/>
<configure name="FILTER_PATH" value="/usr/local/lib/ImageMagick-6.7.0/modules-Q16/filters"/>
- <configure name="CC" value="gcc -std=gnu99 -std=gnu99"/>
+ <configure name="CC" value="g++"/>
<configure name="CFLAGS" value="-fopenmp -g -O2 -Wall -pthread"/>
<configure name="CPPFLAGS" value="-I/usr/local/include/ImageMagick"/>
<configure name="PCFLAGS" value="-fopenmp"/>
<configure name="DEFS" value="-DHAVE_CONFIG_H"/>
<configure name="LDFLAGS" value="-L/usr/local/lib "/>
- <configure name="LIBS" value="-lMagickCore -llcms2 -ltiff -lfreetype -ljasper -ljpeg -lpng -lfontconfig -lXext -lXt -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lgvc -lgraph -lcdt -lz -lm -lgomp -lpthread -lltdl"/>
+ <configure name="LIBS" value="-lMagickCore -llcms2 -ltiff -lfreetype -ljasper -ljpeg -lpng -lfontconfig -lXext -lXt -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lgvc -lgraph -lcdt -lz -lm -lgomp -lpthread "/>
<configure name="CXX" value="g++"/>
<configure name="CXXFLAGS" value="-g -O2 -pthread"/>
- <configure name="DISTCHECK_CONFIG_FLAGS" value="--disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-perl=no"/>
+ <configure name="DISTCHECK_CONFIG_FLAGS" value="'CC=g++' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-perl=no"/>
<configure name="TARGET_CPU" value="x86_64"/>
<configure name="TARGET_VENDOR" value="unknown"/>
<configure name="TARGET_OS" value="linux-gnu"/>
OBJDUMP="objdump"
# Whether or not to build shared libraries.
-build_libtool_libs=yes
+build_libtool_libs=no
# Whether or not to build static libraries.
build_old_libs=yes
pic_mode=default
# Whether or not to optimize for fast installation.
-fast_install=yes
+fast_install=needless
# The host system.
host_alias=
lock_old_archive_extraction=no
# A C compiler.
-LTCC="gcc -std=gnu99 -std=gnu99"
+LTCC="g++"
# LTCC compiler flags.
LTCFLAGS="-fopenmp -g -O2 -Wall -pthread"
dlopen_support=yes
# Whether dlopen of programs is supported.
-dlopen_self=yes
+dlopen_self=no
# Whether dlopen of statically linked programs is supported.
-dlopen_self_static=yes
+dlopen_self_static=unknown
# Commands to strip libraries.
old_striplib="strip --strip-debug"
old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib"
# A language specific compiler.
-CC="gcc -std=gnu99 -std=gnu99"
+CC="g++"
# Is the compiler the GNU compiler?
with_gcc=yes
# Compiler flag to turn off builtin functions.
-no_builtin_flag=" -fno-builtin"
+no_builtin_flag=" -fno-builtin -fno-rtti -fno-exceptions"
# Additional compiler flags for building library objects.
pic_flag=" -fPIC -DPIC"
compiler_c_o="yes"
# Whether or not to add -lc for building shared libraries.
-build_libtool_need_lc=no
+build_libtool_need_lc=yes
# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=no
echo '-L/usr/local/lib '
;;
--libs)
- echo "-L${libdir} -lMagickCore -llcms2 -ltiff -lfreetype -ljasper -ljpeg -lpng -lfontconfig -lXext -lXt -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lgvc -lgraph -lcdt -lz -lm -lgomp -lpthread -lltdl"
+ echo "-L${libdir} -lMagickCore -llcms2 -ltiff -lfreetype -ljasper -ljpeg -lpng -lfontconfig -lXext -lXt -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lgvc -lgraph -lcdt -lz -lm -lgomp -lpthread "
;;
*)
echo "${usage}" 1>&2
#endif
/* Define to 1 if you have a working `mmap' system call. */
-#ifndef MAGICKCORE_HAVE_MMAP_FILEIO
-#define MAGICKCORE_HAVE_MMAP_FILEIO 1
-#endif
+/* #undef HAVE_MMAP_FILEIO */
/* Define to 1 if you have the `munmap' function. */
#ifndef MAGICKCORE_HAVE_MUNMAP
#endif
/* Define to 1 if the system has the type `_Bool'. */
-#ifndef MAGICKCORE_HAVE__BOOL
-#define MAGICKCORE_HAVE__BOOL 1
-#endif
+/* #undef HAVE__BOOL */
/* Define to 1 if you have the `_exit' function. */
#ifndef MAGICKCORE_HAVE__EXIT
/* #undef LQR_DELEGATE */
/* Define if using libltdl to support dynamically loadable modules */
-#ifndef MAGICKCORE_LTDL_DELEGATE
-#define MAGICKCORE_LTDL_DELEGATE 1
-#endif
+/* #undef LTDL_DELEGATE */
/* Define if the OS needs help to load dependent libraries for dlopen(). */
/* #undef LTDL_DLOPEN_DEPLIBS */
#define GetNextPixel(pixel) ((pixel)+1)
#define GetOpacityPixelComponent(pixel) ((pixel)->opacity)
#define GetRedPixelComponent(pixel) ((pixel)->red)
+#define GetRGBPixelComponents(pixel,packet) \
+{ \
+ (packet)->red=GetRedPixelComponent((pixel)); \
+ (packet)->green=GetGreenPixelComponent((pixel)); \
+ (packet)->blue=GetBluePixelComponent((pixel)); \
+}
+#define GetRGBOPixelComponents(pixel,packet) \
+{ \
+ (packet)->red=GetRedPixelComponent((pixel)); \
+ (packet)->green=GetGreenPixelComponent((pixel)); \
+ (packet)->blue=GetBluePixelComponent((pixel)); \
+ (packet)->opacity=GetOpacityPixelComponent((pixel)); \
+}
#define GetYPixelComponent(pixel) ((pixel)->red)
#define GetYellowPixelComponent(pixel) ((pixel)->blue)
#define SetAlphaPixelComponent(pixel,value) \
#define MagickLibAddendum "-1"
#define MagickLibInterface 4
#define MagickLibMinInterface 4
-#define MagickReleaseDate "2011-05-24"
-#define MagickChangeDate "20110522"
+#define MagickReleaseDate "2011-05-25"
+#define MagickChangeDate "20110525"
#define MagickAuthoritativeURL "http://www.imagemagick.org"
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#define MagickOpenMPFeature "OpenMP "
echo '-L/usr/local/lib '
;;
--libs)
- echo "-L${libdir} -lMagickWand -lMagickCore -llcms2 -ltiff -lfreetype -ljasper -ljpeg -lpng -lfontconfig -lXext -lXt -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lgvc -lgraph -lcdt -lz -lm -lgomp -lpthread -lltdl"
+ echo "-L${libdir} -lMagickWand -lMagickCore -llcms2 -ltiff -lfreetype -ljasper -ljpeg -lpng -lfontconfig -lXext -lXt -lSM -lICE -lX11 -llzma -lbz2 -lxml2 -lgvc -lgraph -lcdt -lz -lm -lgomp -lpthread "
;;
*)
echo "${usage}" 1>&2