forked from monsieurvideo/get-flash-videos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
61 lines (52 loc) · 1.71 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
#!perl -w
use strict;
use ExtUtils::MakeMaker;
my %mm_vars = (
AUTHOR => 'Monsieur Video <monsieurvideo@gmail.com>',
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,
'LWP::Protocol::https' => 0,
'LWP::Protocol::socks' => 0,
'Module::Find' => 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 => 'http://code.google.com/p/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);