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.3 by root, Tue Jul 14 19:39:34 2009 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
12EOF
13
14if ($^O =~ /win32/i or $^O =~ /mswin/) {
15
16 # configuration on windows is hardcoded - as always
17
18 warn "your platform is not standards-compliant, you have to port this module first\n";
19 warn "using some hardcoded config that will not work on your system\n";
20 warn "hint: edit the Makefile.PL\n\n";
21
22 $INC = "-I/gtk/include";
23 $LIBS = ["-L/gtk/lib -lpthreadVC2"];
24} else {
25 $INC = "";
26 $LIBS = ['-lpthread'],
27}
3 28
4my $mm = MM->new({EV::MakeMaker::ev_args ( 29my $mm = MM->new({EV::MakeMaker::ev_args (
5 dist => { 30 dist => {
6 PREOP => 'pod2text Async.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 31 PREOP => 'pod2text Async.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
7 COMPRESS => 'gzip -9v', 32 COMPRESS => 'gzip -9v',
8 SUFFIX => '.gz', 33 SUFFIX => '.gz',
9 }, 34 },
10 NAME => "EV::Loop::Async", 35 NAME => "EV::Loop::Async",
11 VERSION_FROM => "Async.pm", 36 VERSION_FROM => "Async.pm",
12 LIBS => ["-lpthread"], 37 INC => $INC,
38 LIBS => $LIBS,
13 PREREQ_FATAL => 1, 39 PREREQ_FATAL => 1,
14 PREREQ_PM => { 40 PREREQ_PM => {
15 EV => 3.6, #TODO bump 41 EV => 3.6, #TODO bump
16 Async::Interrupt => 0, 42 Async::Interrupt => 0,
17 common::sense => 0, 43 common::sense => 0,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines