Alien-SDL2
view release on metacpan or search on metacpan
}
}
#### check what options we have for our platform
my $rv;
my @candidates = ();
# sdl2-config script
push @candidates, $rv if $rv = check_config_script("sdl2-config");
if( $build->can_build_binaries_from_sources || scalar(@candidates) ) {
for(qw(pthread SDL2
z jpeg tiff png SDL2_image
ogg vorbis vorbisfile SDL2_mixer
freetype SDL2_ttf
SDL2_gfx)) {
$have_libs{$_} = check_prereqs_libs($_);
}
}
# prebuilt binaries (windows only)
push @candidates, @{$rv} if $rv = check_prebuilt_binaries($build->os_type);
inc/My/Builder.pm view on Meta::CPAN
# '*SDL2*' that did not pass previous test is probably core 'SDL2'
$shlib_map{SDL2} = $full unless $shlib_map{SDL2};
}
};
$cfg->{ld_shared_libs} = [ @shlibs ];
$cfg->{ld_paths} = [ keys %tmp ];
$cfg->{ld_shlib_map} = \%shlib_map;
my $have_libs = $self->notes('have_libs');
for(qw(pthread z jpeg tiff png ogg vorbis vorbisfile freetype
pangoft2 pango gobject gmodule glib fontconfig expat )) {
if( !$shlib_map{$_} && $have_libs->{$_}->[0] ) {
next unless defined $have_libs->{$_}->[1];
push @{ $cfg->{ld_shared_libs} }, $have_libs->{$_}->[1];
$shlib_map{$_} = $have_libs->{$_}->[1];
}
}
$self->config_data('config', $cfg);
}
inc/My/Utility.pm view on Meta::CPAN
{
pack => 'SDL2',
version => '2.0.0',
dirname => 'SDL2-2.0.0',
url => [
'http://www.libsdl.org/release/SDL2-2.0.0.tar.gz',
'http://strawberryperl.com/package/kmx/sdl/src/SDL2-2.0.0.tar.gz',
],
sha1sum => 'a907eb5203abad6649c1eae0120d96c0a1931350',
patches => [],
prereq_libs => ['pthread'],
},
{
pack => 'SDL2_image',
version => '2.0.0',
dirname => 'SDL2_image-2.0.0',
url => [
'http://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.0.tar.gz',
'http://strawberryperl.com/package/kmx/sdl/src/SDL2_image-2.0.0.tar.gz',
],
sha1sum => '20b1b0db9dd540d6d5e40c7da8a39c6a81248865',
inc/My/Utility.pm view on Meta::CPAN
}
if($found_lib && $found_inc) {
print "yes\n";
$ret &= 1;
}
else {
print "no\n";
$ret = 0;
}
warn "###ERROR### Can't find $lib, will not compile libSDL2" if ($lib =~ 'pthread' && $ret == 0);
if( scalar(@libs) == 1 ) {
return $ret
? [(get_header_version($found_inc) || 'found'), $found_dll]
: [0, undef];
}
}
return $ret;
}
( run in 0.375 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )