pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/tools Make chrpath(1) a tool. Intended scope is fix...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e38329f2c0ac
branches:  trunk
changeset: 539156:e38329f2c0ac
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri Feb 29 00:23:09 2008 +0000

description:
Make chrpath(1) a tool. Intended scope is fixing up some Linux emulation
packages without having to do the LD_LIBRARY_PATH dance.

diffstat:

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

diffs (27 lines):

diff -r d97db681935f -r e38329f2c0ac mk/tools/replace.mk
--- a/mk/tools/replace.mk       Fri Feb 29 00:22:22 2008 +0000
+++ b/mk/tools/replace.mk       Fri Feb 29 00:23:09 2008 +0000
@@ -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 @@
 .  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)



Home | Main Index | Thread Index | Old Index