-
Notifications
You must be signed in to change notification settings - Fork 68
/
Makefile.PL
64 lines (55 loc) · 1.81 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!perl -w
use strict;
use ExtUtils::MakeMaker;
my %mm_vars = (
AUTHOR => 'Monsieur Video <[email protected]>',
NAME => 'App::get_flash_videos',
ABSTRACT => "Video downloader for various Flash-based video hosting sites",
VERSION_FROM => "get_flash_videos",
EXE_FILES => ["bin/get_flash_videos"],
PL_FILES => {
'bin/get_flash_videos.PL' => 'bin/get_flash_videos'
},
MAN1PODS => {
'doc/get_flash_videos.pod' => 'blib/man1/get_flash_videos.1',
},
# Avoid man pages for modules for now.
MAN3PODS => {},
PREREQ_PM => {
URI => 0,
'LWP::UserAgent' => 0,
'WWW::Mechanize' => 0,
'IO::Socket::SSL' => 0,
'LWP::Protocol::https' => 0,
'LWP::Protocol::socks' => 0,
'Module::Find' => 0,
'Term::ProgressBar' => 0,
'Term::ReadKey' => 0,
},
);
# Needed for reasonable UTF-8 support, also modules are used that are
# core perl as reported by 'corelist' since 5.8.
if($ExtUtils::MakeMaker::VERSION >= 6.48) {
$mm_vars{MIN_PERL_VERSION} = 5.008;
}
if($ExtUtils::MakeMaker::VERSION >= 6.46) {
$mm_vars{META_MERGE} = {
resources => {
license => 'http://www.apache.org/licenses/LICENSE-2.0.html',
bugtracker => 'https://github.com/monsieurvideo/get-flash-videos/issues',
repository => 'http://github.com/monsieurvideo/get-flash-videos',
}
};
}
my $build_req;
if($ExtUtils::MakeMaker::VERSION >= 6.55) {
$build_req = $mm_vars{BUILD_REQUIRES} ||= {};
} else {
$build_req = $mm_vars{PREREQ_PM};
}
# Needed for consistent order in t/rtmpdownloader.t
$build_req->{"Tie::IxHash"} = 0;
if($ENV{GFV_DEVEL_MODE}) {
$mm_vars{FIRST_MAKEFILE} = "mk/makemaker.mk";
}
WriteMakefile(%mm_vars);