HomeFreeBSD

MFC: libbz2: add pkg-config file (bzip2.pc)

Description

MFC: libbz2: add pkg-config file (bzip2.pc)

Add generation of a bzip2.pc file for use with pkg-config and create
a basic template as bzip2.pc.in.

This allows other software to easily locate and link against libbz2
using standard pkg-config mechanisms instead of manual compiler and
linker flags.

The version number is extracted automatically from bzlib.h to keep
it consistent with the library sources.

Approved by: re (cperciva)
Tested: pkg-config --exists --print-errors "bzip2 >= 1.0.9" (fail, expected)
pkg-config --exists --print-errors "bzip2 >= 1.0" (succeeded)
pkg-config --libs bzip2 (-lbz2)
pkg-config --cflags bzip2 ()

(cherry picked from commit 586319793368cbc664b48187bda60d27e171753a)
(cherry picked from commit f139a644d3ee01667480ff6d698757d3e3689794)

Details

Provenance
delphijAuthored on Oct 10 2025, 5:35 AM
cpercivaCommitted on Oct 13 2025, 3:28 PM
Parents
rGab0d79d53721: libbluetooth: Move to the bluetooth-lib package
Branches
Unknown
Tags
Unknown