summaryrefslogtreecommitdiff
path: root/mk/tools
diff options
context:
space:
mode:
authortnn <tnn>2008-02-29 00:23:09 +0000
committertnn <tnn>2008-02-29 00:23:09 +0000
commitef1946068c89e3716f6c6557519a209a0306c563 (patch)
tree7fd66624495d66cb175d2fdd01f0a63d3f0c8179 /mk/tools
parent59ba07e4ed4501d4d96ffe305c5ea6e6665bec17 (diff)
downloadpkgsrc-ef1946068c89e3716f6c6557519a209a0306c563.tar.gz
Make chrpath(1) a tool. Intended scope is fixing up some Linux emulation
packages without having to do the LD_LIBRARY_PATH dance.
Diffstat (limited to 'mk/tools')
-rw-r--r--mk/tools/replace.mk13
1 files changed, 12 insertions, 1 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk
index 3dd5231df82..1039e85f7d2 100644
--- a/mk/tools/replace.mk
+++ b/mk/tools/replace.mk
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.208 2008/02/13 18:33:39 tnn Exp $
+# $NetBSD: replace.mk,v 1.209 2008/02/29 00:23:09 tnn Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -283,6 +283,17 @@ TOOLS_PATH.bzcat= ${TOOLS_PREFIX.${_t_}}/bin/${_t_}
. endif
.endfor
+.if !defined(TOOLS_IGNORE.chrpath) && !empty(_USE_TOOLS:Mchrpath)
+. if !empty(PKGPATH:Mdevel/chrpath)
+MAKEFLAGS+= TOOLS_IGNORE.chrpath=
+. elif !empty(_TOOLS_USE_PKGSRC.chrpath:M[yY][eE][sS])
+TOOLS_DEPENDS.chrpath?= chrpath>=0.13:../../devel/chrpath
+TOOLS_CREATE+= chrpath
+TOOLS_FIND_PREFIX+= TOOLS_PREFIX.chrpath=chrpath
+TOOLS_PATH.chrpath= ${TOOLS_PREFIX.chrpath}/bin/chrpath
+. endif
+.endif
+
.for _t_ in cmake cpack
. if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_})
. if !empty(PKGPATH:Mdevel/cmake)