pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/tools mk: if pkg-config is not in USE_TOOLS, create...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f1715908458c
branches:  trunk
changeset: 382207:f1715908458c
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Jul 22 22:31:58 2022 +0000

description:
mk: if pkg-config is not in USE_TOOLS, create a false(1) wrapper for it

diffstat:

 mk/tools/replace.mk |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 9953605f5968 -r f1715908458c mk/tools/replace.mk
--- a/mk/tools/replace.mk       Fri Jul 22 22:25:08 2022 +0000
+++ b/mk/tools/replace.mk       Fri Jul 22 22:31:58 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.293 2022/01/06 10:19:11 schmonz Exp $
+# $NetBSD: replace.mk,v 1.294 2022/07/22 22:31:58 wiz Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -680,6 +680,13 @@
 .  else
 AUTORECONF_ARGS+=              -I ${TOOLS_PLATFORM.pkg-config:S/\/bin\/pkg-config//}/share/aclocal
 .  endif
+.else
+#
+# If a package doesn't explicitly say it uses pkg-config, create a
+# "broken" pkg-config in the tools directory.
+#
+TOOLS_FAIL+=                   pkg-config
+TOOLS_PATH.pkg-config=         ${TOOLS_CMD.pkg-config}
 .endif
 
 .if !defined(TOOLS_IGNORE.rpm2pkg) && !empty(_USE_TOOLS:Mrpm2pkg)



Home | Main Index | Thread Index | Old Index