… | |
… | |
6 | *** |
6 | *** |
7 | *** This module requires phreads (listening to -lpthread) |
7 | *** This module requires phreads (listening to -lpthread) |
8 | *** A pthreads implementation for windows can be found at |
8 | *** A pthreads implementation for windows can be found at |
9 | *** http://sourceware.org/pthreads-win32/ |
9 | *** http://sourceware.org/pthreads-win32/ |
10 | *** |
10 | *** |
|
|
11 | *** Due to bugs in perl, this module does not currently work on windows. |
|
|
12 | *** |
11 | |
13 | |
12 | EOF |
14 | EOF |
|
|
15 | |
|
|
16 | if ($^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 | } |
13 | |
30 | |
14 | my $mm = MM->new({EV::MakeMaker::ev_args ( |
31 | my $mm = MM->new({EV::MakeMaker::ev_args ( |
15 | dist => { |
32 | dist => { |
16 | 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 . ;', |
17 | COMPRESS => 'gzip -9v', |
34 | COMPRESS => 'gzip -9v', |
18 | SUFFIX => '.gz', |
35 | SUFFIX => '.gz', |
19 | }, |
36 | }, |
20 | NAME => "EV::Loop::Async", |
37 | NAME => "EV::Loop::Async", |
21 | VERSION_FROM => "Async.pm", |
38 | VERSION_FROM => "Async.pm", |
22 | LIBS => ["-lpthread"], |
39 | INC => $INC, |
|
|
40 | LIBS => $LIBS, |
23 | PREREQ_FATAL => 1, |
41 | PREREQ_FATAL => 1, |
24 | PREREQ_PM => { |
42 | PREREQ_PM => { |
25 | EV => 3.6, #TODO bump |
43 | EV => 3.7, |
26 | Async::Interrupt => 0, |
44 | Async::Interrupt => 0.5, |
27 | common::sense => 0, |
45 | common::sense => 0, |
28 | }, |
46 | }, |
29 | META_MERGE => { |
47 | META_MERGE => { |
30 | configure_requires => { |
48 | configure_requires => { |
31 | EV => 2.0, |
49 | EV => 3.7, |
32 | }, |
50 | }, |
33 | }, |
51 | }, |
34 | )}); |
52 | )}); |
35 | |
53 | |
36 | $mm->flush; |
54 | $mm->flush; |