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

Comparing OpenCL/Makefile.PL (file contents):
Revision 1.3 by root, Thu Nov 17 02:10:39 2011 UTC vs.
Revision 1.4 by root, Thu Apr 19 12:12:03 2012 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines