]> git.imager.perl.org - imager.git/blobdiff - Makefile.PL
Added map.c which implements mapping images through tables.
[imager.git] / Makefile.PL
index f72cc03d1ed3960b6d30eced890d40a7c3c97036..27ac85a708d25e963e76c8e0bc56a0bf9fe5c207 100644 (file)
@@ -61,7 +61,8 @@ if (defined $Config{'d_dlsymun'}) { $OSDEF  .= ' -DDLSYMUN'; }
 @objs = qw(Imager.o draw.o image.o io.o iolayer.o log.o
           gaussian.o conv.o pnm.o raw.o feat.o font.o
           filters.o dynaload.o stackmach.o datatypes.o
-          regmach.o trans2.o quant.o);
+          regmach.o trans2.o quant.o error.o convert.o
+          map.o);
 
 %opts=(
        'NAME'         => 'Imager',
@@ -72,9 +73,15 @@ if (defined $Config{'d_dlsymun'}) { $OSDEF  .= ' -DDLSYMUN'; }
        'OBJECT'       => join(' ', @objs, $F_OBJECT)
       );
 
+if ($] ge '5.005') {
+  $opts{AUTHOR} = 'Arnar M. Hrafnkelsson, addi@umich.edu';
+  $opts{ABSTRACT} = 'Perl extension for Generating 24 bit Images';
+}
+
 if ($VERBOSE) { print Dumper(\%opts); }
 mkdir('testout',0777); # since we cannot include it in the archive.
 WriteMakefile(%opts);
+
 exit;
 
 
@@ -152,7 +159,7 @@ sub gifcheck {
   }
 
   # we need the version in a #ifdefable form
-  
+
   $F_DEFINE .= "-DIM_GIFMAJOR=$major -DIM_GIFMINOR=$minor";
 }
 
@@ -239,7 +246,7 @@ sub init {
                    order=>'21',
                    def=>'HAVE_LIBJPEG',
                    inccheck=>sub { $_[0] eq 'jpeglib.h' },
-                   libcheck=>sub { $_[0] eq 'libjpeg.a' or $_ eq "libjpeg.$lext" },
+                   libcheck=>sub { $_[0] eq "libjpeg$aext" or $_ eq "libjpeg.$lext" },
                    libfiles=>'-ljpeg',
                    objfiles=>'jpeg.o',
                    docs=>q{
@@ -251,7 +258,7 @@ sub init {
                    order=>'23',
                    def=>'HAVE_LIBTIFF',
                    inccheck=>sub { $_[0] eq 'tiffio.h' },
-                   libcheck=>sub { $_[0] eq 'libtiff.a' or $_ eq "libtiff.$lext" },
+                   libcheck=>sub { $_[0] eq "libtiff$aext" or $_ eq "libtiff.$lext" },
                    libfiles=>'-ltiff',
                    objfiles=>'tiff.o',
                    docs=>q{
@@ -276,7 +283,7 @@ sub init {
                   order=>'20',
                   def=>'HAVE_LIBGIF',
                   inccheck=>sub { $_[0] eq 'gif_lib.h' },
-                  libcheck=>sub { $_[0] eq 'libgif.a' or $_[0] eq "libgif.$lext" },
+                  libcheck=>sub { $_[0] eq "libgif$aext" or $_[0] eq "libgif.$lext" },
                   libfiles=>'-lgif',
                   objfiles=>'gif.o',
                   docs=>q{
@@ -291,7 +298,7 @@ sub init {
                     order=>'21',
                     def=>'HAVE_LIBGIF',
                     inccheck=>sub { $_[0] eq 'gif_lib.h' },
-                    libcheck=>sub { $_[0] eq 'libungif.a' or $_[0] eq "libungif.$lext" },
+                    libcheck=>sub { $_[0] eq "libungif$aext" or $_[0] eq "libungif.$lext" },
                     libfiles=>'-lungif',
                     objfiles=>'gif.o',
                     docs=>q{