ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV-Loop-Async/Makefile.PL
Revision: 1.3
Committed: Tue Jul 14 19:39:34 2009 UTC (14 years, 10 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.2: +17 -1 lines
Log Message:
*** empty log message ***

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    
12     EOF
13    
14 root 1.3 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     }
28    
29 root 1.1 my $mm = MM->new({EV::MakeMaker::ev_args (
30     dist => {
31     PREOP => 'pod2text Async.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
32     COMPRESS => 'gzip -9v',
33     SUFFIX => '.gz',
34     },
35     NAME => "EV::Loop::Async",
36     VERSION_FROM => "Async.pm",
37 root 1.3 INC => $INC,
38     LIBS => $LIBS,
39 root 1.1 PREREQ_FATAL => 1,
40     PREREQ_PM => {
41     EV => 3.6, #TODO bump
42     Async::Interrupt => 0,
43     common::sense => 0,
44     },
45     META_MERGE => {
46     configure_requires => {
47     EV => 2.0,
48     },
49     },
50     )});
51    
52     $mm->flush;
53