1 | use ExtUtils::MakeMaker; |
1 | use ExtUtils::MakeMaker; |
|
|
2 | |
|
|
3 | print <<EOF; |
|
|
4 | |
|
|
5 | *** |
|
|
6 | *** You need to install libevent (http://monkey.org/~provos/libevent/) separately |
|
|
7 | *** first in a way so that the Makefile.PL can find both -levent and the event.h |
|
|
8 | *** and evdns.h include files. |
|
|
9 | *** |
|
|
10 | *** Version 1.3e or higher is recommended, but older versions likely work too. |
|
|
11 | *** |
|
|
12 | |
|
|
13 | EOF |
2 | |
14 | |
3 | WriteMakefile( |
15 | WriteMakefile( |
4 | dist => { |
16 | dist => { |
5 | PREOP => 'pod2text Libevent.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
17 | PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
6 | COMPRESS => 'gzip -9v', |
18 | COMPRESS => 'gzip -9v', |
7 | SUFFIX => '.gz', |
19 | SUFFIX => '.gz', |
8 | }, |
20 | }, |
|
|
21 | LIBS => ["-levent"], |
9 | NAME => "Libevent", |
22 | NAME => "EV", |
10 | VERSION_FROM => "Libevent.pm", |
23 | VERSION_FROM => "EV.pm", |
11 | ); |
24 | ); |
12 | |
25 | |