ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/Makefile.PL
Revision: 1.10
Committed: Thu Nov 1 06:48:49 2007 UTC (16 years, 6 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.9: +17 -1 lines
Log Message:
the big rename

File Contents

# User Rev Content
1 root 1.4 use 5.006;
2    
3 root 1.7 use Config;
4 root 1.1 use ExtUtils::MakeMaker;
5    
6 root 1.10
7     unless (-e "libev/ev_epoll.c") {
8     print <<EOF;
9    
10     ***
11     *** ERROR: libev is missing or damaged. If you used a CVS check-out of EV,
12     *** you also have to check-out the "libev" module from the same CVS
13     *** repository into the EV dir (i.e. EV/libev from outside).
14     ***
15    
16     EOF
17     exit 1;
18     }
19    
20 root 1.8 #$ENV{CC} = $Config{cc};
21     #$ENV{CFLAGS} = join " ", map $Config{$_}, qw(inc optimize ccflags cccdlflags);
22     #system "cd libevent && ./configure --disable-shared --enable-static --disable-maintainer-mode"
23     # and die "configure failed.";
24 root 1.7
25 root 1.8 #$LIBS = qx<cd libevent && make printlibs>;
26 root 1.7
27 root 1.1 WriteMakefile(
28     dist => {
29 root 1.2 PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
30 root 1.1 COMPRESS => 'gzip -9v',
31     SUFFIX => '.gz',
32     },
33 root 1.10 depend => {
34     "EV.c" => "EV/EVAPI.h libev/ev.c libev/ev.h libev/ev_epoll.c libev/ev_select.c",
35     },
36 root 1.8 INC => "-Ilibev",
37 root 1.2 NAME => "EV",
38 root 1.8 LIBS => ["-lrt -lpthread"],
39 root 1.2 VERSION_FROM => "EV.pm",
40 root 1.5 PM => {
41     'EV.pm' => '$(INST_LIBDIR)/EV.pm',
42     'EV/AnyEvent.pm' => '$(INST_LIBDIR)/EV/AnyEvent.pm',
43 root 1.9 #'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm',
44 root 1.5 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h',
45     'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm',
46 root 1.8 'libev/ev.h' => '$(INST_LIBDIR)/EV/ev.h',
47 root 1.5 },
48 root 1.1 );
49    
50 root 1.6