-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
50 lines (26 loc) · 1.06 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
use 5.018002;
use ExtUtils::MakeMaker;
use Devel::AssertOS qw(Linux);
use Devel::CheckLib;
my $kernel_version = `uname -r`;
my ($major, $minor) = $kernel_version =~ /^(\d+)\.(\d+)/;
unless($major >= 3 && $minor >= 12){
die("Needs >= 3.12 kernel version");
}
check_lib_or_exit(lib=>'cap', header=>'sys/capability.h');
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
NAME => 'Eixo::Zone::Driver',
VERSION_FROM => 'lib/Eixo/Zone/Driver.pm', # finds $VERSION
PREREQ_PM => {
"Devel::AssertOS" => 0,
"Devel::CheckLib" => 0,
}, # e.g., Module::Name => 1.1
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/Eixo/Zone/Driver.pm', # retrieve abstract from module
AUTHOR => 'frmadem <[email protected]>') : ()),
DEFINE => '', # e.g., '-DHAVE_SOMETHING'
INC => '-I.', # e.g., '-I. -I/usr/include/other'
LIBS => ['-lcap'],
);