text stringlengths 0 834k |
|---|
Currently this only works with GCC-supplied C<ld> and GNU C<ld>. |
=head2 INSTALL |
The C<Makefile.PL> that comes with C<PkgConfig> can take one or more C<--script> |
options to change of the name of the script or scripts that are installed. |
=over 4 |
=item --script ppkg-config |
This is the default and works on all platforms |
=item --script pkg-config.pl |
This is installed by default on all platforms except for Windows, where the .pl |
may confuse the shell and cause the script to be opened in a text editor. |
=item --script pkg-config |
This is the default name of the real C<pkg-config> and so you have to specifically |
enable it if you want it. |
=item --script none |
Don't install any scripts. |
=back |
Example, install all script names: |
% perl Makefile.PL --script ppkg-config --script pkg-config.pl --script pkg-config |
Example, don't install any scripts: |
% perl Makefile.PL --script none |
You can also set the environment variable PERL_PKG_CONFIG_SCRIPTS to the |
desired --script value (separating each script name with a comma C<,>) to |
ensure that upgrades of PkgConfig do the same. |
=head2 CAVEATS |
On Strawberry Perl C<ppkg-config> acts like Strawberry is the system. |
This means that |
=over 4 |
=item |
The .pc files that are bundled with Strawberry are searched by default. |
=item |
The Strawberry include and lib directories are used to compute the |
exclusion lists. |
=back |
As of Strawberry 5.20.0.1 PkgConfig is bundled with Strawberry and |
C<pkg-config> is installed by default (in addition to C<ppkg-config>, |
though the C<ppkg-config> alias is NOT bundled with Strawberry itself). |
For details on how to patch the .pc files bundled with older Strawberries, |
see the C<README.win32> that comes with this Distribution. |
=head2 BUGS |
The order of the flags is not exactly matching to that of C<pkg-config>. From my |
own observation, it seems this module does a better job, but I might be wrong. |
Unlike C<pkg-config>, the scripts C<--exists> function will return nonzero if |
a package B<or> any of its dependencies are missing. This differs from the |
behavior of C<pkg-config> which will just check for the definition of the |
package itself (without dependencies). |
=head1 SEE ALSO |
=over 4 |
=item L<pkg-config|http://www.freedesktop.org/wiki/Software/pkg-config> |
The original C implementation |
=item L<pkgconf|https://github.com/pkgconf/pkgconf> |
An alternative C implementation |
=item L<PkgConfig::LibPkgConf> |
Perl bindings for C<libpkgconf>, the same library that C<pkgconf> is built on. |
=item L<ExtUtils::PkgConfig> |
A wrapper around the C<pkg-config> binary that can be used in your C<Makefile.PL> |
or C<Build.PL>. |
=item L<http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/pkg-config/> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.