diff options
author | jlam <jlam@pkgsrc.org> | 2006-07-05 04:32:10 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-07-05 04:32:10 +0000 |
commit | bb74d3bb13a575c8daf48ec498241f861b6a695c (patch) | |
tree | 277a5763fbfdd2b78add7ae1a7e7f936b5fa447a /mk/tools/replace.mk | |
parent | 5dd869d58bce9ac77979e476e6e2743bbacce7dd (diff) | |
download | pkgsrc-bb74d3bb13a575c8daf48ec498241f861b6a695c.tar.gz |
Teach the tools framework about the following new tools:
itools, intltool, diff3, sdiff, msgmerge
* Adding USE_TOOLS+=itools to a package Makefile will cause the
tool-directory versions of imake, makedepend, mkdirhier and xmkmf
to point to the ones from the devel/nbitools package.
This change will remove the need for nbitools/buildlink3.mk, which
currently does a bit of hackery to force the "right" imake tools to
be used by packages that need it.
* Adding USE_TOOLS+=intltool to a package Makefile will cause the
local versions of intltool-* inside ${WRKSRC} to be replaced by
copies from the textproc/intltool package. If "intltool" is not
specified as a tool, then we create "broken" intltool-* tools in
the tools directory to help highlight hidden dependencies on the
intltool package.
In addition, modify the tools framework so that if "perl" is not
specified as a tool, then we create a "broken" perl tool in the
tools directory for the same reason as for "intltool".
These two changes together will remove the need for
intltools/buildlink3.mk and should also catch all cases where the
sources' intltools may have been silently used because perl was
found on the system.
* Adding USE_TOOLS+=diff3, USE_TOOLS+=sdiff, or USE_TOOLS+=msgmerge
to a package Makefile will cause the corresponding tool to be pulled
into the tools directory.
These are convenience tools to help simplify dependencies for some
packages.
Diffstat (limited to 'mk/tools/replace.mk')
-rw-r--r-- | mk/tools/replace.mk | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index 91597f1d8d7..4698a773c2e 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.170 2006/06/14 16:57:07 jlam Exp $ +# $NetBSD: replace.mk,v 1.171 2006/07/05 04:32:10 jlam Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -879,7 +879,7 @@ TOOLS_ALIASES.gsoelim= soelim # These tools are all supplied by the devel/diffutils package if there is # no native tool available. # -_TOOLS.diffutils= cmp diff +_TOOLS.diffutils= cmp diff diff3 sdiff .for _t_ in ${_TOOLS.diffutils} . if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_}) @@ -982,11 +982,17 @@ _TOOLS.x11-imake= imake makedepend mkdirhier xmkmf .for _t_ in ${_TOOLS.x11-imake} . if !defined(TOOLS_IGNORE.${_t_}) && !empty(_USE_TOOLS:M${_t_}) -. if !empty(PKGPATH:Mx11/XFree86-imake) || !empty(PKGPATH:Mx11/xorg-imake) +. if !empty(PKGPATH:Mdevel/nbitools) || \ + !empty(PKGPATH:Mx11/XFree86-imake) || \ + !empty(PKGPATH:Mx11/xorg-imake) MAKEFLAGS+= TOOLS_IGNORE.${_t_}= . elif !empty(_TOOLS_USE_PKGSRC.${_t_}:M[yY][eE][sS]) TOOLS_CREATE+= ${_t_} -. if defined(X11_TYPE) && !empty(X11_TYPE:MXFree86) +. if !empty(_USE_TOOLS:Mitools) +TOOLS_DEPENDS.${_t_}?= nbitools>=6.3nb4:../../devel/nbitools +TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=nbitools +TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/libexec/itools/${_t_} +. elif defined(X11_TYPE) && !empty(X11_TYPE:MXFree86) TOOLS_DEPENDS.${_t_}?= XFree86-imake>=4.4.0:../../x11/XFree86-imake TOOLS_FIND_PREFIX+= TOOLS_PREFIX.${_t_}=imake TOOLS_PATH.${_t_}= ${TOOLS_PREFIX.${_t_}}/${X11ROOT_PREFIX}/bin/${_t_} @@ -1006,7 +1012,7 @@ TOOLS_PATH.${_t_}= ${X11BASE}/bin/${_t_} # ${X11BASE}. # .if !defined(TOOLS_IGNORE.xmkmf) && !empty(_USE_TOOLS:Mxmkmf) -. if !empty(USE_XPKGWEDGE:M[yY][eE][sS]) +. if !empty(USE_XPKGWEDGE:M[yY][eE][sS]) && empty(_USE_TOOLS:Mitools) TOOLS_FIND_PREFIX+= TOOLS_PREFIX.xpkgwedge=xpkgwedge TOOLS_PATH.xmkmf= ${TOOLS_PREFIX.xpkgwedge}/bin/pkgxmkmf . endif |