ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV-Loop-Async/Makefile.PL
Revision: 1.8
Committed: Mon Nov 1 22:28:41 2010 UTC (13 years, 6 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-1_01, HEAD
Changes since 1.7: +5 -5 lines
Log Message:
1.01

File Contents

# Content
1 use ExtUtils::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 *** Due to bugs in perl, this module does not currently work on windows.
12 ***
13
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 }
30
31 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 INC => $INC,
40 LIBS => $LIBS,
41 PREREQ_FATAL => 1,
42 PREREQ_PM => {
43 EV => 4.00,
44 Async::Interrupt => 0.5,
45 common::sense => 0,
46 },
47 CONFIGURE_REQUIRES => {
48 EV => 4.00,
49 Async::Interrupt => 0.5,
50 common::sense => 0,
51 },
52 )});
53
54 $mm->flush;
55