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

Comparing Coro/Makefile.PL (file contents):
Revision 1.19 by root, Tue Nov 29 12:36:18 2005 UTC vs.
Revision 1.33 by root, Mon Oct 29 19:13:39 2007 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2
3print "*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\n\n";
2 4
3if ($] < 5.006) { 5if ($] < 5.006) {
4 print <<EOF; 6 print <<EOF;
5 7
6*** 8***
7*** WARNING: This module is quite low-level and uses undocumented perl 9*** WARNING: This module is quite low-level and uses undocumented perl
8*** internals to do it's job. While it seems to work fine with perl-5.8, 10*** internals to do it's job. While it seems to work fine with perl-5.[6-10]
9*** 5.7 and 5.6, it has not been tested with older versions. If it 11*** it has not been tested with older versions. If it compiles and passes the
10*** compiles and passes the testsuite, it should work. Otherwise you 12*** testsuite, it should work. Otherwise you should either upgrade or fix it ;)
11*** should either upgrade or fix it ;)
12*** 13***
13*** Marc Lehmann <schmorp\@schmorp.de> 14*** Marc Lehmann <schmorp\@schmorp.de>
14*** 15***
15 16
16EOF 17EOF
22 23
23*** 24***
24*** WARNING: Event version $Event::VERSION found, NOT building Event support. 25*** WARNING: Event version $Event::VERSION found, NOT building Event support.
25*** 26***
26*** This version of Event is broken. The only currently known non-broken 27*** This version of Event is broken. The only currently known non-broken
27*** versions of Event are 0.87 and 0.89+. Please install one of these 28*** versions of Event are 0.87 and 0.89+. Please install one of those
28*** versions. 29*** versions.
29*** 30***
30 31
31EOF 32EOF
32 } else { 33 } else {
33 $EVENT = 1; 34 $EVENT = 1;
34 $DEFINE .= " -DHAVE_EVENT=1"; 35 $DEFINE .= " -DHAVE_EVENT=1";
35 print "\nEvent version $Event::VERSION found, building Event support.\n\n"; 36 print "\nEvent version $Event::VERSION found, building Event support.\n\n";
36 } 37 }
37 print "\n";
38} else { 38} else {
39 print "\n*** Event not found, not build Event support.\n\n"; 39 print "\n*** Event not found, not build Event support.\n\n";
40}
41
42if (eval { require EV }) {
43 $EV = 1;
44 $DEFINE .= " -DHAVE_EV=1";
45 print "\nEV version $EV::VERSION found, building EV support.\n\n";
46} else {
47 print "\n*** EV not found, not build EV support.\n\n";
40} 48}
41 49
42WriteMakefile( 50WriteMakefile(
43 dist => { 51 dist => {
44 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 52 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
45 COMPRESS => 'gzip -9v', 53 COMPRESS => 'gzip -9v',
46 SUFFIX => '.gz', 54 SUFFIX => '.gz',
47 }, 55 },
48 NAME => "Coro", 56 NAME => "Coro",
49 VERSION_FROM => "Coro.pm", 57 VERSION_FROM => "Coro.pm",
50 DIR => ['Coro', ($EVENT ? 'Event' : ())], 58 DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())],
51 PREREQ_PM => { 59 PREREQ_PM => {
52 Event => 0.86,
53 Scalar::Util => 0.00, 60 Scalar::Util => 0.00,
61 AnyEvent => 2.51,
62 Storable => 2.15,
63 Time::HiRes => 0,
64
65 # for Coro::Event
66 Event => 1.06,
67
68 # for Coro::EV
69 EV => 0.03,
70
71 # for Coro::AIO
72 IO::AIO => 2.3,
54 }, 73 },
55 PM => { 74 PM => {
56 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', 75 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm',
57 76
58 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', 77 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm',
59 78
60 'Coro/MakeMaker.pm' => '$(INST_LIBDIR)/Coro/MakeMaker.pm', 79 'Coro/MakeMaker.pm' => '$(INST_LIBDIR)/Coro/MakeMaker.pm',
61 'Coro/CoroAPI.h' => '$(INST_LIBDIR)/Coro/CoroAPI.h', 80 'Coro/CoroAPI.h' => '$(INST_LIBDIR)/Coro/CoroAPI.h',
62 81
63 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm', 82# 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm',
64 83
65 'Coro/Specific.pm' => '$(INST_LIBDIR)/Coro/Specific.pm', 84 'Coro/Specific.pm' => '$(INST_LIBDIR)/Coro/Specific.pm',
66 85
67 'Coro/Timer.pm' => '$(INST_LIBDIR)/Coro/Timer.pm', 86 'Coro/Timer.pm' => '$(INST_LIBDIR)/Coro/Timer.pm',
68 'Coro/Signal.pm' => '$(INST_LIBDIR)/Coro/Signal.pm', 87 'Coro/Signal.pm' => '$(INST_LIBDIR)/Coro/Signal.pm',
69 'Coro/Channel.pm' => '$(INST_LIBDIR)/Coro/Channel.pm', 88 'Coro/Channel.pm' => '$(INST_LIBDIR)/Coro/Channel.pm',
70 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm', 89 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm',
71 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm', 90 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm',
72 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm', 91 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm',
92
93 'Coro/Debug.pm' => '$(INST_LIBDIR)/Coro/Debug.pm',
94 'Coro/Util.pm' => '$(INST_LIBDIR)/Coro/Util.pm',
95 'Coro/Select.pm' => '$(INST_LIBDIR)/Coro/Select.pm',
96 'Coro/Handle.pm' => '$(INST_LIBDIR)/Coro/Handle.pm',
97 'Coro/Socket.pm' => '$(INST_LIBDIR)/Coro/Socket.pm',
98
99 'Coro/AIO.pm' => '$(INST_LIBDIR)/Coro/AIO.pm',
100 'Coro/LWP.pm' => '$(INST_LIBDIR)/Coro/LWP.pm',
101 'Coro/Storable.pm' => '$(INST_LIBDIR)/Coro/Storable.pm',
73 }, 102 },
74); 103);
75 104
76sub MY::postamble { 105sub MY::postamble {
77 <<EOF; 106 <<EOF;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines