Alien-Build
view release on metacpan or search on metacpan
example/bzip2.alienfile view on Meta::CPAN
use alienfile;
use Path::Tiny qw( path );
# Because bzip2 does not come with a pkg-config compatible .pc file
# we use the CBuilder plugin to guess the appropriate flags
# (usually just libs=-lbz2):
plugin 'Probe::CBuilder' => (
libs => '-lbz2',
# The version regex here will attempt to parse out the
# bzip2 version number from the output of the test program below.
version => qr/version = '(.*?)[,']/,
# Both the test program and the version regex are optional, but
# if you do not provide them, then you should provide a
lib/Alien/Build/Plugin/Probe/CBuilder.pm view on Meta::CPAN
use strict;
use warnings;
use 5.008004;
use Alien::Build::Plugin;
use File::chdir;
use File::Temp ();
use Capture::Tiny qw( capture_merged capture );
use Alien::Util qw( version_cmp );
# ABSTRACT: Probe for system libraries by guessing with ExtUtils::CBuilder
our $VERSION = '2.84'; # VERSION
has options => sub { {} };
has cflags => '';
has libs => '';
lib/Alien/Build/Plugin/Probe/CBuilder.pm view on Meta::CPAN
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Alien::Build::Plugin::Probe::CBuilder - Probe for system libraries by guessing with ExtUtils::CBuilder
=head1 VERSION
version 2.84
=head1 SYNOPSIS
use alienfile;
plugin 'Probe::CBuilder' => (
cflags => '-I/opt/libfoo/include',
( run in 0.216 second using v1.01-cache-2.11-cpan-702932259ff )