*/
#define MagickPackageName "ImageMagick"
#define MagickCopyright "Copyright (C) 1999-2013 ImageMagick Studio LLC"
-#define MagickSVNRevision "11008:11034M"
+#define MagickSVNRevision "11008:11035M"
#define MagickLibVersion 0x700
#define MagickLibVersionText "7.0.0"
#define MagickLibVersionNumber 1,0,0
done
# If source files missing, see if they can be obtained via VPATH
-perl-sources:
+#
+$(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.xs: $(PERLMAGICK)/quantum/quantum.xs
+ $(AM_V_GEN) $(LN_S) $(notdir $^) $@
+
+$(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.pm: $(PERLMAGICK)/quantum/quantum.pm
+ $(AM_V_GEN) $(LN_S) $(notdir $^) $@
+
+perl-quantum-sources: $(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.xs $(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.pm
+
+perl-sources: perl-quantum-sources
@if test -n "$(VPATH)" ; then \
echo "Linking PerlMagick Sources ..." ; \
imagemagick=`(cd $(VPATH) ; pwd)` && \
( cd $(PERLMAGICK) && \
- sh $$imagemagick/config/lndir.sh $$imagemagick/$(PERLMAGICK) ) \
+ sh $$imagemagick/config/lndir.sh $$imagemagick/$(PERLMAGICK) ; ) \
fi ; \
touch perl-sources
@WITH_PERL_TRUE@ ( if test -f Makefile ; then $(MAKE) CC='@CC@' clean ; fi ) ; \
@WITH_PERL_TRUE@ rm -f Makefile.old PerlMagick ; \
@WITH_PERL_TRUE@ rm -f t/output* t/jng/*_tmp.jng t/*/output* ; \
-@WITH_PERL_TRUE@ rm -f QUANTUM/@MAGICK_ABI_SUFFIX@.xs;\
-@WITH_PERL_TRUE@ rm -f QUANTUM/@MAGICK_ABI_SUFFIX@.pm;\
+@WITH_PERL_TRUE@ rm -f quantum/@MAGICK_ABI_SUFFIX@.xs;\
+@WITH_PERL_TRUE@ rm -f quantum/@MAGICK_ABI_SUFFIX@.pm;\
@WITH_PERL_TRUE@ rm -f Magick.pm;)
@WITH_PERL_TRUE@ rm -f perl-sources
# defaults for LIBS & INC & CCFLAGS params that we later pass to Writemakefile
my $INC_magick = '-I../ -I@top_srcdir@ @CPPFLAGS@ -I"' . $Config{'usrinc'} . '/ImageMagick"';
-my $LIBS_magick = '-L../MagickCore/.libs -lMagickCore-@MAGICK_ABI_SUFFIX@ -lperl @MATH_LIBS@';
+my $LIBS_magick = '-L../MagickCore/.libs -lMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@ -lperl @MATH_LIBS@';
my $CCFLAGS_magick = "$Config{'ccflags'} @CFLAGS@";
-my $LDFLAGS_magick = "-L../MagickCore/.libs -lMagickCore-@MAGICK_ABI_SUFFIX@ $Config{'ldflags'} @LDFLAGS@";
-my $LDDLFLAGS_magick = "-L../MagickCore/.libs -lMagickCore-@MAGICK_ABI_SUFFIX@ $Config{'lddlflags'} @LDFLAGS@";
+my $LDFLAGS_magick = "-L../MagickCore/.libs -lMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@ $Config{'ldflags'} @LDFLAGS@";
+my $LDDLFLAGS_magick = "-L../MagickCore/.libs -lMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@ $Config{'lddlflags'} @LDFLAGS@";
if (($^O eq 'MSWin32') && ($Config{cc} =~ /gcc/)) {
my($Ipaths, $Lpaths) = AutodetectWin32gcc();
# Setup for strawberry perl.
#
$INC_magick = "$Ipaths";
- $LIBS_magick = "-lMagickCore-@MAGICK_ABI_SUFFIX@";
+ $LIBS_magick = "-lMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@";
$CCFLAGS_magick = "$Config{'ccflags'}";
$LDFLAGS_magick = "$Config{'ldflags'} $Lpaths ";
$LDDLFLAGS_magick = "$Config{'lddlflags'} $Lpaths ";
# Makefile for building PerlMagick.
# If source files missing, see if they can be obtained via VPATH
-perl-sources:
+#
+$(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.xs: $(PERLMAGICK)/quantum/quantum.xs
+ $(AM_V_GEN) $(LN_S) $(notdir $^) $@
+
+$(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.pm: $(PERLMAGICK)/quantum/quantum.pm
+ $(AM_V_GEN) $(LN_S) $(notdir $^) $@
+
+perl-quantum-sources: $(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.xs $(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.pm
+
+perl-sources: perl-quantum-sources
@if test -n "$(VPATH)" ; then \
echo "Linking PerlMagick Sources ..." ; \
imagemagick=`(cd $(VPATH) ; pwd)` && \
( cd $(PERLMAGICK) && \
- sh $$imagemagick/config/lndir.sh $$imagemagick/$(PERLMAGICK) ) \
+ sh $$imagemagick/config/lndir.sh $$imagemagick/$(PERLMAGICK) ; ) \
fi ; \
touch perl-sources
( if test -f Makefile ; then $(MAKE) CC='@CC@' clean ; fi ) ; \
rm -f Makefile.old PerlMagick ; \
rm -f t/output* t/jng/*_tmp.jng t/*/output* ; \
- rm -f QUANTUM/@MAGICK_ABI_SUFFIX@.xs;\
- rm -f QUANTUM/@MAGICK_ABI_SUFFIX@.pm;\
+ rm -f quantum/@MAGICK_ABI_SUFFIX@.xs;\
+ rm -f quantum/@MAGICK_ABI_SUFFIX@.pm;\
rm -f Magick.pm;)
rm -f perl-sources
# defaults for LIBS & INC & CCFLAGS params that we later pass to Writemakefile
my $INC_magick = '-I../ -I../.. -pthread -I/usr/include/pango-1.0 -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/libpng15 -I/usr/include/libdrm -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/libxml2 -I"' . $Config{'usrinc'} . '/ImageMagick"';
-my $LIBS_magick = '-L../../MagickCore/.libs -lMagickCore7-Q16HDRI -lperl -lm';
+my $LIBS_magick = '-L../../MagickCore/.libs -lMagickCore-7.Q16HDRI -lperl -lm';
my $CCFLAGS_magick = "$Config{'ccflags'} -I/usr/include/freetype2 -fopenmp -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16";
-my $LDFLAGS_magick = "-L../../MagickCore/.libs -lMagickCore7-Q16HDRI $Config{'ldflags'} ";
-my $LDDLFLAGS_magick = "-L../../MagickCore/.libs -lMagickCore7-Q16HDRI $Config{'lddlflags'} ";
+my $LDFLAGS_magick = "-L../../MagickCore/.libs -lMagickCore-7.Q16HDRI $Config{'ldflags'} ";
+my $LDDLFLAGS_magick = "-L../../MagickCore/.libs -lMagickCore-7.Q16HDRI $Config{'lddlflags'} ";
if (($^O eq 'MSWin32') && ($Config{cc} =~ /gcc/)) {
my($Ipaths, $Lpaths) = AutodetectWin32gcc();
# Setup for strawberry perl.
#
$INC_magick = "$Ipaths";
- $LIBS_magick = "-lMagickCore7-Q16HDRI";
+ $LIBS_magick = "-lMagickCore-7.Q16HDRI";
$CCFLAGS_magick = "$Config{'ccflags'}";
$LDFLAGS_magick = "$Config{'ldflags'} $Lpaths ";
$LDDLFLAGS_magick = "$Config{'lddlflags'} $Lpaths ";
# defaults for LIBS & INC & CCFLAGS params that we later pass to Writemakefile
my $INC_magick = '-I../ -I@top_srcdir@ @CPPFLAGS@ -I"' . $Config{'usrinc'} . '/ImageMagick"';
-my $LIBS_magick = '-L../../MagickCore/.libs -lMagickCore@MAGICK_MAJOR_VERSION@-@MAGICK_ABI_SUFFIX@ -lperl @MATH_LIBS@';
+my $LIBS_magick = '-L../../MagickCore/.libs -lMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@ -lperl @MATH_LIBS@';
my $CCFLAGS_magick = "$Config{'ccflags'} @CFLAGS@";
-my $LDFLAGS_magick = "-L../../MagickCore/.libs -lMagickCore@MAGICK_MAJOR_VERSION@-@MAGICK_ABI_SUFFIX@ $Config{'ldflags'} @LDFLAGS@";
-my $LDDLFLAGS_magick = "-L../../MagickCore/.libs -lMagickCore@MAGICK_MAJOR_VERSION@-@MAGICK_ABI_SUFFIX@ $Config{'lddlflags'} @LDFLAGS@";
+my $LDFLAGS_magick = "-L../../MagickCore/.libs -lMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@ $Config{'ldflags'} @LDFLAGS@";
+my $LDDLFLAGS_magick = "-L../../MagickCore/.libs -lMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@ $Config{'lddlflags'} @LDFLAGS@";
if (($^O eq 'MSWin32') && ($Config{cc} =~ /gcc/)) {
my($Ipaths, $Lpaths) = AutodetectWin32gcc();
# Setup for strawberry perl.
#
$INC_magick = "$Ipaths";
- $LIBS_magick = "-lMagickCore@MAGICK_MAJOR_VERSION@-@MAGICK_ABI_SUFFIX@";
+ $LIBS_magick = "-lMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@";
$CCFLAGS_magick = "$Config{'ccflags'}";
$LDFLAGS_magick = "$Config{'ldflags'} $Lpaths ";
$LDDLFLAGS_magick = "$Config{'lddlflags'} $Lpaths ";
autoflush STDOUT 1;
autoflush STDERR 1;
-$fuzz=int(0.0*QuantumRange);
+$fuzz=int(0.05*(Image::Magick->new()->QuantumRange));
testFilterCompare('input.miff', q//, 'reference/filter/AdaptiveThreshold.miff', 'AdaptiveThreshold', q/'5x5+5%'/, 0.0, 0.0);
++$test;
$ref_32 = $ref_16;
}
- if (QuantumDepth == 32)
+ if (Image::Magick->new()->QuantumDepth == 32)
{
$ref_signature=$ref_32;
}
- elsif (QuantumDepth == 16)
+ elsif (Image::Magick->new()->QuantumDepth == 16)
{
$ref_signature=$ref_16;
}
print "Image: $infile, signatures do not match.\n";
print " Expected: $ref_signature\n";
print " Computed: $signature\n";
- print " Depth: ", QuantumDepth, "\n";
+ print " Depth: ", Image::Magick->new()->QuantumDepth, "\n";
++$failure;
$image->Display();
}
print "Image: $infile, signatures do not match.\n";
print " Expected: $ref_signature\n";
print " Computed: $signature\n";
- print " Depth: ", QuantumDepth, "\n";
+ print " Depth: ", Image::Magick->new()->QuantumDepth, "\n";
#$image->Display();
++$failure;
}
$ref_32 = $ref_16;
}
- if (QuantumDepth == 32)
+ if (Image::Magick->new()->QuantumDepth == 32)
{
$ref_signature=$ref_32;
}
- elsif (QuantumDepth == 16)
+ elsif (Image::Magick->new()->QuantumDepth == 16)
{
$ref_signature=$ref_16;
}
warn "$status" if "$status";
# If depth is not zero, then set it
- if ( QuantumDepth != 0 ) {
- $status=$image->SetAttribute(depth=>QuantumDepth);
+ if ( Image::Magick->new()->QuantumDepth != 0 ) {
+ $status=$image->SetAttribute(depth=>Image::Magick->new()->QuantumDepth);
warn "$status" if "$status";
}
print "Image: $infile, signatures do not match.\n";
print " Expected: $ref_signature\n";
print " Computed: $signature\n";
- print " Depth: ", QuantumDepth, "\n";
+ print " Depth: ", Image::Magick->new()->QuantumDepth, "\n";
print "not ok $test\n";
#$image->Display();
} else {
$ref_32 = $ref_16;
}
- if (QuantumDepth == 32)
+ if (Image::Magick->new()->QuantumDepth == 32)
{
$ref_signature=$ref_32;
}
- elsif (QuantumDepth == 16)
+ elsif (Image::Magick->new()->QuantumDepth == 16)
{
$ref_signature=$ref_16;
}
print "Image: $infile, signatures do not match.\n";
print " Expected: $ref_signature\n";
print " Computed: $signature\n";
- print " Depth: ", QuantumDepth, "\n";
+ print " Depth: ", Image::Magick->new()->QuantumDepth, "\n";
print "not ok $test\n";
$image->Display();
} else {
$ref_32 = $ref_16;
}
- if (QuantumDepth == 32)
+ if (Image::Magick->new()->QuantumDepth == 32)
{
$ref_signature=$ref_32;
}
- elsif (QuantumDepth == 16)
+ elsif (Image::Magick->new()->QuantumDepth == 16)
{
$ref_signature=$ref_16;
}
print "Image: $infile, signatures do not match.\n";
print " Expected: $ref_signature\n";
print " Computed: $signature\n";
- print " Depth: ", QuantumDepth, "\n";
+ print " Depth: ", Image::Magick->new()->QuantumDepth, "\n";
print "not ok $test\n";
#$image->Display();
} else {
$ref_32 = $ref_16;
}
- if (QuantumDepth == 32)
+ if (Image::Magick->new()->QuantumDepth == 32)
{
$ref_signature=$ref_32;
}
- elsif (QuantumDepth == 16)
+ elsif (Image::Magick->new()->QuantumDepth == 16)
{
$ref_signature=$ref_16;
}
print "Test $test, signatures do not match.\n";
print " Expected: $ref_signature\n";
print " Computed: $signature\n";
- print " Depth: ", QuantumDepth, "\n";
+ print " Depth: ", Image::Magick->new()->QuantumDepth, "\n";
$status = $montage->Write("test_${test}_out.miff");
warn "Write: $status" if "$status";
$ref_32 = $ref_16;
}
- if (QuantumDepth == 32)
+ if (Image::Magick->new()->QuantumDepth == 32)
{
$ref_signature=$ref_32;
}
- elsif (QuantumDepth == 16)
+ elsif (Image::Magick->new()->QuantumDepth == 16)
{
$ref_signature=$ref_16;
}
print "Test $test, signatures do not match.\n";
print " Expected: $ref_signature\n";
print " Computed: $signature\n";
- print " Depth: ", QuantumDepth, "\n";
+ print " Depth: ", Image::Magick->new()->QuantumDepth, "\n";
#$image->Display();
print "not ok $test\n";
} else {
MAGICK_VERSION=7.0.0-0
-MAGICK_SVN_REVISION=11008:11034M
+MAGICK_SVN_REVISION=11008:11035M
# Substitute library versioning