Files
src/usr.bin/pkgconf/Makefile
T
Pierre Pronchery b8352da33f pkgconf: import into the base system
This introduces the following option:

* MK_PKGCONF: determines if pkgconf and bomtool should be built

The objective is to allow the creation of SBOM information while
building FreeBSD's src tree. The build system cannot rely on the
presence of bomtool (and eventually also spdxtool) in the build
environment, except for having it as part of the src tree directly.

The framework implementing the generation of SBOM files is under review
in D56474.

This will also help simplifying the build, with the introduction of
another framework relying on the availability of pkgconf.

Sponsored by:		Alpha-Omega, The FreeBSD Foundation
Reviewed by:		bapt, philip
Approved by:		philip (mentor)
Differential Revision:	https://reviews.freebsd.org/D56404
2026-04-22 15:42:56 +02:00

24 lines
542 B
Makefile

PACKAGE= pkgconf
PROG= pkgconf
SRCS= main.c
SRCS+= getopt_long.c
SRCS+= renderer-msvc.c
LIBADD= pkgconf
SYMLINKS= pkgconf ${BINDIR}/pkg-config
PKGCONFDIR= ${SRCTOP}/contrib/pkgconf
CFLAGS+= -Wno-error=missing-variable-declarations
CFLAGS+= -Wno-error=incompatible-pointer-types-discards-qualifiers
CFLAGS+= -Wno-error=cast-qual
CFLAGS+= -DSYSTEM_INCLUDEDIR=\"/usr/include\" -DSYSTEM_LIBDIR=\"/usr/lib\"
CFLAGS+= -I${SRCTOP}/lib/libpkgconf -I${PKGCONFDIR}
.PATH: ${PKGCONFDIR}/cli
.PATH: ${PKGCONFDIR}/man
.include <bsd.prog.mk>