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

Comparing EV/Makefile.PL (file contents):
Revision 1.7 by root, Tue Oct 30 14:11:32 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 Config;
4use ExtUtils::MakeMaker; 4use ExtUtils::MakeMaker;
5 5
6$ENV{CC} = $Config{cc}; 6#$ENV{CC} = $Config{cc};
7$ENV{CFLAGS} = join " ", map $Config{$_}, qw(inc optimize ccflags cccdlflags); 7#$ENV{CFLAGS} = join " ", map $Config{$_}, qw(inc optimize ccflags cccdlflags);
8system "cd libevent && ./configure --disable-shared --enable-static --disable-maintainer-mode" 8#system "cd libevent && ./configure --disable-shared --enable-static --disable-maintainer-mode"
9 and die "configure failed."; 9# and die "configure failed.";
10 10
11$LIBS = qx<cd libevent && make printlibs>; 11#$LIBS = qx<cd libevent && make printlibs>;
12 12
13WriteMakefile( 13WriteMakefile(
14 dist => { 14 dist => {
15 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 . ;',
16 COMPRESS => 'gzip -9v', 16 COMPRESS => 'gzip -9v',
17 SUFFIX => '.gz', 17 SUFFIX => '.gz',
18 }, 18 },
19 MYEXTLIB => 'libevent/.libs/libevent$(LIB_EXT)', 19 MYEXTLIB => 'libevent/.libs/libevent$(LIB_EXT)',
20 INC => "-Ilibev",
20 NAME => "EV", 21 NAME => "EV",
21 LIBS => [$LIBS], 22 LIBS => ["-lrt -lpthread"],
22 VERSION_FROM => "EV.pm", 23 VERSION_FROM => "EV.pm",
23 PM => { 24 PM => {
24 'EV.pm' => '$(INST_LIBDIR)/EV.pm', 25 'EV.pm' => '$(INST_LIBDIR)/EV.pm',
25 'EV/AnyEvent.pm' => '$(INST_LIBDIR)/EV/AnyEvent.pm', 26 'EV/AnyEvent.pm' => '$(INST_LIBDIR)/EV/AnyEvent.pm',
26 'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm', 27 'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm',
27 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h', 28 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h',
28 'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm', 29 'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm',
29 'libevent/event.h' => '$(INST_LIBDIR)/EV/event.h', 30 'libev/ev.h' => '$(INST_LIBDIR)/EV/ev.h',
30 'libevent/evdns.h' => '$(INST_LIBDIR)/EV/evdns.h',
31 'libevent/evhttp.h' => '$(INST_LIBDIR)/EV/evhttp.h',
32 }, 31 },
33); 32);
34 33
35sub MY::postamble {
36 my $postamble =<<'END';
37 34
38clean::
39 -cd libevent && make distclean
40
41force:
42
43$(MYEXTLIB): force
44 cd libevent && $(MAKE) all
45
46END
47}
48

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines