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

Comparing EV/Makefile.PL (file contents):
Revision 1.6 by root, Tue Oct 30 14:02:35 2007 UTC vs.
Revision 1.7 by root, Tue Oct 30 14:11:32 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines