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