head 1.13; 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.44 pkgsrc-2018Q2-base:1.11 pkgsrc-2018Q1:1.11.0.42 pkgsrc-2018Q1-base:1.11 pkgsrc-2017Q4:1.11.0.40 pkgsrc-2017Q4-base:1.11 pkgsrc-2017Q3:1.11.0.38 pkgsrc-2017Q3-base:1.11 pkgsrc-2017Q2:1.11.0.34 pkgsrc-2017Q2-base:1.11 pkgsrc-2017Q1:1.11.0.32 pkgsrc-2017Q1-base:1.11 pkgsrc-2016Q4:1.11.0.30 pkgsrc-2016Q4-base:1.11 pkgsrc-2016Q3:1.11.0.28 pkgsrc-2016Q3-base:1.11 pkgsrc-2016Q2:1.11.0.26 pkgsrc-2016Q2-base:1.11 pkgsrc-2016Q1:1.11.0.24 pkgsrc-2016Q1-base:1.11 pkgsrc-2015Q4:1.11.0.22 pkgsrc-2015Q4-base:1.11 pkgsrc-2015Q3:1.11.0.20 pkgsrc-2015Q3-base:1.11 pkgsrc-2015Q2:1.11.0.18 pkgsrc-2015Q2-base:1.11 pkgsrc-2015Q1:1.11.0.16 pkgsrc-2015Q1-base:1.11 pkgsrc-2014Q4:1.11.0.14 pkgsrc-2014Q4-base:1.11 pkgsrc-2014Q3:1.11.0.12 pkgsrc-2014Q3-base:1.11 pkgsrc-2014Q2:1.11.0.10 pkgsrc-2014Q2-base:1.11 pkgsrc-2014Q1:1.11.0.8 pkgsrc-2014Q1-base:1.11 pkgsrc-2013Q4:1.11.0.6 pkgsrc-2013Q4-base:1.11 pkgsrc-2013Q3:1.11.0.4 pkgsrc-2013Q3-base:1.11 pkgsrc-2013Q2:1.11.0.2 pkgsrc-2013Q2-base:1.11 pkgsrc-2013Q1:1.10.0.8 pkgsrc-2013Q1-base:1.10 pkgsrc-2012Q4:1.10.0.6 pkgsrc-2012Q4-base:1.10 pkgsrc-2012Q3:1.10.0.4 pkgsrc-2012Q3-base:1.10 pkgsrc-2012Q2:1.10.0.2 pkgsrc-2012Q2-base:1.10 pkgsrc-2012Q1:1.9.0.14 pkgsrc-2012Q1-base:1.9 pkgsrc-2011Q4:1.9.0.12 pkgsrc-2011Q4-base:1.9 pkgsrc-2011Q3:1.9.0.10 pkgsrc-2011Q3-base:1.9 pkgsrc-2011Q2:1.9.0.8 pkgsrc-2011Q2-base:1.9 pkgsrc-2011Q1:1.9.0.6 pkgsrc-2011Q1-base:1.9 pkgsrc-2010Q4:1.9.0.4 pkgsrc-2010Q4-base:1.9 pkgsrc-2010Q3:1.9.0.2 pkgsrc-2010Q3-base:1.9 pkgsrc-2010Q2:1.8.0.2 pkgsrc-2010Q2-base:1.8 pkgsrc-2010Q1:1.5.0.12 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.10 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.8 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.6 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.5.0.4 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.5.0.2 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.3.0.32 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.30 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.28 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.26 pkgsrc-2008Q1:1.3.0.24 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.22 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.20 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.18 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.16 pkgsrc-2007Q1-base:1.3 jlam-pkgviews:1.3.0.14 jlam-pkgviews-base:1.3 pkgsrc-2006Q4:1.3.0.12 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.10 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.8 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.6 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.4 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.2 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.2.0.2 pkgsrc-2005Q2-base:1.2; locks; strict; comment @# @; 1.13 date 2024.01.13.20.26.47; author riastradh; state Exp; branches; next 1.12; commitid my8xlviqHLVXqkUE; 1.12 date 2018.08.22.20.48.36; author maya; state Exp; branches; next 1.11; commitid FMEpDDTKwDQBR9PA; 1.11 date 2013.04.28.13.39.09; author obache; state Exp; branches; next 1.10; 1.10 date 2012.04.23.08.44.00; author sbd; state Exp; branches; next 1.9; 1.9 date 2010.08.21.05.07.51; author obache; state Exp; branches; next 1.8; 1.8 date 2010.05.03.06.58.27; author obache; state Exp; branches; next 1.7; 1.7 date 2010.05.02.18.32.09; author wiz; state Exp; branches; next 1.6; 1.6 date 2010.04.28.08.02.18; author obache; state Exp; branches; next 1.5; 1.5 date 2008.12.15.10.58.53; author obache; state Exp; branches; next 1.4; 1.4 date 2008.12.14.16.34.24; author jmcneill; state Exp; branches; next 1.3; 1.3 date 2005.07.15.18.27.55; author jlam; state Exp; branches; next 1.2; 1.2 date 2005.06.01.18.03.06; author jlam; state Exp; branches; next 1.1; 1.1 date 2005.05.24.03.44.04; author jlam; state Exp; branches; next ; desc @@ 1.13 log @buildlink3, mk/*.builtin.mk: Use TOOLS_CROSS_DESTDIR for file checks. These are always about the target system, which during cross builds, or native builds of cross-libtool-base, is relative to TOOLS_CROSS_DESTDIR. This is necessary for cross-libtool-base -- the one special package that is built as a native package as if it were cross-compiled, so _CROSS_DESTDIR is empty but TOOLS_CROSS_DESTDIR is the cross destdir -- because cross-libtool-base uses buildlink3 and dlopen.builtin.mk. No change to native builds because _CROSS_DESTDIR and TOOLS_CROSS_DESTDIR are both empty in native builds. XXX Perhaps almost every use of _CROSS_DESTDIR outside mk/pkgformat should be replaced by TOOLS_CROSS_DESTDIR. @ text @# $NetBSD: find-libs.mk,v 1.12 2018/08/22 20:48:36 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. # # # This is a "subroutine" that can be included to detect the presence of # libraries in the base system. # # The input variable is BUILDLINK_FIND_LIBS, which is a list of library # names, e.g. ncurses, iconv, etc., that will be sought in the base # system. BUILTIN_LIB_FOUND. is set to "yes" or "no" depending # on the result of the search. # # An example use is: # # BUILDLINK_FIND_LIBS:= intl iconv # .include "../../mk/buildlink3/find-libs.mk" # # ${BUILTIN_LIB_FOUND.intl} and ${BUILTIN_LIB_FOUND.iconv} are now # # either "yes" or "no". # .if empty(USE_TOOLS:Mecho) USE_TOOLS+= echo .endif .if empty(USE_TOOLS:Mtest) USE_TOOLS+= test .endif .for _lib_ in ${BUILTIN_FIND_LIBS} . if !defined(BUILTIN_LIB_FOUND.${_lib_}) BUILTIN_LIB_FOUND.${_lib_}= no . for _path_ in ${COMPILER_LIB_DIRS} . if ${BUILTIN_LIB_FOUND.${_lib_}} == "no" BUILTIN_LIB_FOUND.${_lib_}!= \ if ${TEST} "`${ECHO} ${TOOLS_CROSS_DESTDIR}${_path_}/lib${_lib_}.*`" \ != "${TOOLS_CROSS_DESTDIR}${_path_}/lib${_lib_}.*"; then \ ${ECHO} yes; \ else \ ${ECHO} no; \ fi . endif . endfor . endif MAKEVARS+= BUILTIN_LIB_FOUND.${_lib_} .endfor @ 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 @d1 1 a1 1 # $NetBSD: find-libs.mk,v 1.11 2013/04/28 13:39:09 obache Exp $ d61 2 a62 1 if ${TEST} "`${ECHO} ${_path_}/lib${_lib_}.*`" != "${_path_}/lib${_lib_}.*"; then \ @ 1.11 log @Let to find libraires in COMPILER_LIB_DIRS instead of hard coded paths. @ text @d1 1 a1 1 # $NetBSD: find-libs.mk,v 1.10 2012/04/23 08:44:00 sbd 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 @Add '/lib${LIBABISUFFIX}' to the search path. Also add a note # XXX: Why are we looking in '/usr/lib${ABI}' and '/lib${ABI}', as we should # XXX: only be looking in '/usr/lib${LIBABISUFFIX}' and '/lib${LIBABISUFFIX}' @ text @d1 1 a1 1 # $NetBSD: find-libs.mk,v 1.9 2010/08/21 05:07:51 obache Exp $ a63 1 . if ${OPSYS} == "Haiku" && defined(BELIBRARIES) && !empty(BELIBRARIES) d65 2 a66 2 . for _path_ in ${BELIBRARIES:S/:/ /g} . if ${BUILTIN_LIB_FOUND.${_lib_}} == "no" d73 2 a74 18 . endif . endfor . else # XXX: Why are we looking in '/usr/lib${ABI}' and '/lib${ABI}', as we should # XXX: only be looking in '/usr/lib${LIBABISUFFIX}' and '/lib${LIBABISUFFIX}' BUILTIN_LIB_FOUND.${_lib_}!= \ if ${TEST} "`${ECHO} /usr/lib${ABI}/lib${_lib_}.*`" != "/usr/lib${ABI}/lib${_lib_}.*"; then \ ${ECHO} yes; \ elif ${TEST} "`${ECHO} /lib${ABI}/lib${_lib_}.*`" != "/lib${ABI}/lib${_lib_}.*"; then \ ${ECHO} yes; \ elif ${TEST} "`${ECHO} /usr/lib${LIBABISUFFIX}/lib${_lib_}.*`" != "/usr/lib${LIBABISUFFIX}/lib${_lib_}.*"; then \ ${ECHO} yes; \ elif ${TEST} "`${ECHO} /lib${LIBABISUFFIX}/lib${_lib_}.*`" != "/lib${LIBABISUFFIX}/lib${_lib_}.*"; then \ ${ECHO} yes; \ else \ ${ECHO} no; \ fi . endif @ 1.9 log @Support builtin library detection for Haiku. A half of PR#43399. @ text @d1 1 a1 1 # $NetBSD: find-libs.mk,v 1.7 2010/05/02 18:32:09 wiz Exp $ d77 2 d86 2 @ 1.8 log @Revert addition of support for Haiku OS (BEINCLUDES and BELIBRARIES). Improve a port is not better than break others, and current BUILDLINK3 dose not fit such a environment. Thanks for tests and reviews after commit. @ text @d1 1 a1 1 # $NetBSD: find-libs.mk,v 1.5 2008/12/15 10:58:53 obache Exp $ d64 13 d87 1 @ 1.7 log @Fix typo that changes behaviour (was this tested?) @ text @d1 1 a1 1 # $NetBSD: find-libs.mk,v 1.6 2010/04/28 08:02:18 obache Exp $ a73 12 . if BUILTIN_LIB_FOUND.${_lib_}=="no" && defined(BELIBRARIES) && !empty(BELIBRARIES) . for _path_ in ${BELIBRARIES:S/;/ /g} . if BUILTIN_LIB_FOUND.${_lib_} == "no" BUILTIN_LIB_FOUND.${_lib_}!= \ if ${TEST} "`${ECHO} ${_path_}/lib${_lib_}.*`" != "${_path_}/lib/lib${_lib_}.*"; then \ ${ECHO} yes; \ else \ ${ECHO} no; \ fi . endif . endfor . endif @ 1.6 log @Use BEINCLUDES and BELIBRARIES to find header files and libs additionally. They point to the location of builtin header files and libraries for Haiku OS. No objection over two and a half months in tech-pkg@@. @ text @d1 1 a1 1 # $NetBSD: find-libs.mk,v 1.5 2008/12/15 10:58:53 obache Exp $ d76 1 a76 1 . if BULITIN_LIB_FOUND.${_lib_} == "no" @ 1.5 log @Fixes typo, able to detect builtin libiconv again. @ text @d1 1 a1 1 # $NetBSD: find-libs.mk,v 1.4 2008/12/14 16:34:24 jmcneill Exp $ d74 12 @ 1.4 log @Add /usr/lib${LIBABISUFFIX} to the search path @ text @d1 1 a1 1 # $NetBSD: find-libs.mk,v 1.3 2005/07/15 18:27:55 jlam Exp $ d69 1 a69 1 elif ${TEST} "`${ECHO} /usr/lib${LIBABISUFFIX}/lib${_lib}.*`" != "/usr/lib${LIBABISUFFIX}/lib${_lib_}.*"; then \ @ 1.3 log @Drop distinction between PKGSRC_USE_TOOLS and USE_TOOLS by making PKGSRC_USE_TOOLS go away. There is now only a single USE_TOOLS variable that specifies all of the tools we need to build/run the package. @ text @d1 1 a1 1 # $NetBSD: find-libs.mk,v 1.2 2005/06/01 18:03:06 jlam Exp $ d69 2 @ 1.2 log @Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc. Several changes are involved since they are all interrelated. These changes affect about 1000 files. The first major change is rewriting bsd.builtin.mk as well as all of the builtin.mk files to follow the new example in bsd.builtin.mk. The loop to include all of the builtin.mk files needed by the package is moved from bsd.builtin.mk and into bsd.buildlink3.mk. bsd.builtin.mk is now included by each of the individual builtin.mk files and provides some common logic for all of the builtin.mk files. Currently, this includes the computation for whether the native or pkgsrc version of the package is preferred. This causes USE_BUILTIN.* to be correctly set when one builtin.mk file includes another. The second major change is teach the builtin.mk files to consider files under ${LOCALBASE} to be from pkgsrc-controlled packages. Most of the builtin.mk files test for the presence of built-in software by checking for the existence of certain files, e.g. , and we now assume that if that file is under ${LOCALBASE}, then it must be from pkgsrc. This modification is a nod toward LOCALBASE=/usr. The exceptions to this new check are the X11 distribution packages, which are handled specially as noted below. The third major change is providing builtin.mk and version.mk files for each of the X11 distribution packages in pkgsrc. The builtin.mk file can detect whether the native X11 distribution is the same as the one provided by pkgsrc, and the version.mk file computes the version of the X11 distribution package, whether it's built-in or not. The fourth major change is that the buildlink3.mk files for X11 packages that install parts which are part of X11 distribution packages, e.g. Xpm, Xcursor, etc., now use imake to query the X11 distribution for whether the software is already provided by the X11 distribution. This is more accurate than grepping for a symbol name in the imake config files. Using imake required sprinkling various builtin-imake.mk helper files into pkgsrc directories. These files are used as input to imake since imake can't use stdin for that purpose. The fifth major change is in how packages note that they use X11. Instead of setting USE_X11, package Makefiles should now include x11.buildlink3.mk instead. This causes the X11 package buildlink3 and builtin logic to be executed at the correct place for buildlink3.mk and builtin.mk files that previously set USE_X11, and fixes packages that relied on buildlink3.mk files to implicitly note that X11 is needed. Package buildlink3.mk should also include x11.buildlink3.mk when linking against the package libraries requires also linking against the X11 libraries. Where it was obvious, redundant inclusions of x11.buildlink3.mk have been removed. @ text @d1 1 a1 1 # $NetBSD: find-libs.mk,v 1.1 2005/05/24 03:44:04 jlam Exp $ d55 2 a56 2 .if empty(PKGSRC_USE_TOOLS:Mecho) PKGSRC_USE_TOOLS+= echo d58 2 a59 2 .if empty(PKGSRC_USE_TOOLS:Mtest) PKGSRC_USE_TOOLS+= test @ 1.1 log @Add a new file find-libs.mk that can be included by builtin.mk files to detect the presence of libraries in the base system. The input variable is BUILDLINK_FIND_LIBS, which is a list of library names, e.g. ncurses, iconv, etc., that will be sought in the base system. BUILDLINK_LIB_FOUND. is set to "yes" or "no" depending on the result of the search. An example use is: BUILDLINK_FIND_LIBS:= intl iconv .include "../../mk/buildlink3/find-libs.mk" # ${BUILDLINK_LIB_FOUND.intl} and ${BUILDLINK_LIB_FOUND.iconv} are now # either "yes" or "no". @ text @d1 1 a1 1 # $NetBSD$ d44 1 a44 1 # system. BUILDLINK_LIB_FOUND. is set to "yes" or "no" depending d46 1 a46 1 # d51 1 a51 1 # # ${BUILDLINK_LIB_FOUND.intl} and ${BUILDLINK_LIB_FOUND.iconv} are now d62 4 a65 4 .for _lib_ in ${BUILDLINK_FIND_LIBS} . if !defined(BUILDLINK_LIB_FOUND.${_lib_}) BUILDLINK_LIB_FOUND.${_lib_}!= \ if ${TEST} "`${ECHO} /usr/lib/lib${_lib_}.*`" != "/usr/lib/lib${_lib_}.*"; then \ d67 1 a67 1 elif ${TEST} "`${ECHO} /lib/lib${_lib_}.*`" != "/lib/lib${_lib_}.*"; then \ d73 1 a73 1 MAKEVARS+= BUILDLINK_LIB_FOUND.${_lib_} a74 1 .undef _lib_ @