1 |
use ExtUtils::MakeMaker; |
2 |
|
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 |
print <<EOF; |
20 |
|
21 |
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
22 |
|
23 |
|
24 |
Most OpenCL implementations can interface to OpenGL. Should This module |
25 |
try to take advantage of and offer support for OpenGL? |
26 |
|
27 |
EOF |
28 |
|
29 |
my $DEFINE .= " -DHAVE_OPENGL=" . (0 + (prompt ("Enable optional support for OpenGL (y/n)?", "y") =~ /[yY]/)); |
30 |
|
31 |
WriteMakefile( |
32 |
dist => { |
33 |
PREOP => 'pod2text OpenCL.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
34 |
COMPRESS => 'gzip -9v', |
35 |
SUFFIX => '.gz', |
36 |
}, |
37 |
PREREQ_PM => { |
38 |
common::sense => 0, |
39 |
}, |
40 |
DEFINE => $DEFINE, |
41 |
NAME => "OpenCL", |
42 |
VERSION_FROM => "OpenCL.pm", |
43 |
LIBS => ["-lOpenCL"], |
44 |
); |
45 |
|