pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/tools Generate a log file in the work directory wit...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bd5294dcc7fc
branches:  trunk
changeset: 500037:bd5294dcc7fc
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Sat Oct 01 12:55:20 2005 +0000

description:
Generate a log file in the work directory with all calls to pkg-config so
that we can later use them to sanity check the package dependencies.
Requires pkg-config 0.19nb1 to work but does no harm with older versions.

diffstat:

 mk/tools/pkg-config.mk |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 61b1a9406d14 -r bd5294dcc7fc mk/tools/pkg-config.mk
--- a/mk/tools/pkg-config.mk    Sat Oct 01 12:52:16 2005 +0000
+++ b/mk/tools/pkg-config.mk    Sat Oct 01 12:55:20 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: pkg-config.mk,v 1.2 2005/08/16 13:32:00 jlam Exp $
+# $NetBSD: pkg-config.mk,v 1.3 2005/10/01 12:55:20 jmmv Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -40,11 +40,23 @@
 # pkg-config wrapper script.
 #
 _PKG_CONFIG_LIBDIR?=   ${BUILDLINK_DIR}/lib/pkgconfig
+_PKG_CONFIG_LOG?=      ${WRKDIR}/.pkg-config.log
 
 TOOLS_SCRIPT.pkg-config=       \
        PKG_CONFIG_LIBDIR=${_PKG_CONFIG_LIBDIR:Q} ${TOOLS_SCRIPT_DFLT.pkg-config}
 
 CONFIGURE_ENV+=        PKG_CONFIG=${TOOLS_CMD.pkg-config:Q}
 CONFIGURE_ENV+=        PKG_CONFIG_LIBDIR=${_PKG_CONFIG_LIBDIR:Q}
+CONFIGURE_ENV+=        PKG_CONFIG_LOG=${_PKG_CONFIG_LOG}
 MAKE_ENV+=     PKG_CONFIG=${TOOLS_CMD.pkg-config:Q}
 MAKE_ENV+=     PKG_CONFIG_LIBDIR=${_PKG_CONFIG_LIBDIR:Q}
+MAKE_ENV+=     PKG_CONFIG_LOG=${_PKG_CONFIG_LOG}
+
+.if !empty(PKG_DEVELOPER:M[Yy][Ee][Ss])
+post-build: pkgconfig-post-build
+
+pkgconfig-post-build:
+       @if ${TEST} -f ${_PKG_CONFIG_LOG}; then \
+               ${ECHO} "*** Please use pkgtools/verifypc to sanity check dependencies."; \
+       fi
+.endif



Home | Main Index | Thread Index | Old Index