head 1.6; access; symbols pkgsrc-2013Q2:1.6.0.44 pkgsrc-2013Q2-base:1.6 pkgsrc-2012Q4:1.6.0.42 pkgsrc-2012Q4-base:1.6 pkgsrc-2011Q4:1.6.0.40 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q2:1.6.0.38 pkgsrc-2011Q2-base:1.6 pkgsrc-2009Q4:1.6.0.36 pkgsrc-2009Q4-base:1.6 pkgsrc-2008Q4:1.6.0.34 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.32 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.30 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.28 pkgsrc-2008Q2-base:1.6 pkgsrc-2008Q1:1.6.0.26 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.24 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.22 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.20 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.18 pkgsrc-2007Q1-base:1.6 jlam-pkgviews:1.6.0.16 jlam-pkgviews-base:1.6 pkgsrc-2006Q4:1.6.0.14 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.12 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.6.0.10 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.8 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.6 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.4 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.2 pkgsrc-2005Q2-base:1.6; locks; strict; comment @# @; 1.6 date 2005.04.28.17.35.48; author jlam; state dead; branches; next 1.5; 1.5 date 2005.04.28.03.01.11; author jlam; state Exp; branches; next 1.4; 1.4 date 2005.04.28.02.10.56; author jlam; state Exp; branches; next 1.3; 1.3 date 2005.04.26.23.02.48; author jlam; state Exp; branches; next 1.2; 1.2 date 2005.04.26.15.32.05; author jlam; state Exp; branches; next 1.1; 1.1 date 2005.04.15.07.33.43; author jlam; state Exp; branches; next ; desc @@ 1.6 log @Merge coreutils.mk into replace.mk. Also remove the "coreutils" option to USE_TOOLS and replace it with the names of the various tools we're getting from coreutils, e.g. "mv", "mkdir", "rm", etc. @ text @# $NetBSD: coreutils.mk,v 1.5 2005/04/28 03:01:11 jlam Exp $ # # This Makefile fragment unconditionally replaces the system-supplied # "core" utilities with the ones from the GNU coreutils package when # "coreutils" is added to USE_TOOLS. # # Set TOOLS_DEPMETHOD.coreutils to "DEPENDS" to get a run-time dependency # on coreutils. # .if !defined(TOOLS_IGNORE.coreutils) && !empty(USE_TOOLS:Mcoreutils) . if !empty(PKGPATH:Msysutils/coreutils) MAKEFLAGS+= TOOLS_IGNORE.coreutils= . else TOOLS_DEPMETHOD.coreutils?= BUILD_DEPENDS TOOLS_DEPENDS.coreutils?= coreutils>=5.2.1:../../sysutils/coreutils . if empty(${TOOLS_DEPMETHOD.coreutils}:M${TOOLS_DEPENDS.coreutils}) ${TOOLS_DEPMETHOD.coreutils}+= ${TOOLS_DEPENDS.coreutils} . endif # List of core utilities for which we'll create symlinks under # ${TOOLS_DIR}. This isn't every utility provided by coreutils, but # is instead restricted to just the ones that are also listed in # mk/platform/*.mk. # _TOOLS_COREUTILS+= [ basename cat chgrp chmod chown cp cut date \ dirname echo env expr false head hostname id ln \ ls mkdir mv nice pwd rm rmdir sort tail tee \ test touch tr true tsort wc _TOOLS_VARNAME.basename= BASENAME _TOOLS_VARNAME.cat= CAT _TOOLS_VARNAME.chgrp= CHGRP _TOOLS_VARNAME.chmod= CHMOD _TOOLS_VARNAME.chown= CHOWN _TOOLS_VARNAME.cp= CP _TOOLS_VARNAME.cut= CUT _TOOLS_VARNAME.date= DATE _TOOLS_VARNAME.dirname= DIRNAME _TOOLS_VARNAME.echo= ECHO _TOOLS_VARNAME.env= SETENV _TOOLS_VARNAME.expr= EXPR _TOOLS_VARNAME.false= FALSE _TOOLS_VARNAME.head= HEAD _TOOLS_VARNAME.hostname= HOSTNAME _TOOLS_VARNAME.id= ID _TOOLS_VARNAME.ln= LN _TOOLS_VARNAME.ls= LS _TOOLS_VARNAME.mkdir= MKDIR _TOOLS_VARNAME.mv= MV _TOOLS_VARNAME.nice= NICE _TOOLS_VARNAME.pwd= PWD _TOOLS_VARNAME.rm= RM _TOOLS_VARNAME.rmdir= RMDIR _TOOLS_VARNAME.sort= SORT _TOOLS_VARNAME.tail= TAIL _TOOLS_VARNAME.tee= TEE _TOOLS_VARNAME.test= TEST _TOOLS_VARNAME.touch= TOUCH _TOOLS_VARNAME.tr= TR _TOOLS_VARNAME.true= TRUE _TOOLS_VARNAME.tsort= TSORT _TOOLS_VARNAME.wc= WC # Create symlinks for each of the coreutils under ${TOOLS_DIR}. . for _t_ in ${_TOOLS_COREUTILS} TOOLS_SYMLINK+= ${_t_} TOOLS_REAL_CMD.${_t_}= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}${_t_} . if defined(_TOOLS_VARNAME.${_t_}) && exists(${TOOLS_REAL_CMD.${_t_}}) ${_TOOLS_VARNAME.${_t_}}= ${TOOLS_REAL_CMD.${_t_}} . endif . endfor . undef _t_ # # Fix up a few definitions, e.g. ${MKDIR} needs to be "mkdir -p". # ${_TOOLS_VARNAME.mkdir}:= ${${_TOOLS_VARNAME.mkdir}} -p . endif .endif @ 1.5 log @Define TOOLS_DEPENDS.* to be the dependency that will be added, and filter out dependencies that have already been added. @ text @d1 1 a1 1 # $NetBSD: coreutils.mk,v 1.4 2005/04/28 02:10:56 jlam Exp $ @ 1.4 log @Rename TOOLS_DEPENDS.* to TOOLS_DEPMETHOD.* to roughly match the buildlink terminology for the same concept. @ text @d1 1 a1 1 # $NetBSD: coreutils.mk,v 1.3 2005/04/26 23:02:48 jlam Exp $ d16 4 a19 1 ${TOOLS_DEPMETHOD.coreutils}+= coreutils>=5.2.1:../../sysutils/coreutils @ 1.3 log @Let USE_TOOLS+=coreutils cause BASENAME, CAT, CHGRP, etc. to be overridden to point to the pkgsrc versions of those tools. @ text @d1 1 a1 1 # $NetBSD: coreutils.mk,v 1.2 2005/04/26 15:32:05 jlam Exp $ d7 1 a7 1 # Set TOOLS_DEPENDS.coreutils to "DEPENDS" to get a run-time dependency d15 2 a16 2 TOOLS_DEPENDS.coreutils?= BUILD_DEPENDS ${TOOLS_DEPENDS.coreutils}+= coreutils>=5.2.1:../../sysutils/coreutils @ 1.2 log @As of bsd.tool.mk:1.6, TOOLS_CMD. defaults to ${TOOLS_DIR}/bin/, so remove redundant settings. @ text @d1 1 a1 1 # $NetBSD: coreutils.mk,v 1.1 2005/04/15 07:33:43 jlam Exp $ d28 34 d64 5 a68 2 TOOLS_SYMLINK+= ${_t_} TOOLS_REAL_CMD.${_t_}= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}${_t_} d71 4 @ 1.1 log @Allow for USE_TOOLS+=coreutils and USE_TOOLS+=findutils to use pkgsrc replacements for "core" and "find" utilities, e.g. basename, cat, find, etc. @ text @d1 1 a1 1 # $NetBSD$ a30 1 TOOLS_CMD.${_t_}= ${TOOLS_DIR}/bin/${_t_} @