-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
41 lines (37 loc) · 1.03 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
use 5.008001;
use ExtUtils::MakeMaker;
use ExtUtils::Liblist;
use lib 'inc/';
use Devel::CheckLib;
check_lib_or_exit(
function => '
const char *v;
const char *d;
int i;
blkid_get_library_version(&v, &d);
i = blkid_parse_version_string(v);
if (i < 2160) {
printf("Version mismatch for libblkid, or invalid library -- blkid_parse_version_string returned %d\n", i);
return(1);
}
return 0;',
lib => 'blkid',
header => 'blkid/blkid.h',
);
WriteMakefile(
NAME => 'Device::Blkid',
AUTHOR => 'Bastian Friedrich <[email protected]>',
VERSION_FROM => 'lib/Device/Blkid.pm',
ABSTRACT_FROM => 'lib/Device/Blkid.pm',
PREREQ_PM => {
'Exporter' => 0,
'Test::More' => 0,
'Test::Builder' => 0,
},
NEEDS_LINKING => 1,
LIBS => ['-lblkid'],
INC => '-I.',
EXE_FILES => [],
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz' },
clean => { FILES => 'Device-Blkid-*' },
);