Alien-Wslay

 view release on metacpan or  search on metacpan

alienfile  view on Meta::CPAN

use alienfile;

probe sub { $_[0]->runtime_prop->{ffi_name} = 'wslay' };
plugin qw'Probe::CBuilder libs -lwslay';

share {
    plugin qw'Download::GitHub github_user tatsuhiro-t github_repo wslay asset 1';
    # plugin qw'Extract tar.gz';
    plugin 'Build::Autoconf';
    build ['%{configure}', '%{make}', '%{make} install'];
    plugin 'Gather::IsolateDynamic';
    gather sub {
        my ($build) = @_;
        my $prefix = $build->runtime_prop->{prefix};
        $build->runtime_prop->{cflags} = "-I$prefix/include ";
        $build->runtime_prop->{libs} = "-L$prefix/lib -lwslay "; }
};



( run in 0.813 second using v1.01-cache-2.11-cpan-140bd7fdf52 )