|
NAMEPkgConfig::LibPkgConf - Interface to .pc file interface via libpkgconfSYNOPSISuse PkgConfig::LibPkgConf; if(pkgconf_exists('libarchive')) { my $version = pkgconf_version('libarchive'); my $cflags = pkgconf_cflags('libarchive'); my $libs = pkgconf_libs('libarchive'); } DESCRIPTIONMany libraries in compiled languages such as C or C++ provide ".pc" files to specify the flags required for compiling and linking against those libraries. Traditionally, the command line program "pkg-config" is used to query these files. This module provides a Perl level API using "libpkgconf" to these files.This module provides a simplified interface for getting the existence, version, cflags and library flags needed for compiling against a package, using the default compiled in configuration of "pkgconf". For a more powerful, but complicated interface see PkgConfig::LibPkgConf::Client. In addition, PkgConfig::LibPkgConf::Util provides some useful utility functions that are also provided by "pkgconf". FUNCTIONSpkgconf_existsmy $bool = pkgconf_exists $package_name; Returns true if the package is available. Exported by default. pkgconf_versionmy $version = pkgconf_version $package_name; Returns the version of the package, if it exists. Will throw an exception if not found. Exported by default. pkgconf_cflagsmy $cflags = pkgconf_cflags $package_name; Returns the compiler flags for the package, if it exists. Will throw an exception if not found. Exported by default. pkgconf_cflags_staticmy $cflags = pkgconf_cflags_static $package_name; Returns the static compiler flags for the package, if it exists. Will throw an exception if not found. pkgconf_libsmy $libs = pkgconf_libs $package_name; Returns the linker library flags for the package, if it exists. Will throw an exception if not found. Exported by default. pkgconf_libs_staticmy $libs = pkgconf_libs_static $package_name; Returns the static linker library flags for the package, if it exists. Will throw an exception if not found. SUPPORTIRC #native on irc.perl.orgProject GitHub tracker: <https://github.com/plicease/PkgConfig-LibPkgConf/issues> If you want to contribute, please open a pull request on GitHub: <https://github.com/plicease/PkgConfig-LibPkgConf/pulls> SEE ALSOThe best entry point to the low level "pkgconf" interface can be found via PkgConfig::LibPkgConf::Client.Alternatives include:
ACKNOWLEDGMENTSThanks to the "pkgconf" developers for their efforts:<https://github.com/pkgconf/pkgconf/graphs/contributors> AUTHORGraham OllisContributors: A. Wilcox (awilfox) Petr Pisar (ppisar) COPYRIGHT AND LICENSEThis 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.
Visit the GSP FreeBSD Man Page Interface. |