msgpack/perl/Makefile.PL

40 lines
743 B
Makefile
Raw Permalink Normal View History

2009-04-15 12:55:41 +09:00
use inc::Module::Install;
name 'Data-MessagePack';
all_from 'lib/Data/MessagePack.pm';
perl_version '5.008005';
license 'perl';
can_cc or die "This module requires a C compiler";
tests 't/*.t';
author_tests('xt');
2009-07-30 16:38:03 +09:00
use_ppport 3.19;
clean_files qw{
*.stackdump
*.gcov *.gcda *.gcno
*.out
nytprof
cover_db
};
2009-04-15 12:55:41 +09:00
2009-07-30 16:22:00 +09:00
if ($ENV{DEBUG}) {
cc_append_to_ccflags '-g';
}
2009-07-01 18:20:14 +09:00
# copy modules
if ($Module::Install::AUTHOR && -d File::Spec->catfile('..', 'msgpack')) {
mkdir 'msgpack' unless -d 'msgpack';
require File::Copy;
for my $src (<../msgpack/*.h>) {
File::Copy::copy($src, 'msgpack/') or die "copy failed: $!";
}
}
2009-04-15 12:55:41 +09:00
auto_set_repository;
build_requires 'Test::More';
use_test_base;
auto_include;
WriteAll;