Alien::libdeflate - Fetch/build/stash the libdeflate headers and libs for libdeflate
In your Makefile.PL with ExtUtils::MakeMaker.
Makefile.PL
use Alien::libdeflate; use ExtUtils::MakeMaker; use Alien::Base::Wrapper qw( Alien::libdeflate !export ); use Config; WriteMakefile( # ... Alien::Base::Wrapper->mm_args, # ... );
In your script or module.
use Alien::libdeflate; use Env qw( @PATH ); unshift @PATH, Alien::libdeflate->bin_dir;
Download, build, and install the libdeflate C headers and libraries into a well-known location, Alien::libdeflate->dist_dir, from whence other packages can make use of them.
Alien::libdeflate->dist_dir
The version installed will be the latest release on the master branch from the libdeflate GitHub repository.
If libdeflate is installed system wide in an alternate location than the default search paths, set this variable to add the include directory using -I/path/to/system/libdeflate/include
-I/path/to/system/libdeflate/include
If libdeflate is installed system wide in an alternate location than the default search paths, set this variable to add the lib directory using -L/path/to/system/libdeflate/lib
-L/path/to/system/libdeflate/lib
Roy Storey (kiwiroy@cpan.org)
Zakariyya Mughal <zmughal@cpan.org>
To install Alien::libdeflate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alien::libdeflate
CPAN shell
perl -MCPAN -e shell install Alien::libdeflate
For more information on module installation, please visit the detailed CPAN module installation guide.