1# This Makefile.PL for Compress-LZO was generated by
2# Dist::Zilla::Plugin::MakeMaker::Awesome 0.38.
3# Don't edit it but the dist.ini and plugins used to construct it.
4
5use strict;
6use warnings;
7
8# inserted by Dist::Zilla::Plugin::CheckLib 0.006
9use Devel::CheckLib;
10check_lib_or_exit(
11    header => [ 'lzo/lzoconf.h', 'lzo/lzo1x.h' ],
12    lib => 'lzo2',
13);
14
15use 5.004;
16use ExtUtils::MakeMaker;
17
18my %WriteMakefileArgs = (
19  "ABSTRACT" => "Interface to the LZO compression library",
20  "AUTHOR" => "Markus Franz Xaver Johannes Oberhumer <markus\@oberhumer.com>",
21  "CONFIGURE_REQUIRES" => {
22    "Devel::CheckLib" => "0.9",
23    "ExtUtils::MakeMaker" => 0
24  },
25  "DISTNAME" => "Compress-LZO",
26  "LICENSE" => "gpl",
27  "MIN_PERL_VERSION" => "5.004",
28  "NAME" => "Compress::LZO",
29  "PREREQ_PM" => {
30    "AutoLoader" => 0,
31    "DynaLoader" => 0,
32    "Exporter" => 0,
33    "strict" => 0,
34    "vars" => 0
35  },
36  "TEST_REQUIRES" => {
37    "Scalar::Util" => 0,
38    "Test::More" => "0.94",
39    "warnings" => 0
40  },
41  "VERSION" => "1.09",
42  "test" => {
43    "TESTS" => "t/*.t"
44  }
45);
46
47%WriteMakefileArgs = (
48    %WriteMakefileArgs,
49    LIBS => [ '-llzo2' ],
50);
51
52my %FallbackPrereqs = (
53  "AutoLoader" => 0,
54  "DynaLoader" => 0,
55  "Exporter" => 0,
56  "Scalar::Util" => 0,
57  "Test::More" => "0.94",
58  "strict" => 0,
59  "vars" => 0,
60  "warnings" => 0
61);
62
63unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
64  delete $WriteMakefileArgs{TEST_REQUIRES};
65  delete $WriteMakefileArgs{BUILD_REQUIRES};
66  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
67}
68
69delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
70  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
71
72WriteMakefile(%WriteMakefileArgs);
73