Alien-SDL2
view release on metacpan or search on metacpan
use strict;
use warnings;
use lib "inc";
use File::Spec::Functions qw(catdir catfile);
use Config;
use My::Utility qw(check_config_script check_prebuilt_binaries check_prereqs_libs check_prereqs_tools $source_packs);
use Getopt::Long;
my ($ans, $travis) = '';
GetOptions ( "travis" => \$travis) ;
print "Welcome to Alien::SDL2 module installation\n";
print "------------------------------------------\n";
print "checking operating system... $^O\n";
$| = 1;
print "checking for $My::Utility::cc... ";
if( !check_prereqs_tools($My::Utility::cc) ) {
print "no\n";
for(qw(gcc cc lc)) {
next if $_ eq \$My::Utility::cc;
print "checking for $_... ";
if( check_prereqs_tools($_) ) {
$My::Utility::cc = $_;
print "yes\n";
last;
}
else {
print "no\n";
}
}
}
else {
print "yes\n";
}
print "checking build system type... $Config{archname}\n";
#### we need the platform-specific module
my %platforms =(
# Unix = default, thus not listing all UNIX like systems
MSWin32 => 'Windows',
);
my $package = 'My::Builder::' . ($platforms{$^O} || 'Unix');
print "checking platform specific module... using '$package'\n";
eval "require $package" or die "Require '$package' failed: $@\n";
my $sdl2_config;
#### Stadard Module::Builder stuff
my $build = $package->new(
module_name => 'Alien::SDL2',
all_from => 'lib/Alien/SDL2.pm',
dist_abstract => 'Get, Build and Use SDL2 libraries',
dist_author => 'Kartik Thakore <KTHAKORE@cpan.org>',
license => 'perl',
requires => {
'File::Spec' => '0',
'File::Temp' => '0.23',
'File::ShareDir' => '0',
'File::Which' => '0',
'ExtUtils::CBuilder' => '0',
'Capture::Tiny' => '0',
'perl' => '5.008000',
},
( run in 1.254 second using v1.01-cache-2.11-cpan-172d661cebc )