Alien::pkgconf - Discover or download and install pkgconf + libpkgconf
use Alien::pkgconf; my $cflags = Alien::pkgconf->cflags; my $libs = Alien::pkgconf->libs;
This module provides you with the information that you need to invoke pkgconf or link against libpkgconf. It isn't intended to be used directly, but rather to provide the necessary package by a CPAN module that needs libpkgconf, such as PkgConfig::LibPkgConf.
pkgconf
libpkgconf
my $cflags = Alien::pkgconf->cflags;
The compiler flags for compiling against libpkgconf.
my $libs = Alien::pkgconf->libs;
The linker flags for linking against libpkgconf.
my($dll) = Alien::pkgconf->dynamic_libs;
The .so, .dll or .dynlib shared or dynamic library which can be used via FFI.
.so
.dll
.dynlib
my $version = Alien::pkgconf->version;
The libpkgconf version.
my($dir) = Alien::pkgconf->bin_dir;
The directory where you can find pkgconf. If it is not already in the PATH. Adding this to PATH should make tools that require pkgconf work.
PATH
my $type = Alien::pkgconf->install_type;
The type of install, should be either share or system.
share
system
%{pkgconf}
The name of the pkgconf binary. This is usually just pkgconf.
You may need to have the GNU version of nm installed, which comes with GNU binutils.
Thanks to the pkgconf developers for their efforts:
https://github.com/pkgconf/pkgconf/graphs/contributors
Graham Ollis
Contributors:
Thibault Duponchelle (tib)
This software is copyright (c) 2016 Graham Ollis.
This is free software; you may redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Alien::pkgconf, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alien::pkgconf
CPAN shell
perl -MCPAN -e shell install Alien::pkgconf
For more information on module installation, please visit the detailed CPAN module installation guide.