1 | use ExtUtils::MakeMaker; |
1 | use ExtUtils::MakeMaker; |
2 | use EV::MakeMaker; |
2 | use EV::MakeMaker; |
|
|
3 | |
|
|
4 | print <<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 | |
|
|
12 | EOF |
|
|
13 | |
|
|
14 | if ($^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 | |
4 | my $mm = MM->new({EV::MakeMaker::ev_args ( |
29 | my $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, |