pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/atf Detect built-in ATF on the system.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/545fa74fecfc
branches:  trunk
changeset: 363426:545fa74fecfc
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Jun 08 13:30:16 2017 +0000

description:
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.

diffstat:

 devel/atf/builtin.mk |  17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diffs (21 lines):

diff -r 41f88640fb73 -r 545fa74fecfc devel/atf/builtin.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/atf/builtin.mk      Thu Jun 08 13:30:16 2017 +0000
@@ -0,0 +1,17 @@
+# $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



Home | Main Index | Thread Index | Old Index