Alien-Libbz2

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

NAME

    Alien::Libbz2 - Build and make available bz2

VERSION

    version 0.24

SYNOPSIS

    In your Build.PL:

     use Module::Build;
     use Alien::Libbz2;
     my $builder = Module::Build->new(
       ...
       configure_requires => {
         'Alien::Libbz2' => '0',
         ...
       },
       extra_compiler_flags => Alien::Libbz2->cflags,
       extra_linker_flags   => Alien::Libbz2->libs,
       ...
     );
     
     $build->create_build_script;

    In your Makefile.PL:

     use ExtUtils::MakeMaker;
     use Config;
     use Alien::Libbz2;
     
     WriteMakefile(
       ...
       CONFIGURE_REQUIRES => {
         'Alien::Libbz2' => '0',
       },
       CCFLAGS => Alien::Libbz2->cflags . " $Config{ccflags}",
       LIBS    => [ Alien::Libbz2->libs ],
       ...
     );

    In your FFI::Platypus script or module:

     use FFI::Platypus;
     use Alien::Libbz2;
     
     my $ffi = FFI::Platypus->new(
       lib => [ Alien::Libbz2->dynamic_libs ],
     );

    In your script or module:

     use Alien::Libbz2;
     use Env qw( @PATH );
     
     unshift @PATH, Alien::Libbz2->bin_dir;

DESCRIPTION

    This Alien module provides the necessary compiler and linker flags
    needed for using libbz2 in XS.

METHODS

 cflags



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