[BACK]Return to builtin.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / atf

File: [cvs.NetBSD.org] / pkgsrc / devel / atf / builtin.mk (download)

Revision 1.1, Thu Jun 8 13:30:16 2017 UTC (4 years, 4 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, HEAD

Detect built-in ATF on the system.

ATF is discovered by looking for the lib/pkgconfig/atf-sh.pc
pkg-config file in the base system.

# $NetBSD: builtin.mk,v 1.1 2017/06/08 13:30:16 jlam Exp $

BUILTIN_PKG:=		atf
PKGCONFIG_BASE.atf=	/usr
PKGCONFIG_FILE.atf=	${PKGCONFIG_BASE.atf}/lib/pkgconfig/atf-sh.pc

.include "../../mk/buildlink3/pkgconfig-builtin.mk"

CHECK_BUILTIN.atf?=	no
.if !empty(CHECK_BUILTIN.atf:M[nN][oO])
.  if !empty(USE_BUILTIN.atf:M[yY][eE][sS])
BUILDLINK_PREFIX.atf=	${PKGCONFIG_BASE.atf}
BUILDLINK_FILES.atf+=	lib/pkgconfig/atf-c++.pc
BUILDLINK_FILES.atf+=	lib/pkgconfig/atf-c.pc
BUILDLINK_FILES.atf+=	lib/pkgconfig/atf-sh.pc
.  endif
.endif	# CHECK_BUILTIN.atf