Alien-SDL3

 view release on metacpan or  search on metacpan

builder/Alien.pm  view on Meta::CPAN

        my $self = shift;
        my $p    = path( $self->base_dir )->child('share');
        $p->mkdir;
        $self->share_dir( $p->canonpath );
        my %archives = (
            SDL3       => ['https://github.com/libsdl-org/SDL/archive/refs/heads/main.tar.gz'],
            SDL3_image =>
                ['https://github.com/libsdl-org/SDL_image/archive/refs/heads/main.tar.gz'],
            SDL3_mixer => [
                'https://github.com/libsdl-org/SDL_mixer/archive/refs/heads/main.tar.gz',
                undef,    # flags
                'You may need to install various dev packages (flac, vorbis, opus, etc.)'
            ],
            SDL3_ttf => ['https://github.com/libsdl-org/SDL_ttf/archive/refs/heads/main.tar.gz']
        );
        for my $lib ( sort keys %archives ) {
            if ( !$self->config_data($lib) ) {
                my $store = tempdir()->child( $lib . '.tar.gz' );
                my $build = tempdir()->child('build');
                my $okay  = $self->fetch_source( $archives{$lib}->[0], $store );
                if ( !$okay ) {



( run in 0.251 second using v1.01-cache-2.11-cpan-94b05bcf43c )