ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro-Mysql/Makefile.PL
Revision: 1.3
Committed: Thu Feb 17 02:05:14 2011 UTC (13 years, 3 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-1_1, rel-1_2, rel-1_24, rel-1_25, rel-1_26, rel-1_27, rel-1_21, rel-1_22
Changes since 1.2: +21 -1 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 use ExtUtils::MakeMaker;
2
3 print <<EOF;
4
5 **
6 ** This module *MUST* be dynamically linked against exactly the same
7 ** libmysqlclient as your DBD::mysql module (also dynamically).
8 ** Otherwise it will die quickly when used.
9 ** If desperate, you could also try linking against the DBD::mysql
10 ** shared object itself.
11 **
12 ** To adjust include and library path, edit the Makefile.PL, near the end.
13 **
14
15 EOF
16
17 my %wm = (
18 dist => {
19 PREOP => 'pod2text Mysql.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
20 COMPRESS => 'gzip -9v',
21 SUFFIX => '.gz',
22 },
23 PREREQ_PM => {
24 Scalar::Util => 0.00,
25 Coro => 5.1,
26 Guard => 1.0,
27 DBI => 0, # not actually a hard dependency
28 DBD::mysql => 0, # not actually a hard dependency
29 },
30 NAME => "Coro::Mysql",
31 VERSION_FROM => "Mysql.pm",
32
33 INC => '-I/usr/include/mysql',
34 LIBS => ['-L/usr/lib -lmysqlclient'],
35 );
36
37 if (eval "require EV::MakeMaker; require Coro::MakeMaker; 1") {
38 %wm = Coro::MakeMaker::coro_args (EV::MakeMaker::ev_args (%wm));
39 $wm{DEFINE} .= " -DHAVE_EV=1";
40 } else {
41 print <<EOF;
42
43 **
44 ** Especially fast with EV!
45 **
46 ** This module is especially fast when used together with EV as
47 ** the event loop - but you don't have EV installed. Too bad,
48 ** but I work with any event loop, including EV, using my
49 ** generic code, so no sweat. If you plan to use EV, better
50 ** install it before this module.
51 **
52
53 EOF
54 }
55
56 WriteMakefile %wm;