Subject: CVS commit: pkgsrc/mk/tools
To: None <pkgsrc-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 04/24/2005 03:07:37
Module Name: pkgsrc
Committed By: jlam
Date: Sun Apr 24 03:07:37 UTC 2005
Modified Files:
pkgsrc/mk/tools: replace.mk
Log Message:
Rewrite code for using system-supplied tools so that we can replace
tools that are defined as a command plus arguments, e.g. for gunzip,
GUNZIP= /usr/bin/gzip -d
In this case, we generate a wrapper script that invokes the real
command plus arguments. If there are no arguments, then just symlink
the command for simplicity.
Also, restructure the tool-specific blocks so that we always define
TOOLS_CMD.<tool> to the correct name (important for yacc/bison), and
check that the real command actually exists before assigning it to
the "TOOL" name.
To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 pkgsrc/mk/tools/replace.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.