pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/compiler Allow DISTCC_HOSTS and DISTCC_SSH to be se...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4e6ee016733b
branches:  trunk
changeset: 471075:4e6ee016733b
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Mar 17 05:23:05 2004 +0000

description:
Allow DISTCC_HOSTS and DISTCC_SSH to be set in /etc/mk.conf to modify the
behaviour of distcc when used in the compiler framework.

diffstat:

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

diffs (23 lines):

diff -r 2dfd18ccf00c -r 4e6ee016733b mk/compiler/distcc.mk
--- a/mk/compiler/distcc.mk     Wed Mar 17 04:49:48 2004 +0000
+++ b/mk/compiler/distcc.mk     Wed Mar 17 05:23:05 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: distcc.mk,v 1.17 2004/02/18 13:32:38 jlam Exp $
+# $NetBSD: distcc.mk,v 1.18 2004/03/17 05:23:05 jlam Exp $
 
 .if !defined(COMPILER_DISTCC_MK)
 COMPILER_DISTCC_MK=    defined
@@ -61,6 +61,13 @@
 # Add the dependency on distcc.
 BUILD_DEPENDS+=        distcc-[0-9]*:../../devel/distcc
 
+.if defined(DISTCC_HOSTS) && !empty(DISTCC_HOSTS)
+BUILD_ENV+=    DISTCC_HOSTS=${DISTCC_HOSTS:Q}
+.endif
+.if defined(DISTCC_SSH) && !empty(DISTCC_SSH)
+BUILD_ENV+=    DISTCC_SSH=${DISTCC_SSH:Q}
+.endif
+
 # Create symlinks for the compiler into ${WRKDIR}.
 .  if exists(${_DISTCCBASE}/bin/distcc)
 .    for _target_ in ${_DISTCC_LINKS}



Home | Main Index | Thread Index | Old Index