Files
src/lib/libpkgconf/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

28 lines
985 B
Makefile

PKGCONFDIR= ${SRCTOP}/contrib/pkgconf
PACKAGE= pkgconf
PRIVATELIB= yes
LIB= pkgconf
MAN= pkg.m4.7
MANNODEV= pc.5
MANNODEV+= pkgconf-personality.5
SRCS= audit.c buffer.c cache.c client.c pkg.c bsdstubs.c fragment.c
SRCS+= argvsplit.c fileio.c tuple.c dependency.c queue.c
SRCS+= path.c personality.c parser.c
INCS= bsdstubs.h iter.h libpkgconf-api.h libpkgconf.h stdinc.h
CFLAGS+= -Wno-error=cast-align
CFLAGS+= -Wno-error=cast-qual
CFLAGS+= -Wno-error=incompatible-pointer-types-discards-qualifiers
CFLAGS+= -DPERSONALITY_PATH=\"/usr/share/pkgconfig/personality.d:/etc/pkgconfig/personality.d:${LOCALBASE:U}/etc/pkgconfig/personality.d\"
CFLAGS+= -DPKG_DEFAULT_PATH=\"${LOCALBASE:U}/libdata/pkgconfig:/usr/libdata/pkgconfig:${LOCALBASE:U}/share/pkgconfig\"
CFLAGS+= -DSYSTEM_INCLUDEDIR=\"/usr/include\"
CFLAGS+= -DSYSTEM_LIBDIR=\"/usr/lib\"
CFLAGS+= -I${SRCTOP}/lib/libpkgconf -I${PKGCONFDIR}
.PATH: ${PKGCONFDIR}/libpkgconf
.PATH: ${PKGCONFDIR}/man
.include <bsd.lib.mk>