Alien-SDL2
view release on metacpan or search on metacpan
184185186187188189190191192193194195196197198199200201202203204
if
(
$c
->{buildtype} eq
'use_config_script'
) {
$c
->{title} .=
"\n "
;
for
(
qw(SDL2 SDL2_image SDL2_mixer SDL2_ttf SDL2_gfx)
) {
$c
->{title} .=
"$_(v$have_libs{$_}->[0]) "
if
$have_libs
{
$_
}[0];
}
}
$prompt_string
.=
"["
.
$i
++ .
"] "
.
$c
->{title} .
"\n"
;
}
# select option '1' for travis
if
(
$travis
== 1) {
$ans
= 1;
#set 'travis' var for inc/My/Builder.pm
$build
->notes(
'travis'
,
'1'
);
}
# or prompt user for build option
else
{
$prompt_string
.=
"\nWhat way do you wanna go?"
;
$ans
=
$build
->prompt(
$prompt_string
,
$recommended_candidate
);
inc/My/Builder.pm view on Meta::CPAN
102103104105106107108109110111112113114115116117118119120121122
$self
->fetch_binaries(
$download
);
$self
->clean_dir(
$build_out
);
$self
->extract_binaries(
$download
,
$build_out
);
$self
->set_config_data(
$build_out
);
$self
->set_ld_config(
$build_out
);
}
elsif
(
$bp
->{buildtype} eq
'build_from_sources'
) {
my
$m
=
''
;
if
(
$self
->notes(
'travis'
) &&
$self
->notes(
'travis'
) == 1 ) {
# always select option '1'
$m
= 1;
}
else
{
$m
=
$self
->prompt(
"\nDo you want to see all messages during configure/make (y/n)?"
,
'n'
);
}
$self
->notes(
'build_msgs'
,
lc
(
$m
) eq
'y'
? 1 : 0);
( run in 1.290 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )