head 1.3; access; symbols pkgsrc-2023Q4:1.3.0.40 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.38 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.36 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.34 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.32 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.30 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.28 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.26 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.3.0.24 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.3.0.22 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.3.0.20 pkgsrc-2021Q2-base:1.3 pkgsrc-2021Q1:1.3.0.18 pkgsrc-2021Q1-base:1.3 pkgsrc-2020Q4:1.3.0.16 pkgsrc-2020Q4-base:1.3 pkgsrc-2020Q3:1.3.0.14 pkgsrc-2020Q3-base:1.3 pkgsrc-2020Q2:1.3.0.12 pkgsrc-2020Q2-base:1.3 pkgsrc-2020Q1:1.3.0.8 pkgsrc-2020Q1-base:1.3 pkgsrc-2019Q4:1.3.0.10 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.3.0.6 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.4 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.2 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.2.0.4 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.2 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.1.0.54 pkgsrc-2018Q2-base:1.1 pkgsrc-2018Q1:1.1.0.52 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.50 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.48 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.44 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.42 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.40 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.38 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.36 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.34 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.32 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.30 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.28 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.26 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.24 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.22 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.20 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.18 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.16 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.14 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.12 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.10 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.8 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.6 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.4 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.2 pkgsrc-2012Q1-base:1.1; locks; strict; comment @# @; 1.3 date 2019.03.21.21.47.29; author rillig; state Exp; branches; next 1.2; commitid t3iwso0DL28TphgB; 1.2 date 2018.08.22.20.48.37; author maya; state Exp; branches; next 1.1; commitid FMEpDDTKwDQBR9PA; 1.1 date 2012.01.14.00.47.53; author hans; state Exp; branches; next ; desc @@ 1.3 log @mk/tools: fix BISON_REQD handling for lists of multiple Bison versions @ text @# $NetBSD: bison.mk,v 1.2 2018/08/22 20:48:37 maya 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. # BISON_REQD?= 1.875 # If the package does explicitly request bison as a tool, then determine if the # platform-provided bison's version is at least ${BISON_REQD}. If it isn't, then # tell the tools framework to use the pkgsrc bison. # .if !empty(USE_TOOLS:C/:.*//:Mbison*) && \ defined(TOOLS_PLATFORM.bison) && !empty(TOOLS_PLATFORM.bison) . if !defined(_TOOLS_USE_PKGSRC.bison) _TOOLS_VERSION.bison!= \ ${TOOLS_PLATFORM.bison} --version | \ ${SED} -n -e 's/^bison.* \([0-9]\..*\)/\1/p' _TOOLS_PKG.bison= bison-${_TOOLS_VERSION.bison} _TOOLS_USE_PKGSRC.bison= no . for reqd in ${BISON_REQD} . if !empty(_TOOLS_USE_PKGSRC.bison:M[nN][oO]) _TOOLS_USE_PKGSRC.bison!= \ if ${PKG_ADMIN} pmatch bison\>=${reqd:Q} ${_TOOLS_PKG.bison:Q}; then \ ${ECHO} no; \ else \ ${ECHO} yes; \ fi . endif . endfor . endif MAKEVARS+= _TOOLS_USE_PKGSRC.bison .endif CONFIGURE_ENV+= BISON=${TOOLS_CMD.bison:Q} MAKE_ENV+= BISON=${TOOLS_CMD.bison:Q} @ 1.2 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 @d1 1 a1 1 # $NetBSD: bison.mk,v 1.1 2012/01/14 00:47:53 hans Exp $ d46 1 a46 1 . for _dep_ in bison>=${BISON_REQD} d49 1 a49 1 if ${PKG_ADMIN} pmatch ${_dep_:Q} ${_TOOLS_PKG.bison:Q}; then \ @ 1.1 log @Add bison.mk, derived from flex.mk, to allow setting a minimum bison version required. @ text @d1 1 a1 1 # $NetBSD: flex.mk,v 1.1 2011/11/26 14:58:45 hans 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. @