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

Comparing EV/Makefile.PL (file contents):
Revision 1.3 by root, Fri Oct 26 17:40:31 2007 UTC vs.
Revision 1.10 by root, Thu Nov 1 06:48:49 2007 UTC

1use 5.006;
2
3use Config;
1use ExtUtils::MakeMaker; 4use ExtUtils::MakeMaker;
2 5
6
7unless (-e "libev/ev_epoll.c") {
3print <<EOF; 8 print <<EOF;
4 9
5*** 10***
6*** 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,
7*** 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
8*** and evdns.h include files. 13*** repository into the EV dir (i.e. EV/libev from outside).
9*** 14***
10*** Version 1.3e or higher is recommended, but older versions likely work too.
11***
12 15
13EOF 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>;
14 26
15WriteMakefile( 27WriteMakefile(
16 dist => { 28 dist => {
17 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 . ;',
18 COMPRESS => 'gzip -9v', 30 COMPRESS => 'gzip -9v',
19 SUFFIX => '.gz', 31 SUFFIX => '.gz',
20 }, 32 },
21 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",
22 NAME => "EV", 37 NAME => "EV",
38 LIBS => ["-lrt -lpthread"],
23 VERSION_FROM => "EV.pm", 39 VERSION_FROM => "EV.pm",
40 PM => {
41 'EV.pm' => '$(INST_LIBDIR)/EV.pm',
42 'EV/AnyEvent.pm' => '$(INST_LIBDIR)/EV/AnyEvent.pm',
43 #'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm',
44 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h',
45 'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm',
46 'libev/ev.h' => '$(INST_LIBDIR)/EV/ev.h',
47 },
24); 48);
25 49
50

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines