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

Comparing Coro/Makefile.PL (file contents):
Revision 1.21 by root, Mon Dec 26 18:48:11 2005 UTC vs.
Revision 1.37 by root, Sun Nov 25 09:49:30 2007 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2
3unless (-e "Coro/libcoro/coro.c") {
4 print <<EOF;
5
6***
7*** ERROR: Coro/libcoro is missing or damaged. If you used a CVS check-out
8*** of Coro, you also have to check-out the "libcoro" module from the same CVS
9*** repository in the Coro subdirectory (i.e. Coro/Coro/libcoro from outside).
10***
11
12EOF
13 exit 1;
14}
15
16print "*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\n\n";
2 17
3if ($] < 5.006) { 18if ($] < 5.006) {
4 print <<EOF; 19 print <<EOF;
5 20
6*** 21***
7*** WARNING: This module is quite low-level and uses undocumented perl 22*** 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, 23*** 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 24*** 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 25*** testsuite, it should work. Otherwise you should either upgrade or fix it ;)
11*** should either upgrade or fix it ;)
12*** 26***
13*** Marc Lehmann <schmorp\@schmorp.de> 27*** Marc Lehmann <schmorp\@schmorp.de>
14*** 28***
15 29
16EOF 30EOF
32 } else { 46 } else {
33 $EVENT = 1; 47 $EVENT = 1;
34 $DEFINE .= " -DHAVE_EVENT=1"; 48 $DEFINE .= " -DHAVE_EVENT=1";
35 print "\nEvent version $Event::VERSION found, building Event support.\n\n"; 49 print "\nEvent version $Event::VERSION found, building Event support.\n\n";
36 } 50 }
37 print "\n";
38} else { 51} else {
39 print "\n*** Event not found, not build Event support.\n\n"; 52 print "\n*** Event not found, not build Event support.\n\n";
53}
54
55if (eval { require EV }) {
56 $EV = 1;
57 $DEFINE .= " -DHAVE_EV=1";
58 print "\nEV version $EV::VERSION found, building EV support.\n\n";
59} else {
60 print "\n*** EV not found, not build EV support.\n\n";
40} 61}
41 62
42WriteMakefile( 63WriteMakefile(
43 dist => { 64 dist => {
44 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 65 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
45 COMPRESS => 'gzip -9v', 66 COMPRESS => 'gzip -9v',
46 SUFFIX => '.gz', 67 SUFFIX => '.gz',
47 }, 68 },
48 NAME => "Coro", 69 NAME => "Coro",
49 VERSION_FROM => "Coro.pm", 70 VERSION_FROM => "Coro.pm",
50 DIR => ['Coro', ($EVENT ? 'Event' : ())], 71 DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())],
51 PREREQ_PM => { 72 PREREQ_PM => {
52 Scalar::Util => 0.00, 73 Scalar::Util => 0.00,
74 AnyEvent => 2.6,
75 Storable => 2.15,
76 Time::HiRes => 0,
53 77
54 # for Coro::Event 78 # for Coro::Event
55 Event => 0.86, 79 Event => 1.06,
80
81 # for Coro::EV
82 EV => 1.3,
56 83
57 # for Coro::AIO 84 # for Coro::AIO
58 IO::AIO => 1.6, 85 IO::AIO => 2.3,
59 AnyEvent => 0, 86 },
87 EXTRA_META => q{
88configure_requires:
89 Event: 1.06
90 EV: 1.3
60 }, 91 },
61 PM => { 92 PM => {
62 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', 93 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm',
63 94
64 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', 95 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm',
65 96
66 'Coro/MakeMaker.pm' => '$(INST_LIBDIR)/Coro/MakeMaker.pm', 97 'Coro/MakeMaker.pm' => '$(INST_LIBDIR)/Coro/MakeMaker.pm',
67 'Coro/CoroAPI.h' => '$(INST_LIBDIR)/Coro/CoroAPI.h', 98 'Coro/CoroAPI.h' => '$(INST_LIBDIR)/Coro/CoroAPI.h',
68 99
69 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm', 100# 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm',
70 101
71 'Coro/Specific.pm' => '$(INST_LIBDIR)/Coro/Specific.pm', 102 'Coro/Specific.pm' => '$(INST_LIBDIR)/Coro/Specific.pm',
72 103
73 'Coro/Timer.pm' => '$(INST_LIBDIR)/Coro/Timer.pm', 104 'Coro/Timer.pm' => '$(INST_LIBDIR)/Coro/Timer.pm',
74 'Coro/Signal.pm' => '$(INST_LIBDIR)/Coro/Signal.pm', 105 'Coro/Signal.pm' => '$(INST_LIBDIR)/Coro/Signal.pm',
75 'Coro/Channel.pm' => '$(INST_LIBDIR)/Coro/Channel.pm', 106 'Coro/Channel.pm' => '$(INST_LIBDIR)/Coro/Channel.pm',
76 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm', 107 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm',
77 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm', 108 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm',
78 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm', 109 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm',
79 110
111 'Coro/Debug.pm' => '$(INST_LIBDIR)/Coro/Debug.pm',
112 'Coro/Util.pm' => '$(INST_LIBDIR)/Coro/Util.pm',
113 'Coro/Select.pm' => '$(INST_LIBDIR)/Coro/Select.pm',
114 'Coro/Handle.pm' => '$(INST_LIBDIR)/Coro/Handle.pm',
115 'Coro/Socket.pm' => '$(INST_LIBDIR)/Coro/Socket.pm',
116
80 'Coro/AIO.pm' => '$(INST_LIBDIR)/Coro/AIO.pm', 117 'Coro/AIO.pm' => '$(INST_LIBDIR)/Coro/AIO.pm',
118 'Coro/LWP.pm' => '$(INST_LIBDIR)/Coro/LWP.pm',
119 'Coro/Storable.pm' => '$(INST_LIBDIR)/Coro/Storable.pm',
81 }, 120 },
82); 121);
83 122
84sub MY::postamble { 123sub MY::postamble {
85 <<EOF; 124 <<EOF;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines