head 1.12; access; symbols pkgsrc-2023Q4:1.12.0.44 pkgsrc-2023Q4-base:1.12 pkgsrc-2023Q3:1.12.0.42 pkgsrc-2023Q3-base:1.12 pkgsrc-2023Q2:1.12.0.40 pkgsrc-2023Q2-base:1.12 pkgsrc-2023Q1:1.12.0.38 pkgsrc-2023Q1-base:1.12 pkgsrc-2022Q4:1.12.0.36 pkgsrc-2022Q4-base:1.12 pkgsrc-2022Q3:1.12.0.34 pkgsrc-2022Q3-base:1.12 pkgsrc-2022Q2:1.12.0.32 pkgsrc-2022Q2-base:1.12 pkgsrc-2022Q1:1.12.0.30 pkgsrc-2022Q1-base:1.12 pkgsrc-2021Q4:1.12.0.28 pkgsrc-2021Q4-base:1.12 pkgsrc-2021Q3:1.12.0.26 pkgsrc-2021Q3-base:1.12 pkgsrc-2021Q2:1.12.0.24 pkgsrc-2021Q2-base:1.12 pkgsrc-2021Q1:1.12.0.22 pkgsrc-2021Q1-base:1.12 pkgsrc-2020Q4:1.12.0.20 pkgsrc-2020Q4-base:1.12 pkgsrc-2020Q3:1.12.0.18 pkgsrc-2020Q3-base:1.12 pkgsrc-2020Q2:1.12.0.16 pkgsrc-2020Q2-base:1.12 pkgsrc-2020Q1:1.12.0.12 pkgsrc-2020Q1-base:1.12 pkgsrc-2019Q4:1.12.0.14 pkgsrc-2019Q4-base:1.12 pkgsrc-2019Q3:1.12.0.10 pkgsrc-2019Q3-base:1.12 pkgsrc-2019Q2:1.12.0.8 pkgsrc-2019Q2-base:1.12 pkgsrc-2019Q1:1.12.0.6 pkgsrc-2019Q1-base:1.12 pkgsrc-2018Q4:1.12.0.4 pkgsrc-2018Q4-base:1.12 pkgsrc-2018Q3:1.12.0.2 pkgsrc-2018Q3-base:1.12 pkgsrc-2018Q2:1.11.0.72 pkgsrc-2018Q2-base:1.11 pkgsrc-2018Q1:1.11.0.70 pkgsrc-2018Q1-base:1.11 pkgsrc-2017Q4:1.11.0.68 pkgsrc-2017Q4-base:1.11 pkgsrc-2017Q3:1.11.0.66 pkgsrc-2017Q3-base:1.11 pkgsrc-2017Q2:1.11.0.62 pkgsrc-2017Q2-base:1.11 pkgsrc-2017Q1:1.11.0.60 pkgsrc-2017Q1-base:1.11 pkgsrc-2016Q4:1.11.0.58 pkgsrc-2016Q4-base:1.11 pkgsrc-2016Q3:1.11.0.56 pkgsrc-2016Q3-base:1.11 pkgsrc-2016Q2:1.11.0.54 pkgsrc-2016Q2-base:1.11 pkgsrc-2016Q1:1.11.0.52 pkgsrc-2016Q1-base:1.11 pkgsrc-2015Q4:1.11.0.50 pkgsrc-2015Q4-base:1.11 pkgsrc-2015Q3:1.11.0.48 pkgsrc-2015Q3-base:1.11 pkgsrc-2015Q2:1.11.0.46 pkgsrc-2015Q2-base:1.11 pkgsrc-2015Q1:1.11.0.44 pkgsrc-2015Q1-base:1.11 pkgsrc-2014Q4:1.11.0.42 pkgsrc-2014Q4-base:1.11 pkgsrc-2014Q3:1.11.0.40 pkgsrc-2014Q3-base:1.11 pkgsrc-2014Q2:1.11.0.38 pkgsrc-2014Q2-base:1.11 pkgsrc-2014Q1:1.11.0.36 pkgsrc-2014Q1-base:1.11 pkgsrc-2013Q4:1.11.0.34 pkgsrc-2013Q4-base:1.11 pkgsrc-2013Q3:1.11.0.32 pkgsrc-2013Q3-base:1.11 pkgsrc-2013Q2:1.11.0.30 pkgsrc-2013Q2-base:1.11 pkgsrc-2013Q1:1.11.0.28 pkgsrc-2013Q1-base:1.11 pkgsrc-2012Q4:1.11.0.26 pkgsrc-2012Q4-base:1.11 pkgsrc-2012Q3:1.11.0.24 pkgsrc-2012Q3-base:1.11 pkgsrc-2012Q2:1.11.0.22 pkgsrc-2012Q2-base:1.11 pkgsrc-2012Q1:1.11.0.20 pkgsrc-2012Q1-base:1.11 pkgsrc-2011Q4:1.11.0.18 pkgsrc-2011Q4-base:1.11 pkgsrc-2011Q3:1.11.0.16 pkgsrc-2011Q3-base:1.11 pkgsrc-2011Q2:1.11.0.14 pkgsrc-2011Q2-base:1.11 pkgsrc-2011Q1:1.11.0.12 pkgsrc-2011Q1-base:1.11 pkgsrc-2010Q4:1.11.0.10 pkgsrc-2010Q4-base:1.11 pkgsrc-2010Q3:1.11.0.8 pkgsrc-2010Q3-base:1.11 pkgsrc-2010Q2:1.11.0.6 pkgsrc-2010Q2-base:1.11 pkgsrc-2010Q1:1.11.0.4 pkgsrc-2010Q1-base:1.11 pkgsrc-2009Q4:1.11.0.2 pkgsrc-2009Q4-base:1.11 pkgsrc-2009Q3:1.10.0.40 pkgsrc-2009Q3-base:1.10 pkgsrc-2009Q2:1.10.0.38 pkgsrc-2009Q2-base:1.10 pkgsrc-2009Q1:1.10.0.36 pkgsrc-2009Q1-base:1.10 pkgsrc-2008Q4:1.10.0.34 pkgsrc-2008Q4-base:1.10 pkgsrc-2008Q3:1.10.0.32 pkgsrc-2008Q3-base:1.10 cube-native-xorg:1.10.0.30 cube-native-xorg-base:1.10 pkgsrc-2008Q2:1.10.0.28 pkgsrc-2008Q2-base:1.10 cwrapper:1.10.0.26 pkgsrc-2008Q1:1.10.0.24 pkgsrc-2008Q1-base:1.10 pkgsrc-2007Q4:1.10.0.22 pkgsrc-2007Q4-base:1.10 pkgsrc-2007Q3:1.10.0.20 pkgsrc-2007Q3-base:1.10 pkgsrc-2007Q2:1.10.0.18 pkgsrc-2007Q2-base:1.10 pkgsrc-2007Q1:1.10.0.16 pkgsrc-2007Q1-base:1.10 jlam-pkgviews:1.10.0.14 jlam-pkgviews-base:1.10 pkgsrc-2006Q4:1.10.0.12 pkgsrc-2006Q4-base:1.10 pkgsrc-2006Q3:1.10.0.10 pkgsrc-2006Q3-base:1.10 pkgsrc-2006Q2:1.10.0.8 pkgsrc-2006Q2-base:1.10 tv-derecurse-eol:1.5.2.2 pkgsrc-2006Q1:1.10.0.6 pkgsrc-2006Q1-base:1.10 pkgsrc-2005Q4:1.10.0.4 pkgsrc-2005Q4-base:1.10 pkgsrc-2005Q3:1.10.0.2 pkgsrc-2005Q3-base:1.10 pkgsrc-2005Q2:1.8.0.2 pkgsrc-2005Q2-base:1.8 tv-derecurse:1.5.0.2 tv-derecurse-merge:1.5; locks; strict; comment @# @; 1.12 date 2018.08.22.20.48.37; author maya; state Exp; branches; next 1.11; commitid FMEpDDTKwDQBR9PA; 1.11 date 2009.12.07.02.36.51; author dholland; state Exp; branches; next 1.10; 1.10 date 2005.07.17.23.19.04; author jlam; state Exp; branches; next 1.9; 1.9 date 2005.07.17.21.36.24; author jlam; state Exp; branches; next 1.8; 1.8 date 2005.06.11.05.22.03; author jlam; state Exp; branches; next 1.7; 1.7 date 2005.05.21.04.53.17; author jlam; state Exp; branches; next 1.6; 1.6 date 2005.05.21.04.46.52; author jlam; state Exp; branches; next 1.5; 1.5 date 2005.05.11.05.44.58; author jlam; state Exp; branches 1.5.2.1; next 1.4; 1.4 date 2005.05.09.01.11.58; author jlam; state Exp; branches; next 1.3; 1.3 date 2005.05.09.00.13.03; author jlam; state Exp; branches; next 1.2; 1.2 date 2005.04.24.04.34.34; author jlam; state Exp; branches; next 1.1; 1.1 date 2005.04.15.00.00.21; author jlam; state Exp; branches; next ; 1.5.2.1 date 2005.05.11.05.44.58; author tv; state dead; branches; next 1.5.2.2; 1.5.2.2 date 2005.05.17.18.29.46; author tv; state Exp; branches; next 1.5.2.3; 1.5.2.3 date 2006.06.07.15.25.40; author tv; state dead; branches; next ; desc @@ 1.12 log @Remove clauses 3,4 from TNF-only copyright blocks. This is based on the decision The NetBSD Foundation made in 2008 to do so, which was already applied to src. This change has been applied to code which is likely not in other repositories. ok board@@, reviewed by riastradh@@ @ text @# $NetBSD: rpcgen.mk,v 1.11 2009/12/07 02:36:51 dholland Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. # # This code is derived from software contributed to The NetBSD Foundation # by Johnny C. Lam. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # # # Create an rpcgen script that correctly sets the CPP environment # variable to a stat(2)able path to a C preprocessor, then invokes # the real rpcgen. # TOOLS_CREATE+= rpcgen .if !defined(TOOLS_PATH.rpcgen) TOOLS_EXECDIRS.rpcgen?= /bin /sbin /usr/bin /usr/sbin . for _d_ in ${TOOLS_EXECDIRS.rpcgen} . if exists(${_d_}/rpcgen) TOOLS_PATH.rpcgen?= ${_d_}/rpcgen . endif . endfor TOOLS_PATH.rpcgen?= ${FALSE} .endif TOOLS_CMD.rpcgen= ${TOOLS_DIR}/bin/rpcgen .if ${OPSYS} == "NetBSD" TOOLS_ARGS.rpcgen?= -b .elif ${OPSYS} == "Linux" TOOLS_ARGS.rpcgen?= -Y ${WRAPPER_BINDIR:Q} .endif TOOLS_SCRIPT.rpcgen= CPP=${WRAPPER_BINDIR:Q}/cpp ${TOOLS_SCRIPT_DFLT.rpcgen} # Make ${RPCGEN} call the "rpcgen" through the PATH, which should find # the rpcgen tool wrapper. # RPCGEN?= rpcgen @ 1.11 log @Linux's rpcgen has the location of cpp compiled in. Make it use the pkgsrc wrapper by adding -Y ${WRAPPER_BINDIR:Q} when OPSYS is Linux. This will fix obscure/subtle build problems caused by bypassing the wrappers; it will also fix pkgsrc builds on improperly configured Linux distros (such as in PR pkg/41359) whose rpcgen has the wrong location for cpp compiled into it. While there are at least two main branches of rpcgen floating around the Linux world, both of them support '-Y cpp-path'. @ text @d1 1 a1 1 # $NetBSD: rpcgen.mk,v 1.10 2005/07/17 23:19:04 jlam Exp $ a16 7 # 3. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by the NetBSD # Foundation, Inc. and its contributors. # 4. Neither the name of The NetBSD Foundation nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. @ 1.10 log @Rename variable: TOOLS_CMDLINE. => TOOLS_SCRIPT. to better reflect the possible variable contents. @ text @d1 1 a1 1 # $NetBSD: rpcgen.mk,v 1.9 2005/07/17 21:36:24 jlam Exp $ d56 2 @ 1.9 log @Rename the following variables for brevity: TOOLS_REAL_CMD. => TOOLS_PATH. TOOLS_REAL_ARGS. => TOOLS_ARGS. TOOLS_REAL_CMDLINE. => TOOLS_CMDLINE. @ text @d1 1 a1 1 # $NetBSD: rpcgen.mk,v 1.8 2005/06/11 05:22:03 jlam Exp $ d57 1 a57 2 TOOLS_CMDLINE.rpcgen= \ CPP=${WRAPPER_BINDIR:Q}/cpp ${TOOLS_PATH.rpcgen} ${TOOLS_ARGS.rpcgen} "$$@@" @ 1.8 log @Remove unnecessary .undef lines after .for loops as the loop variables are automatically undefined after the loop exits. @ text @d1 1 a1 1 # $NetBSD: rpcgen.mk,v 1.7 2005/05/21 04:53:17 jlam Exp $ d44 1 a44 1 .if !defined(TOOLS_REAL_CMD.rpcgen) d48 1 a48 1 TOOLS_REAL_CMD.rpcgen?= ${_d_}/rpcgen d51 1 a51 1 TOOLS_REAL_CMD.rpcgen?= ${FALSE} d55 1 a55 1 TOOLS_REAL_ARGS.rpcgen?= -b d57 2 a58 2 TOOLS_REAL_CMDLINE.rpcgen= \ CPP=${WRAPPER_BINDIR:Q}/cpp ${TOOLS_REAL_CMD.rpcgen} ${TOOLS_REAL_ARGS.rpcgen} "$$@@" @ 1.7 log @Grammar 101 -- sentences should end in a period. @ text @d1 1 a1 1 # $NetBSD: rpcgen.mk,v 1.6 2005/05/21 04:46:52 jlam Exp $ a50 1 . undef _d_ @ 1.6 log @Add TNF copyright to the new tools framework makefiles. @ text @d1 1 a1 1 # $NetBSD: rpcgen.mk,v 1.5 2005/05/11 05:44:58 jlam Exp $ d7 1 a7 1 # by Johnny C. Lam @ 1.5 log @Don't forget to pass the rest of the command-line arguments "$@@" to the command, or else the wrapper will ignore all of its arguments. This fixes the rpcgen script to actually work. @ text @d1 36 a36 1 # $NetBSD: rpcgen.mk,v 1.4 2005/05/09 01:11:58 jlam Exp $ d38 1 @ 1.5.2.1 log @file rpcgen.mk was added on branch tv-derecurse on 2005-05-17 18:29:46 +0000 @ text @d1 28 @ 1.5.2.2 log @sync [all but bsd.pkg.mk] with HEAD @ text @a0 28 # $NetBSD: rpcgen.mk,v 1.5.2.1 2005/05/17 18:29:46 tv Exp $ # Create an rpcgen script that correctly sets the CPP environment # variable to a stat(2)able path to a C preprocessor, then invokes # the real rpcgen. # TOOLS_CREATE+= rpcgen .if !defined(TOOLS_REAL_CMD.rpcgen) TOOLS_EXECDIRS.rpcgen?= /bin /sbin /usr/bin /usr/sbin . for _d_ in ${TOOLS_EXECDIRS.rpcgen} . if exists(${_d_}/rpcgen) TOOLS_REAL_CMD.rpcgen?= ${_d_}/rpcgen . endif . endfor . undef _d_ TOOLS_REAL_CMD.rpcgen?= ${FALSE} .endif TOOLS_CMD.rpcgen= ${TOOLS_DIR}/bin/rpcgen .if ${OPSYS} == "NetBSD" TOOLS_REAL_ARGS.rpcgen?= -b .endif TOOLS_REAL_CMDLINE.rpcgen= \ CPP=${WRAPPER_BINDIR:Q}/cpp ${TOOLS_REAL_CMD.rpcgen} ${TOOLS_REAL_ARGS.rpcgen} "$$@@" # Make ${RPCGEN} call the "rpcgen" through the PATH, which should find # the rpcgen tool wrapper. # RPCGEN?= rpcgen @ 1.5.2.3 log @EOL the tv-derecurse branch; it has become too outdated. The last live revision can be fetched at the tv-derecurse-eol tag. @ text @d1 28 @ 1.4 log @Replace TOOLS_WRAP and TOOLS_SYMLINK with TOOLS_CREATE, and let the tools framework figure out by itself whether a wrapper or a symlink should be created based on the real command and any arguments that may need to be invoked. @ text @d1 1 a1 1 # $NetBSD: rpcgen.mk,v 1.3 2005/05/09 00:13:03 jlam Exp $ d23 1 a23 1 CPP=${WRAPPER_BINDIR:Q}/cpp ${TOOLS_REAL_CMD.rpcgen} ${TOOLS_REAL_ARGS.rpcgen} @ 1.3 log @Rename TOOLS_ARGS.* to TOOLS_REAL_ARGS.* to follow naming convention for other TOOLS_* variables relating to the real command executed. @ text @d1 1 a1 1 # $NetBSD: rpcgen.mk,v 1.2 2005/04/24 04:34:34 jlam Exp $ d7 1 a7 1 TOOLS_WRAP+= rpcgen @ 1.2 log @Use bsd.tools.mk to generate the wrapper script. Also, TOOLS_EXECDIRS is no more, so search for rpcgen in /bin, /sbin, /usr/bin, and /usr/sbin. @ text @d1 1 a1 1 # $NetBSD: rpcgen.mk,v 1.1 2005/04/15 00:00:21 jlam Exp $ d20 1 a20 1 TOOLS_ARGS.rpcgen?= -b d23 1 a23 1 CPP=${WRAPPER_BINDIR:Q}/cpp ${TOOLS_REAL_CMD.rpcgen} ${TOOLS_ARGS.rpcgen} @ 1.1 log @Initial commit of the new tools framework. This is currently designed to be a drop-in replacement for mk/tools.mk, but isn't yet enabled pending further testing. To use, edit bsd.pkg.mk to include bsd.tools.mk instead of tools.mk. The major changes from the old tools framework are: (1) The new interface to using the tools framework is through setting USE_TOOLS in the package Makefile, e.g., USE_TOOLS+= autoconf gmake yacc (2) Bison/yacc handling is improved. Instead of adding checks for /usr/bin/yacc to the package Makefile and explicitly setting YACC, e.g., security/mit-krb5/Makefile, simply add "yacc" to USE_TOOLS. If bison is explicitly required, then add "bison" to USE_TOOLS instead. (3) GNU auto* tools are handled differently. "autoconf", "aclocal", "automake", etc. will be tools in ${TOOLS_DIR} that point to the correct versions of the auto* tools. Instead of patching Makefiles or scripts to use ${AUTOCONF}, ${ACLOCAL}, etc., the correct versions of the tools will be called if they are invoked simply by their bare names. This is selected by adding either "autoconf" or "autoconf213", or "automake" or "automake14" to USE_TOOLS. The new tools framework will deprecate the following variables: ACLOCAL AUTORECONF AUTOCONF BUILD_USES_GETTEXT_M4 AUTOHEADER USE_GNU_TOOLS AUTOMAKE USE_TBL The new tools framework will deprecate the following *.mk files: mk/autoconf.mk mk/automake.mk mk/tools.mk Additional documentation on how to use bsd.tools.mk to create new tools under ${TOOLS_DIR} may be found in the header comments in bsd.tools.mk. @ text @d1 1 a1 1 # $NetBSD$ d7 1 d9 1 a9 1 TOOLS_EXECDIRS.rpcgen?= ${TOOLS_EXECDIRS} d22 2 a23 1 RPCGEN?= rpcgen d25 4 a28 14 .if !target(${TOOLS_CMD.rpcgen}) override-tools: ${TOOLS_CMD.rpcgen} ${TOOLS_CMD.rpcgen}: ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H} ${_PKG_SILENT}${_PKG_DEBUG} \ ( ${ECHO} '#!'${TOOLS_SHELL:Q}; \ ${ECHO} 'wrapperlog="$${TOOLS_WRAPPER_LOG-'${_TOOLS_WRAP_LOG:Q}'}"'; \ ${ECHO} 'CPP='${WRAPPER_BINDIR:Q}'/cpp"; export CPP'; \ ${ECHO} '${ECHO} "[*] '${TOOLS_CMD.rpcgen:Q}' $$*" >> $$wrapperlog'; \ ${ECHO} '${ECHO} "<.> '${TOOLS_REAL_CMD.rpcgen:Q} ${TOOLS_ARGS.rpcgen:Q}' $$*" >> $$wrapperlog'; \ ${ECHO} ${TOOLS_REAL_CMD.rpcgen:Q} ${TOOLS_ARGS.rpcgen:Q} '"$$@@"'; \ ) > ${.TARGET} ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET} .endif @