use strict; use warnings; use Config; use ExtUtils::MakeMaker; use lib qw(inc); use Devel::CheckLib; check_lib_or_exit( lib => [qw( stree )], libpath => [ split ' ', $Config{loclibpth} ], header => 'libstree.h', incpath => [ split ' ', $Config{locincpth} ], ); my %conf = ( NAME => 'Tree::Suffix', AUTHOR => 'gray ', LICENSE => 'perl', VERSION_FROM => 'lib/Tree/Suffix.pm', ABSTRACT_FROM => 'lib/Tree/Suffix.pm', PREREQ_PM => { 'Test::More' => 0 }, LIBS => [ "-lstree" ], META_MERGE => { resources => { repository => 'http://github.com/gray/tree-suffix', }, }, dist => { COMPRESS => 'gzip -9f', SUFFIX => '.gz', }, clean => { FILES => 'Tree-Suffix-*' }, ); unless (eval { ExtUtils::MakeMaker->VERSION(6.46) }) { delete $conf{META_MERGE}; } WriteMakefile(%conf);