ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro-Multicore/Makefile.PL
(Generate patch)

Comparing Coro-Multicore/Makefile.PL (file contents):
Revision 1.2 by root, Mon Jun 29 13:15:53 2015 UTC vs.
Revision 1.5 by root, Mon Aug 13 10:22:49 2018 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2use Coro::MakeMaker; 2use Coro::MakeMaker;
3 3
4use Canary::Stability Coro::Multicore => 1; 4use Canary::Stability Coro::Multicore => 1, 5.008009;
5 5
6if ($^O eq "MSWin32") { 6if ($^O eq "MSWin32") {
7 # configuration on windows is hardcoded - as always 7 # configuration on windows is hardcoded - as always
8 8
9 print STDERR <<EOF; 9 print STDERR <<EOF;
10 10
11*** 11***
12*** Your platform is not standards compliant. To get this module working, you need to 12*** Your platform is not standards compliant. To get this module working, you need to
13*** download and install win32 pthread (http://sourceware.org/pthreads-win32/) 13*** have the win32 pthread library (http://sourceware.org/pthreads-win32/) and
14*** in /gtk/{lib,include} 14*** the windows sdk or equivalent.
15*** also, the windows SDK is expected to be installed in /sdk
16*** and visual C is expected to be installed in /vc98
17***
18*** Alternatively, set the INC and LIBS environment variables
19*** accordingly before running Makefile.PL, or you can
20*** pass INC and LIBS arguments to Makefile.PL itself.
21*** 15***
22 16
23EOF 17EOF
24 18
25 if ($Config{cc} =~ /(?:^|\\|\/)gcc(?:|.*\.exe)$/) { 19 $INC = "$ENV{INC}";
26 $INC = "$ENV{INC} -I/gtk/include";
27 $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadGC2"]; 20 $LIBS = ["$ENV{LIBS} -lpthread"];
28 } else {
29 $INC = "$ENV{INC} -I/sdk/include -I/vc98/include -I/gtk/include";
30 $LIBS = ["$ENV{LIBS} -L/gtk/lib -lpthreadVC2"];
31 }
32 21
33} else { 22} else {
34 23
35 $INC = ""; 24 $INC = "";
36 $LIBS = ['-lpthread', '-lpthreads', '']; 25 $LIBS = ['-lpthread', '-lpthreads', ''];
75 SUFFIX => '.gz', 64 SUFFIX => '.gz',
76 }, 65 },
77 NAME => "Coro::Multicore", 66 NAME => "Coro::Multicore",
78 VERSION_FROM => "Multicore.pm", 67 VERSION_FROM => "Multicore.pm",
79 CONFIGURE_REQUIRES => { "ExtUtils::MakeMaker" => 6.52, "Canary::Stability" => 0, "Coro" => 6.44 }, 68 CONFIGURE_REQUIRES => { "ExtUtils::MakeMaker" => 6.52, "Canary::Stability" => 0, "Coro" => 6.44 },
69 TEST_REQUIRES => { "Coro" => 6.44 },
80 PREREQ_PM => { "Coro" => 6.44, "AnyEvent" => 7 }, 70 PREREQ_PM => { "Coro" => 6.44, "AnyEvent" => 7 },
81 INC => $INC, 71 INC => $INC,
82 LIBS => $LIBS, 72 LIBS => $LIBS,
83)); 73));
84 74

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines