1 |
root |
1.4 |
use 5.006; |
2 |
|
|
|
3 |
root |
1.7 |
use Config; |
4 |
root |
1.1 |
use ExtUtils::MakeMaker; |
5 |
|
|
|
6 |
root |
1.8 |
#$ENV{CC} = $Config{cc}; |
7 |
|
|
#$ENV{CFLAGS} = join " ", map $Config{$_}, qw(inc optimize ccflags cccdlflags); |
8 |
|
|
#system "cd libevent && ./configure --disable-shared --enable-static --disable-maintainer-mode" |
9 |
|
|
# and die "configure failed."; |
10 |
root |
1.7 |
|
11 |
root |
1.8 |
#$LIBS = qx<cd libevent && make printlibs>; |
12 |
root |
1.7 |
|
13 |
root |
1.1 |
WriteMakefile( |
14 |
|
|
dist => { |
15 |
root |
1.2 |
PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
16 |
root |
1.1 |
COMPRESS => 'gzip -9v', |
17 |
|
|
SUFFIX => '.gz', |
18 |
|
|
}, |
19 |
root |
1.6 |
MYEXTLIB => 'libevent/.libs/libevent$(LIB_EXT)', |
20 |
root |
1.8 |
INC => "-Ilibev", |
21 |
root |
1.2 |
NAME => "EV", |
22 |
root |
1.8 |
LIBS => ["-lrt -lpthread"], |
23 |
root |
1.2 |
VERSION_FROM => "EV.pm", |
24 |
root |
1.5 |
PM => { |
25 |
|
|
'EV.pm' => '$(INST_LIBDIR)/EV.pm', |
26 |
|
|
'EV/AnyEvent.pm' => '$(INST_LIBDIR)/EV/AnyEvent.pm', |
27 |
root |
1.9 |
#'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm', |
28 |
root |
1.5 |
'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h', |
29 |
|
|
'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm', |
30 |
root |
1.8 |
'libev/ev.h' => '$(INST_LIBDIR)/EV/ev.h', |
31 |
root |
1.5 |
}, |
32 |
root |
1.1 |
); |
33 |
|
|
|
34 |
root |
1.6 |
|