ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/Makefile.PL
(Generate patch)

Comparing EV/Makefile.PL (file contents):
Revision 1.5 by root, Mon Oct 29 08:48:07 2007 UTC vs.
Revision 1.10 by root, Thu Nov 1 06:48:49 2007 UTC

1use 5.006; 1use 5.006;
2 2
3use Config;
3use ExtUtils::MakeMaker; 4use ExtUtils::MakeMaker;
4 5
6
7unless (-e "libev/ev_epoll.c") {
5print <<EOF; 8 print <<EOF;
6 9
7*** 10***
8*** You need to install libevent (http://monkey.org/~provos/libevent/) separately 11*** ERROR: libev is missing or damaged. If you used a CVS check-out of EV,
9*** first in a way so that the Makefile.PL can find both -levent and the event.h 12*** you also have to check-out the "libev" module from the same CVS
10*** and evdns.h include files. 13*** repository into the EV dir (i.e. EV/libev from outside).
11*** 14***
12*** Version 1.3e or higher is recommended, but older 1.3 versions likely work too.
13***
14 15
15EOF 16EOF
17 exit 1;
18}
19
20#$ENV{CC} = $Config{cc};
21#$ENV{CFLAGS} = join " ", map $Config{$_}, qw(inc optimize ccflags cccdlflags);
22#system "cd libevent && ./configure --disable-shared --enable-static --disable-maintainer-mode"
23# and die "configure failed.";
24
25#$LIBS = qx<cd libevent && make printlibs>;
16 26
17WriteMakefile( 27WriteMakefile(
18 dist => { 28 dist => {
19 PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 29 PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
20 COMPRESS => 'gzip -9v', 30 COMPRESS => 'gzip -9v',
21 SUFFIX => '.gz', 31 SUFFIX => '.gz',
22 }, 32 },
23 LIBS => ["-levent"], 33 depend => {
34 "EV.c" => "EV/EVAPI.h libev/ev.c libev/ev.h libev/ev_epoll.c libev/ev_select.c",
35 },
36 INC => "-Ilibev",
24 NAME => "EV", 37 NAME => "EV",
38 LIBS => ["-lrt -lpthread"],
25 VERSION_FROM => "EV.pm", 39 VERSION_FROM => "EV.pm",
26 PM => { 40 PM => {
27 'EV.pm' => '$(INST_LIBDIR)/EV.pm', 41 'EV.pm' => '$(INST_LIBDIR)/EV.pm',
28 'EV/AnyEvent.pm' => '$(INST_LIBDIR)/EV/AnyEvent.pm', 42 'EV/AnyEvent.pm' => '$(INST_LIBDIR)/EV/AnyEvent.pm',
29 'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm', 43 #'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm',
30 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h', 44 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h',
31 'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm', 45 'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm',
46 'libev/ev.h' => '$(INST_LIBDIR)/EV/ev.h',
32 }, 47 },
33); 48);
34 49
50

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines