ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV-Loop-Async/Makefile.PL
Revision: 1.6
Committed: Fri Jul 17 15:06:25 2009 UTC (14 years, 10 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-0_02
Changes since 1.5: +1 -1 lines
Log Message:
0.02

File Contents

# User Rev Content
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.4 EV => 3.7,
44     Async::Interrupt => 0.5,
45 root 1.1 common::sense => 0,
46     },
47     META_MERGE => {
48     configure_requires => {
49     EV => 2.0,
50     },
51     },
52     )});
53    
54     $mm->flush;
55