1 |
root |
1.1 |
use ExtUtils::MakeMaker; |
2 |
|
|
|
3 |
|
|
$|=1; |
4 |
|
|
|
5 |
|
|
print <<EOF; |
6 |
|
|
|
7 |
root |
1.2 |
- irman is an intefrace to the proprietary irman device. |
8 |
|
|
- lirc is an interface to the linux infrared remote control package. |
9 |
|
|
|
10 |
root |
1.3 |
0) no interface |
11 |
|
|
1) irman interfaces (requires libirman) |
12 |
|
|
2) lirc interface (requires liblirc_client) |
13 |
|
|
3) both irman + lirc interfaces |
14 |
root |
1.1 |
|
15 |
|
|
EOF |
16 |
|
|
|
17 |
root |
1.2 |
$ints = prompt "which interfaces to build", 2; |
18 |
root |
1.1 |
|
19 |
|
|
push @DIR, "Irman" if $ints & 1; |
20 |
|
|
push @DIR, "Lirc" if $ints & 2; |
21 |
|
|
|
22 |
|
|
WriteMakefile( |
23 |
root |
1.2 |
dist => { |
24 |
root |
1.1 |
PREOP => 'pod2text RCU.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
25 |
|
|
COMPRESS => 'gzip -9v', |
26 |
|
|
SUFFIX => '.gz', |
27 |
|
|
}, |
28 |
root |
1.2 |
NAME => 'RCU', |
29 |
|
|
VERSION_FROM=> 'RCU.pm', |
30 |
root |
1.1 |
DIR => \@DIR, |
31 |
|
|
); |