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