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

Comparing EV-Loop-Async/Makefile.PL (file contents):
Revision 1.1 by root, Tue Jul 14 02:59:55 2009 UTC vs.
Revision 1.8 by root, Mon Nov 1 22:28:41 2010 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2use EV::MakeMaker; 2use EV::MakeMaker;
3
4print <<EOF;
5
6***
7*** This module requires phreads (listening to -lpthread)
8*** A pthreads implementation for windows can be found at
9*** http://sourceware.org/pthreads-win32/
10***
11*** Due to bugs in perl, this module does not currently work on windows.
12***
13
14EOF
15
16if ($^O =~ /win32/i or $^O =~ /mswin/) {
17
18 # configuration on windows is hardcoded - as always
19
20 warn "your platform is not standards-compliant, you have to port this module first\n";
21 warn "using some hardcoded config that will not work on your system\n";
22 warn "hint: edit the Makefile.PL\n\n";
23
24 $INC = "-I/sdk/include -I/vc98/include -I/gtk/include";
25 $LIBS = ["-L/gtk/lib -lpthreadVC2"];
26} else {
27 $INC = "";
28 $LIBS = ['-lpthread'],
29}
3 30
4my $mm = MM->new({EV::MakeMaker::ev_args ( 31my $mm = MM->new({EV::MakeMaker::ev_args (
5 dist => { 32 dist => {
6 PREOP => 'pod2text Async.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 33 PREOP => 'pod2text Async.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
7 COMPRESS => 'gzip -9v', 34 COMPRESS => 'gzip -9v',
8 SUFFIX => '.gz', 35 SUFFIX => '.gz',
9 }, 36 },
10 NAME => "EV::Loop::Async", 37 NAME => "EV::Loop::Async",
11 VERSION_FROM => "Async.pm", 38 VERSION_FROM => "Async.pm",
12 LIBS => ["-lpthread"], 39 INC => $INC,
40 LIBS => $LIBS,
13 PREREQ_FATAL => 1, 41 PREREQ_FATAL => 1,
14 PREREQ_PM => { 42 PREREQ_PM => {
15 EV => 3.6, #TODO bump 43 EV => 4.00,
16 Async::Interrupt => 0, 44 Async::Interrupt => 0.5,
17 common::sense => 0, 45 common::sense => 0,
18 }, 46 },
19 META_MERGE => { 47 CONFIGURE_REQUIRES => {
20 configure_requires => { 48 EV => 4.00,
21 EV => 2.0, 49 Async::Interrupt => 0.5,
22 }, 50 common::sense => 0,
23 }, 51 },
24)}); 52)});
25 53
26$mm->flush; 54$mm->flush;
27 55

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines