#!/usr/bin/perl use strict; use ExtUtils::MakeMaker; my $mm_ver = ExtUtils::MakeMaker->VERSION; eval { require Text::Metaphone; }; unless ($@) { # Make sure we did find the module. print <= 1.00 && $Text::Metaphone::VERSION <= 1.94); NOTE: Bugs fixed in this version alter the way Text::Metaphone encodes certain words. If you have stored metaphone encodings using your older version of T::M, please re-encode them with this new version. Please read the Changes file for details. FIX_WARN } use Config; my $obj_ext = $Config{obj_ext}; WriteMakefile( NAME => 'Text::Metaphone', VERSION_FROM => 'Metaphone.pm', ABSTRACT_FROM => 'Metaphone.pm', AUTHOR => 'Michael G Schwern ', ($mm_ver >= 6.31 ? (LICENSE => 'perl') : ()), PREREQ_PM => { 'Test::More' => 0.47 }, C => ['metaphone_c.c', 'my_memory.c'], OBJECT => "metaphone_c$obj_ext my_memory$obj_ext Metaphone$obj_ext", ($mm_ver <= 6.44 ? () : (META_MERGE => { requires => { perl => '5.6.0', }, resources => { license => 'http://dev.perl.org/licenses/', homepage => 'http://search.cpan.org/dist/Text-Metaphone/', bugtracker => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=Text-Metaphone', repository => 'http://svn.schwern.org/repos/CPAN/Text-Metaphone', }, })) ); sub MY::postamble { " metaphone_c$obj_ext : mytypes.h myconsts.h my_memory.o metachar.h metaphone.h metaphone_c.c my_memory$obj_ext : mytypes.h myconsts.h my_memory.c my_memory.h " }