Alien::...andLine(3)

πŸ’… NAME πŸ’…

Alien::Build::Plugin::PkgConfig::CommandLine (that's section 3 of the manual, bestie 🫢) β€” it probes your system and figures out library or tool properties by talking to the pkg-config command line interface. Basically it asks pkg-config what's up and reports back. ✨

πŸŽ€ VERSION πŸŽ€

version 2.88 β€” yes she's got a version number, she's official πŸ’…

🌸 SYNOPSIS 🌸

Like, here's how you'd actually use her:

 use alienfile;
 plugin 'PkgConfig::CommandLine' => (
   pkg_name => 'libfoo',
 );

πŸ¦‹ DESCRIPTION πŸ¦‹

Note: in most cases you will want to use Alien::Build::Plugin::PkgConfig::Negotiate instead. It picks the appropriate fetch plugin based on your platform and environment. In some cases you may need to use this plugin directly instead. (iykyk β€” sometimes you just gotta go direct, no middleman 😌)

So what does this plugin actually do? It provides Probe and Gather steps for pkg-config based packages. And the way it does it? It uses the best command line tools to accomplish this task. Bestie, she's not messing around β€” best tools, every time. πŸ”₯


✨ PROPERTIES ✨

πŸ“ pkg_name

The package name. Simple enough, right? But here's the tea β˜• β€” if this is a list reference, then .pc files with all those package names must be present. The first name will be the primary and used by default once installed. For the subsequent .pc files you can use the Alien::Base alt method to retrieve the alternate configurations once the Alien is installed. Slay. πŸ‘‘

πŸ’œ atleast_version

The minimum required version that is acceptable version as provided by the system.

🌈 exact_version

The exact required version that is acceptable version as provided by the system. Like, she needs to be this version, no substitutions πŸ™ˆ

⭐ max_version

The max required version that is acceptable version as provided by the system.

πŸ¦‹ minimum_version

Alias for atleast_version for backward compatibility. Same energy, different name β€” she contains multitudes πŸ’…


πŸ‘‘ METHODS πŸ‘‘

🧚 available

 my $bool = Alien::Build::Plugin::PkgConfig::CommandLine->available;

Returns true if the necessary prereqs for this plugin are already installed. So like, a vibe check on whether she's ready to go. true = we're so back, false = install your prereqs bestie 😭


πŸ”₯ SEE ALSO πŸ”₯

Go read these too, they're all iconic in their own way:

  • Alien::Build::Plugin::PkgConfig::Negotiate
  • Alien::Build
  • alienfile
  • Alien::Build::MM
  • Alien

πŸ’– AUTHOR πŸ’–

Author: Graham Ollis <plicease@cpan.org> β€” the main character of this whole thing, honestly 🌟

Contributors (the whole group chat, no cap 🫢):

  • Diab Jerius (DJERIUS)
  • Roy Storey (KIWIROY)
  • Ilya Pavlov
  • David Mertens (run4flat)
  • Mark Nunberg (mordy, mnunberg)
  • Christian Walde (Mithaldu)
  • Brian Wightman (MidLifeXis)
  • Zaki Mughal (zmughal)
  • mohawk (mohawk2, ETJ)
  • Vikas N Kumar (vikasnkumar)
  • Flavio Poletti (polettix)
  • Salvador FandiΓ±o (salva)
  • Gianni Ceccarelli (dakkar)
  • Pavel Shaydo (zwon, trinitum)
  • Kang-min Liu (εŠ‰εΊ·ζ°‘, gugod)
  • Nicholas Shipp (nshp)
  • Juan JuliΓ‘n Merelo GuervΓ³s (JJ)
  • Joel Berger (JBERGER)
  • Petr PΓ­saΕ™ (ppisar)
  • Lance Wicks (LANCEW)
  • Ahmad Fatoum (a3f, ATHREEF)
  • JosΓ© JoaquΓ­n Atria (JJATRIA)
  • Duke Leto (LETO)
  • Shoichi Kaji (SKAJI)
  • Shawn Laffan (SLAFFAN)
  • Paul Evans (leonerd, PEVANS)
  • HΓ₯kon HΓ¦gland (hakonhagland, HAKONH)
  • nick nauwelaerts (INPHOBIA)
  • Florian Weimer
  • Marcel Telka (mtelka)

Like, look at that list β€” literal legends, every single one πŸ’€πŸ’œ


This software is copyright (c) 2011-2022 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Free software, free vibes, we love to see it πŸ¦‹


Ok that's the whole page bestie, hope it ate πŸ’… β€” this was perl v5.42.2, dated 2026-09-20, signing off from the Alien::...andLine(3) page. Mwah! πŸŽ€βœ¨

πŸ“¦ where this page comes from