Makefile.PL 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. use ExtUtils::MakeMaker;
  2. use File::Spec;
  3. my $ExifTool_pm = File::Spec->catfile('lib', 'Image', 'ExifTool.pm');
  4. my $ExifTool_pod = File::Spec->catfile('lib', 'Image', 'ExifTool.pod');
  5. WriteMakefile(
  6. NAME => 'Image::ExifTool',
  7. VERSION_FROM => $ExifTool_pm,
  8. PREREQ_PM => { },
  9. (($ExtUtils::MakeMaker::VERSION gt '6.31' and
  10. $ExtUtils::MakeMaker::VERSION lt '6.46') ?
  11. (EXTRA_META => "recommends:\n" .
  12. " Archive::Zip: 0\n" .
  13. " Compress::Zlib: 0\n" .
  14. " Digest::MD5: 0\n" .
  15. " Digest::SHA: 0\n",
  16. # (not worth recommending -- only for Rawzor files)
  17. # " IO::Compress::Bzip2: 0\n",
  18. ) : ()),
  19. ($ExtUtils::MakeMaker::VERSION ge '6.46' ?
  20. (META_MERGE => {
  21. recommends => {
  22. 'Archive::Zip' => 0,
  23. 'Compress::Zlib' => 0,
  24. 'Digest::MD5' => 0,
  25. 'Digest::SHA' => 0,
  26. # 'IO::Compress::Bzip2' => 0,
  27. },
  28. } ) : ()),
  29. clean => { FILES => 't/*.tmp' },
  30. EXE_FILES => [ 'exiftool' ],
  31. ($] >= 5.005 ?
  32. (ABSTRACT_FROM => $ExifTool_pod,
  33. AUTHOR => 'Phil Harvey (phil@owl.phy.queensu.ca)',
  34. ) : ()),
  35. (($ExtUtils::MakeMaker::VERSION gt '6.30') ?
  36. (LICENSE => 'perl') : ()),
  37. (($ExtUtils::MakeMaker::VERSION ge '6.47') ?
  38. (MIN_PERL_VERSION => '5.004') : ()),
  39. );