-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile.PL
70 lines (64 loc) · 2.34 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
65
66
67
68
69
70
use 5.22.0;
use strict;
use warnings;
use Config;
use ExtUtils::MakeMaker;
use ExtUtils::PkgConfig;
use constant LIBRDKAFKA_MIN_VERSION => "1.0.0";
# If you have a local librdkafka installation and you want to use that instead
# of the system-wide, do something like:
# PKG_CONFIG_PATH=/usr/local/lib/pkgconfig perl Makefile.PL
# or whatever is the actual installation path
my %rdkafka = ExtUtils::PkgConfig->find('rdkafka');
warn sprintf(
"WARNING: Installed librdkafka version %s is lower than tested %s",
$rdkafka{modversion},
LIBRDKAFKA_MIN_VERSION
) if $rdkafka{modversion} lt LIBRDKAFKA_MIN_VERSION;
print "Compiling Net::Kafka with librdkafka $rdkafka{modversion}\n\n";
WriteMakefile(
NAME => 'Net::Kafka',
DISTNAME => 'Net-Kafka',
AUTHOR => [
'Rajesh Amradi <rajesh.amradi@booking.com>',
'Michael Austin <michael.austin@booking.com>',
'Ankit Bhatnagar <ankit.bhatnagar@booking.com>',
'Jaap Eldering <jaap.eldering@booking.com>',
'Osama Elsayed <osama.elsayed@booking.com>',
'Eduardo Dalla Favera <eduardo.dallafavera@booking.com>',
'Pavel Gurkov <pavel.gurkov@booking.com>',
'Przemyslaw Iskra <sparky@pld-linux.org>',
'Alex Mironov <alex.mironov@booking.com>',
'Pavel Shaydo <zwon@cpan.org>',
],
LICENSE => 'perl',
VERSION_FROM => 'lib/Net/Kafka.pm',
ABSTRACT_FROM => 'lib/Net/Kafka.pm',
LIBS => [ "-lrdkafka -lpthread" ],
OBJECT => '$(O_FILES)',
TYPEMAPS => ['typemap'],
PREREQ_PM => {
'AnyEvent' => 0,
'Test::More' => 0,
'AnyEvent::XSPromises' => 0,
},
META_MERGE => {
"meta-spec" => { version => 2 },
resources => {
homepage => 'https://github.com/bookingcom/perl-Net-Kafka',
bugtracker => {
web => 'https://github.com/bookingcom/perl-Net-Kafka/issues'
},
repository => {
type => 'git',
url => 'https://github.com/bookingcom/perl-Net-Kafka.git',
web => 'https://github.com/bookingcom/perl-Net-Kafka',
},
},
},
MIN_PERL_VERSION => '5.22.0',
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 0,
'ExtUtils::PkgConfig' => 0,
},
);