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.8 by root, Wed Oct 31 10:50:05 2007 UTC

1use 5.006; 1use 5.006;
2 2
3use Config;
3use ExtUtils::MakeMaker; 4use ExtUtils::MakeMaker;
4 5
5print <<EOF; 6#$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.";
6 10
7*** 11#$LIBS = qx<cd libevent && make printlibs>;
8*** You need to install libevent (http://monkey.org/~provos/libevent/) separately
9*** first in a way so that the Makefile.PL can find both -levent and the event.h
10*** and evdns.h include files.
11***
12*** Version 1.3e or higher is recommended, but older 1.3 versions likely work too.
13***
14
15EOF
16 12
17WriteMakefile( 13WriteMakefile(
18 dist => { 14 dist => {
19 PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 15 PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
20 COMPRESS => 'gzip -9v', 16 COMPRESS => 'gzip -9v',
21 SUFFIX => '.gz', 17 SUFFIX => '.gz',
22 }, 18 },
23 LIBS => ["-levent"], 19 MYEXTLIB => 'libevent/.libs/libevent$(LIB_EXT)',
20 INC => "-Ilibev",
24 NAME => "EV", 21 NAME => "EV",
22 LIBS => ["-lrt -lpthread"],
25 VERSION_FROM => "EV.pm", 23 VERSION_FROM => "EV.pm",
26 PM => { 24 PM => {
27 'EV.pm' => '$(INST_LIBDIR)/EV.pm', 25 'EV.pm' => '$(INST_LIBDIR)/EV.pm',
28 'EV/AnyEvent.pm' => '$(INST_LIBDIR)/EV/AnyEvent.pm', 26 'EV/AnyEvent.pm' => '$(INST_LIBDIR)/EV/AnyEvent.pm',
29 'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm', 27 'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm',
30 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h', 28 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h',
31 'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm', 29 'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm',
30 'libev/ev.h' => '$(INST_LIBDIR)/EV/ev.h',
32 }, 31 },
33); 32);
34 33
34

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines