@scripts
=
grep
{-f }
glob
(
"scripts/*.*"
);
@theselibs
=
grep
{-f }
glob
(
"lib/Font/TTF/*"
);
push
(
@ExtUtils::MakeMaker::Overridable
,
qw(pm_to_blib)
)
if
($^O eq
'MSWin32'
);
WriteMakefile (
NAME
=>
"Font::TTF"
,
VERSION_FROM
=>
"lib/Font/TTF/Font.pm"
,
EXE_FILES
=> \
@scripts
,
AUTHOR
=>
"martin_hosken\@sil.org"
,
ABSTRACT
=>
"TTF font support for Perl"
,
dist
=> {
'TO_UNIX'
=>
'perl -Mtounix -e "tounix(\"$(DISTVNAME)\")"'
}
);
if
($^O eq
'MSWin32'
) {
sub
MY::pm_to_blib
{
my
$self
=
shift
;
my
(
$autodir
) =
$self
->catdir(
'$(INST_LIB)'
,
'auto'
);
return
<<"EOT";
pm_to_blib: \$(TO_INST_PM)
\t$self->{NOECHO}\$(PERL) \"-I\$(INST_ARCHLINE)\" \"-I\$(INST_LIB)\" \\
\t\"-I\$(PERL_ARCHLIB)\" \"-I\$(PERL_LIB)\" -MExtUtils::Install \\
\t-e \"pm_to_blib({ qw[\$(PM_TO_BLIB)] }, '$autodir')
\t$self->{NOECHO}\$(TOUCH) \$@
EOT
}
}