1 | use ExtUtils::MakeMaker; |
1 | use ExtUtils::MakeMaker; |
2 | |
2 | |
3 | use 5.008; |
3 | if(0){ |
|
|
4 | print <<EOF; |
|
|
5 | |
|
|
6 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
|
|
7 | |
|
|
8 | |
|
|
9 | Welcome to OpenCL configuration. If you are in a hurry, just press return here |
|
|
10 | and hope for the best. The defaults should usually do. |
|
|
11 | |
|
|
12 | EOF |
|
|
13 | |
|
|
14 | if (prompt ("Skip further questions and use defaults (y/n)?", "y") =~ /[yY]/) { |
|
|
15 | $ENV{PERL_MM_USE_DEFAULT} = 1; |
|
|
16 | } |
|
|
17 | } |
|
|
18 | |
|
|
19 | if(0){ |
|
|
20 | print <<EOF; |
|
|
21 | |
|
|
22 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
|
|
23 | |
|
|
24 | |
|
|
25 | Most OpenCL implementations can interface to OpenGL. Should This module |
|
|
26 | try to take advantage of and offer support for OpenGL? |
|
|
27 | |
|
|
28 | EOF |
|
|
29 | |
|
|
30 | my $DEFINE .= " -DHAVE_OPENGL=" . (0 + (prompt ("Enable optional support for OpenGL (y/n)?", "y") =~ /[yY]/)); |
|
|
31 | } |
4 | |
32 | |
5 | WriteMakefile( |
33 | WriteMakefile( |
6 | dist => { |
34 | dist => { |
7 | PREOP => 'pod2text OpenCL.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
35 | PREOP => 'pod2text OpenCL.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
8 | COMPRESS => 'gzip -9v', |
36 | COMPRESS => 'gzip -9v', |
9 | SUFFIX => '.gz', |
37 | SUFFIX => '.gz', |
10 | }, |
38 | }, |
|
|
39 | PREREQ_PM => { |
|
|
40 | common::sense => 0, |
|
|
41 | }, |
|
|
42 | DEFINE => $DEFINE, |
11 | NAME => "OpenCL", |
43 | NAME => "OpenCL", |
12 | VERSION_FROM => "OpenCL.pm", |
44 | VERSION_FROM => "OpenCL.pm", |
13 | LIBS => "-lOpenCL", |
45 | LIBS => ["-lOpenCL"], |
14 | ); |
46 | ); |
15 | |
47 | |