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

Comparing OpenCL/Makefile.PL (file contents):
Revision 1.10 by root, Tue Apr 24 22:45:38 2012 UTC vs.
Revision 1.11 by root, Tue May 8 00:33:27 2012 UTC

15 15
16Do you want to prefer the OpenCL 1.1 API over the 1.2 API where possible? 16Do you want to prefer the OpenCL 1.1 API over the 1.2 API where possible?
17 17
18EOF 18EOF
19 19
20my $DEFINE .= " -DPREFER_1_1=" . (0 + (prompt ("Prefer OpenCL 1.1 over 1.2 functions (y/n)?", "y") =~ /[yY]/)); 20my $DEFINE = " -DPREFER_1_1=" . (0 + (prompt ("Prefer OpenCL 1.1 over 1.2 functions (y/n)?", "y") =~ /[yY]/));
21
22print <<EOF;
23
24*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
25
26
27This module needs to link against both the OpenCL and pthread libraries
28(even on windows). If you wish you can override the LIBS argument now. If
29not, just press enter to accept the default.
30
31EOF
32
33my $LIBS = prompt "Value for LIBS?", "-lOpenCL -lpthread";
34
35print <<EOF;
36
37*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
38
39
40Sometimes you need to define extra compilation options (for example, the
41hypothetical OpenCL 1.3 header files might require you to define something
42like CL_USE_DEPRECATED_OPENCL_1_2_APIS). You can do this here, or simply
43press enter.
44
45EOF
46
47my $EXTRADEFS = prompt "Any extra -D options?", "";
21 48
22WriteMakefile( 49WriteMakefile(
23 dist => { 50 dist => {
24 PREOP => 'pod2text OpenCL.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 51 PREOP => 'pod2text OpenCL.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
25 COMPRESS => 'gzip -9v', 52 COMPRESS => 'gzip -9v',
27 }, 54 },
28 PREREQ_PM => { 55 PREREQ_PM => {
29 common::sense => 3, 56 common::sense => 3,
30 Async::Interrupt => 1.1, 57 Async::Interrupt => 1.1,
31 }, 58 },
32 DEFINE => $DEFINE, 59 DEFINE => "$DEFINE $EXTRADEFS",
33 NAME => "OpenCL", 60 NAME => "OpenCL",
34 VERSION_FROM => "OpenCL.pm", 61 VERSION_FROM => "OpenCL.pm",
35 LIBS => ["-lOpenCL -lpthread"], 62 LIBS => [$LIBS],
36); 63);
37 64

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines