… | |
… | |
103 | |
103 | |
104 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
104 | *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
105 | |
105 | |
106 | EOF |
106 | EOF |
107 | |
107 | |
108 | #$ENV{CC} = $Config{cc}; |
|
|
109 | #$ENV{CFLAGS} = join " ", map $Config{$_}, qw(inc optimize ccflags cccdlflags); |
|
|
110 | #system "cd libevent && ./configure --disable-shared --enable-static --disable-maintainer-mode" |
|
|
111 | # and die "configure failed."; |
|
|
112 | |
|
|
113 | #$LIBS = qx<cd libevent && make printlibs>; |
|
|
114 | |
|
|
115 | WriteMakefile( |
108 | WriteMakefile( |
116 | dist => { |
109 | dist => { |
117 | PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
110 | PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
118 | COMPRESS => 'gzip -9v', |
111 | COMPRESS => 'gzip -9v', |
119 | SUFFIX => '.gz', |
112 | SUFFIX => '.gz', |
120 | }, |
113 | }, |
121 | depend => { |
114 | depend => { |
|
|
115 | "EV.c" => "EV/EVAPI.h " |
122 | "EV.c" => "EV/EVAPI.h libev/ev.c libev/ev.h libev/ev_epoll.c libev/ev_select.c", |
116 | . "libev/ev.c libev/ev.h libev/ev_epoll.c libev/ev_select.c " |
|
|
117 | . "libev/event.h libev/event.c libev/evdns.h libev/evdns.c", |
123 | }, |
118 | }, |
124 | INC => "-Ilibev", |
119 | INC => "-Ilibev", |
125 | DEFINE => "$DEFINE", |
120 | DEFINE => "$DEFINE", |
126 | NAME => "EV", |
121 | NAME => "EV", |
127 | LIBS => [$LIBS], |
122 | LIBS => [$LIBS], |