1 |
root |
1.1 |
use ExtUtils::MakeMaker; |
2 |
|
|
use EV::MakeMaker; |
3 |
|
|
|
4 |
root |
1.2 |
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 |
root |
1.5 |
*** Due to bugs in perl, this module does not currently work on windows. |
12 |
|
|
*** |
13 |
root |
1.2 |
|
14 |
|
|
EOF |
15 |
|
|
|
16 |
root |
1.3 |
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 |
root |
1.6 |
$INC = "-I/sdk/include -I/vc98/include -I/gtk/include"; |
25 |
root |
1.3 |
$LIBS = ["-L/gtk/lib -lpthreadVC2"]; |
26 |
|
|
} else { |
27 |
|
|
$INC = ""; |
28 |
|
|
$LIBS = ['-lpthread'], |
29 |
|
|
} |
30 |
|
|
|
31 |
root |
1.1 |
my $mm = MM->new({EV::MakeMaker::ev_args ( |
32 |
|
|
dist => { |
33 |
|
|
PREOP => 'pod2text Async.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
34 |
|
|
COMPRESS => 'gzip -9v', |
35 |
|
|
SUFFIX => '.gz', |
36 |
|
|
}, |
37 |
|
|
NAME => "EV::Loop::Async", |
38 |
|
|
VERSION_FROM => "Async.pm", |
39 |
root |
1.3 |
INC => $INC, |
40 |
|
|
LIBS => $LIBS, |
41 |
root |
1.1 |
PREREQ_FATAL => 1, |
42 |
|
|
PREREQ_PM => { |
43 |
root |
1.8 |
EV => 4.00, |
44 |
root |
1.4 |
Async::Interrupt => 0.5, |
45 |
root |
1.1 |
common::sense => 0, |
46 |
|
|
}, |
47 |
root |
1.8 |
CONFIGURE_REQUIRES => { |
48 |
|
|
EV => 4.00, |
49 |
|
|
Async::Interrupt => 0.5, |
50 |
|
|
common::sense => 0, |
51 |
root |
1.1 |
}, |
52 |
|
|
)}); |
53 |
|
|
|
54 |
|
|
$mm->flush; |
55 |
|
|
|