1#!perl -w 2 3use strict; 4use warnings; 5 6use Config qw(%Config); 7use ExtUtils::MakeMaker; 8 9my @extra; 10push(@extra, INSTALLDIRS => 'perl') if $] >= 5.008 && $] < 5.012; 11 12if ($^O eq 'VMS') { 13 if (defined($Config{ccname})) { 14 if (grep(/VMS_VAX/, @INC) && ($Config{ccname} eq 'DEC')) { 15 # VAX compiler optimizer even as late as v6.4 gets stuck 16 push(@extra, OPTIMIZE => "/Optimize=(NODISJOINT)"); 17 } 18 } 19} 20 21 22WriteMakefile( 23 'NAME' => 'Digest::MD5', 24 'VERSION_FROM' => 'MD5.pm', 25 'ABSTRACT' => 'Perl interface to the MD-5 algorithm', 26 'AUTHOR' => 'Gisle Aas <gisle@activestate.com>', 27 'LICENSE' => 'perl', 28 'MIN_PERL_VERSION' => 5.006, 29 'PREREQ_PM' => { 30 'Digest::base' => '1.00', 31 'XSLoader' => 0, 32 }, 33 'META_MERGE' => { 34 resources => { 35 license => 'http://dev.perl.org/licenses/', 36 bugtracker => 'https://github.com/Dual-Life/digest-md5/issues', 37 repository => 'https://github.com/dual-Life/digest-md5/', 38 } 39 }, 40 @extra, 41); 42 43 44 45BEGIN { 46 # compatibility with older versions of MakeMaker 47 my $developer = -d ".git"; 48 my %mm_req = ( 49 LICENCE => 6.31, 50 META_MERGE => 6.45, 51 META_ADD => 6.45, 52 MIN_PERL_VERSION => 6.48, 53 ); 54 undef(*WriteMakefile); 55 *WriteMakefile = sub { 56 my %arg = @_; 57 for (keys %mm_req) { 58 unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) { 59 warn "$_ $@" if $developer; 60 delete $arg{$_}; 61 } 62 } 63 ExtUtils::MakeMaker::WriteMakefile(%arg); 64 }; 65} 66