Alien-SDL3_image
view release on metacpan or search on metacpan
lib/Alien/SDL3_image.pm view on Meta::CPAN
sub {
my ( $path, $state ) = @_;
$state->{$path}++ if $path =~ m[\.$Config{so}([-\.][\d\.]+)?$];
},
{ recurse => 1 }
);
keys %$files;
}
sub features ( $self, $feature //= () ) {
CORE::state $config //= sub {
my %h;
my $section = '';
for ( $base->child('.config')->lines ) {
s/^\s+|\s+$//g;
next if m/^;|^$/;
if (m/^\[(.+)\]$/) { $section = $1 }
elsif (m/^(.+?)\s*=\s*(.*)$/) { $h{$section}{$1} = $2 }
}
\%h;
}
->();
return $config->{$feature} if defined $feature;
$config;
}
}
1;
=encoding utf-8
=head1 NAME
Alien::SDL3_image - Build and install SDL3_image
=head1 SYNOPSIS
use Alien::SDL3_image; # Don't.
=head1 DESCRIPTION
Alien::SDL3_image builds and installs L<SDL2_image|https://github.com/libsdl-org/SDL_image/>.
It is not meant for direct use. Just ignore it for now.
=head1 METHODS
=head2 C<dynamic_libs( )>
my @libs = Alien::SDL3_image->dynamic_libs;
Returns a list of the dynamic library or shared object files.
=head1 Prerequisites
Depending on your platform, certain development dependencies must be present.
These are required for building C<SDL2_image> for image loading support:
Linux (Debian/Ubuntu):
$ sudo apt-get install libpng-dev libjpeg-dev libwebp-dev
macOS (using Homebrew):
$ brew install libpng jpeg-turbo libwebp
=head1 LICENSE
Copyright (C) Sanko Robinson.
This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License
2. Other copyrights, terms, and conditions may apply to data transmitted through this module.
=head1 AUTHOR
Sanko Robinson E<lt>sanko@cpan.orgE<gt>
=cut
( run in 3.147 seconds using v1.01-cache-2.11-cpan-df04353d9ac )