Alien-Boost
view release on metacpan or search on metacpan
1.4 2020-08-05 06:57:34 -0600
- Add -lboost_program_options for system install
- Add Test::Alien::Diag to prereqs
- Add Test::Alien to prereqs
1.3 2020-08-05 06:57:34 -0600
- Add Test::Alien::CPP in prereqs
1.2 2020-08-03 06:57:34 -0600
- Add cxxflags=-fPIC
- Add -lboost_program_options
- Remove -lboost
- Filter Boost beta versions from candidates
1.1 2020-07-18 06:57:34 -0600
- initial version link=static
# Test lib AND header inclusion
#use ExtUtils::CppGuess;
#use Devel::CheckLib;
#my $guess = ExtUtils::CppGuess->new;
#my %mb_opts = $guess->module_build_options; # even though not using Module::Build
#check_lib_or_exit(
# lib => 'boost_program_options',
# header => 'boost/program_options.hpp',
# ccflags => $mb_opts{extra_compiler_flags},
# ldflags => $mb_opts{extra_linker_flags}
#);
share {
start_url 'https://www.boost.org/users/download/';
plugin 'Download' => (
filter => qr/^boost_[0-9_]*\.tar\.gz$/,
version => qr/([0-9_]+)/,
);
plugin 'Extract';
build [
'./bootstrap.sh --without-libraries=python',
'./b2 install --prefix=%{.install.prefix} link=static cxxflags=-fPIC',
];
gather sub {
my($build) =@_;
my $prefix = $build->runtime_prop->{prefix};
$build->runtime_prop->{cflags} = "-I$prefix/include";
$build->runtime_prop->{cflags_static} = "-I$prefix/include";
$build->runtime_prop->{libs} = "-L$prefix/lib -lboost_program_options";
$build->runtime_prop->{libs_static} = "-L$prefix/lib -lboost_program_options";
};
};
sys {
gather sub {
my($build) =@_;
( run in 0.692 second using v1.01-cache-2.11-cpan-94b05bcf43c )