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.6 by root, Tue Oct 30 14:02:35 2007 UTC

1use 5.006; 1use 5.006;
2 2
3use ExtUtils::MakeMaker; 3use ExtUtils::MakeMaker;
4
5print <<EOF;
6
7***
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 4
17WriteMakefile( 5WriteMakefile(
18 dist => { 6 dist => {
19 PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 7 PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
20 COMPRESS => 'gzip -9v', 8 COMPRESS => 'gzip -9v',
21 SUFFIX => '.gz', 9 SUFFIX => '.gz',
22 }, 10 },
23 LIBS => ["-levent"], 11 MYEXTLIB => 'libevent/.libs/libevent$(LIB_EXT)',
24 NAME => "EV", 12 NAME => "EV",
25 VERSION_FROM => "EV.pm", 13 VERSION_FROM => "EV.pm",
26 PM => { 14 PM => {
27 'EV.pm' => '$(INST_LIBDIR)/EV.pm', 15 'EV.pm' => '$(INST_LIBDIR)/EV.pm',
28 'EV/AnyEvent.pm' => '$(INST_LIBDIR)/EV/AnyEvent.pm', 16 'EV/AnyEvent.pm' => '$(INST_LIBDIR)/EV/AnyEvent.pm',
29 'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm', 17 'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm',
30 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h', 18 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h',
31 'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm', 19 'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm',
20 'libevent/event.h' => '$(INST_LIBDIR)/EV/event.h',
21 'libevent/evdns.h' => '$(INST_LIBDIR)/EV/evdns.h',
22 'libevent/evhttp.h' => '$(INST_LIBDIR)/EV/evhttp.h',
32 }, 23 },
33); 24);
34 25
26sub MY::postamble {
27 my $postamble =<<'END';
28
29libevent/Makefile: libevent/configure
30 cd libevent && CC="$(CC)" CFLAGS="$(OPTIMIZE) $(CFLAGS) $(CCCDLFLAGS)" ./configure --disable-shared --enable-static --disable-maintainer-mode
31
32clean::
33 -cd libevent && make distclean
34
35force:
36
37$(MYEXTLIB): libevent/Makefile force
38 cd libevent && $(MAKE) all
39
40END
41}
42

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines