head 1.14; access; symbols pkgsrc-2023Q4:1.14.0.28 pkgsrc-2023Q4-base:1.14 pkgsrc-2023Q3:1.14.0.26 pkgsrc-2023Q3-base:1.14 pkgsrc-2023Q2:1.14.0.24 pkgsrc-2023Q2-base:1.14 pkgsrc-2023Q1:1.14.0.22 pkgsrc-2023Q1-base:1.14 pkgsrc-2022Q4:1.14.0.20 pkgsrc-2022Q4-base:1.14 pkgsrc-2022Q3:1.14.0.18 pkgsrc-2022Q3-base:1.14 pkgsrc-2022Q2:1.14.0.16 pkgsrc-2022Q2-base:1.14 pkgsrc-2022Q1:1.14.0.14 pkgsrc-2022Q1-base:1.14 pkgsrc-2021Q4:1.14.0.12 pkgsrc-2021Q4-base:1.14 pkgsrc-2021Q3:1.14.0.10 pkgsrc-2021Q3-base:1.14 pkgsrc-2021Q2:1.14.0.8 pkgsrc-2021Q2-base:1.14 pkgsrc-2021Q1:1.14.0.6 pkgsrc-2021Q1-base:1.14 pkgsrc-2020Q4:1.14.0.4 pkgsrc-2020Q4-base:1.14 pkgsrc-2020Q3:1.14.0.2 pkgsrc-2020Q3-base:1.14 pkgsrc-2020Q2:1.13.0.14 pkgsrc-2020Q2-base:1.13 pkgsrc-2020Q1:1.13.0.10 pkgsrc-2020Q1-base:1.13 pkgsrc-2019Q4:1.13.0.12 pkgsrc-2019Q4-base:1.13 pkgsrc-2019Q3:1.13.0.8 pkgsrc-2019Q3-base:1.13 pkgsrc-2019Q2:1.13.0.6 pkgsrc-2019Q2-base:1.13 pkgsrc-2019Q1:1.13.0.4 pkgsrc-2019Q1-base:1.13 pkgsrc-2018Q4:1.13.0.2 pkgsrc-2018Q4-base:1.13 pkgsrc-2018Q3:1.12.0.12 pkgsrc-2018Q3-base:1.12 pkgsrc-2018Q2:1.12.0.10 pkgsrc-2018Q2-base:1.12 pkgsrc-2018Q1:1.12.0.8 pkgsrc-2018Q1-base:1.12 pkgsrc-2017Q4:1.12.0.6 pkgsrc-2017Q4-base:1.12 pkgsrc-2017Q3:1.12.0.4 pkgsrc-2017Q3-base:1.12 pkgsrc-2017Q2:1.11.0.10 pkgsrc-2017Q2-base:1.11 pkgsrc-2017Q1:1.11.0.8 pkgsrc-2017Q1-base:1.11 pkgsrc-2016Q4:1.11.0.6 pkgsrc-2016Q4-base:1.11 pkgsrc-2016Q3:1.11.0.4 pkgsrc-2016Q3-base:1.11 pkgsrc-2016Q2:1.11.0.2 pkgsrc-2016Q2-base:1.11 pkgsrc-2016Q1:1.10.0.2 pkgsrc-2016Q1-base:1.10 pkgsrc-2015Q4:1.9.0.4 pkgsrc-2015Q4-base:1.9 pkgsrc-2015Q3:1.9.0.2 pkgsrc-2015Q3-base:1.9 pkgsrc-2015Q2:1.8.0.22 pkgsrc-2015Q2-base:1.8 pkgsrc-2015Q1:1.8.0.20 pkgsrc-2015Q1-base:1.8 pkgsrc-2014Q4:1.8.0.18 pkgsrc-2014Q4-base:1.8 pkgsrc-2014Q3:1.8.0.16 pkgsrc-2014Q3-base:1.8 pkgsrc-2014Q2:1.8.0.14 pkgsrc-2014Q2-base:1.8 pkgsrc-2014Q1:1.8.0.12 pkgsrc-2014Q1-base:1.8 pkgsrc-2013Q4:1.8.0.10 pkgsrc-2013Q4-base:1.8 pkgsrc-2013Q3:1.8.0.8 pkgsrc-2013Q3-base:1.8 pkgsrc-2013Q2:1.8.0.6 pkgsrc-2013Q2-base:1.8 pkgsrc-2013Q1:1.8.0.4 pkgsrc-2013Q1-base:1.8 pkgsrc-2012Q4:1.8.0.2 pkgsrc-2012Q4-base:1.8 pkgsrc-2012Q3:1.7.0.10 pkgsrc-2012Q3-base:1.7 pkgsrc-2012Q2:1.7.0.8 pkgsrc-2012Q2-base:1.7 pkgsrc-2012Q1:1.7.0.6 pkgsrc-2012Q1-base:1.7 pkgsrc-2011Q4:1.7.0.4 pkgsrc-2011Q4-base:1.7 pkgsrc-2011Q3:1.7.0.2 pkgsrc-2011Q3-base:1.7 pkgsrc-2011Q2:1.6.0.12 pkgsrc-2011Q2-base:1.6 pkgsrc-2011Q1:1.6.0.10 pkgsrc-2011Q1-base:1.6 pkgsrc-2010Q4:1.6.0.8 pkgsrc-2010Q4-base:1.6 pkgsrc-2010Q3:1.6.0.6 pkgsrc-2010Q3-base:1.6 pkgsrc-2010Q2:1.6.0.4 pkgsrc-2010Q2-base:1.6 pkgsrc-2010Q1:1.6.0.2 pkgsrc-2010Q1-base:1.6 pkgsrc-2009Q4:1.5.0.24 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.22 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.20 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.5.0.18 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.5.0.16 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.14 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.12 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.10 pkgsrc-2008Q2-base:1.5 cwrapper:1.5.0.8 pkgsrc-2008Q1:1.5.0.6 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.4 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.2 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.4.0.6 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.4 pkgsrc-2007Q1-base:1.4 jlam-pkgviews:1.4.0.2 jlam-pkgviews-base:1.4 pkgsrc-2006Q4:1.3.0.4 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.2 pkgsrc-2006Q3-base:1.3; locks; strict; comment @# @; 1.14 date 2020.09.12.06.51.15; author rillig; state Exp; branches; next 1.13; commitid euJeht7T4kPk4JnC; 1.13 date 2018.11.30.18.38.19; author rillig; state Exp; branches; next 1.12; commitid zBT3EMv4ItD9VZ1B; 1.12 date 2017.08.07.23.54.09; author maya; state Exp; branches; next 1.11; commitid WulNYdNdgJGu6l2A; 1.11 date 2016.04.10.15.58.02; author joerg; state Exp; branches; next 1.10; commitid 4OPBSqBKVmSA262z; 1.10 date 2016.03.10.16.58.19; author jperkin; state Exp; branches; next 1.9; commitid PJtLncvNwXCOm7Yy; 1.9 date 2015.07.04.16.18.38; author joerg; state Exp; branches; next 1.8; commitid EoZkjndZ4qhBbZry; 1.8 date 2012.12.06.11.36.31; author jperkin; state Exp; branches; next 1.7; 1.7 date 2011.09.08.20.17.15; author abs; state Exp; branches; next 1.6; 1.6 date 2010.02.01.00.16.54; author joerg; state Exp; branches; next 1.5; 1.5 date 2007.08.13.12.03.10; author rillig; state Exp; branches; next 1.4; 1.4 date 2007.03.15.22.54.24; author rillig; state Exp; branches; next 1.3; 1.3 date 2006.09.09.02.35.13; author obache; state Exp; branches; next 1.2; 1.2 date 2006.07.21.14.27.56; author jlam; state Exp; branches; next 1.1; 1.1 date 2006.07.05.06.09.15; author jlam; state Exp; branches; next ; desc @@ 1.14 log @bsd.build-vars.mk: describe MAKE_FLAGS in details, rewrite and reformat @ text @# $NetBSD: bsd.build-vars.mk,v 1.13 2018/11/30 18:38:19 rillig Exp $ # # Package-settable variables: # # BUILD_DIRS # The directories in which to perform the build process. # Relative paths are relative to ${WRKSRC}. # # MAKE_ENV # The shell environment that is exported to the make process. # # MAKE_FLAGS # The flags that are passed to the make commands during the build # (the "inner" make when building the package itself, not the # "outer" make on the pkgsrc level). # # Typical flags are -s for silent mode (works for GNU make as # well as for bmake), or variable assignments that override # anything specified in the Makefile, such as CFLAGS=-O0. # # MAKE_FILE # The path to the makefile that is processed by the make executable. # Relative paths are relative to each of the directories from # BUILD_DIRS. # # System-provided variables: # # MAKE_PROGRAM # The path to the make executable that is run to process the source # makefiles. See mk/tools/make.mk. # # See also: # https://www.netbsd.org/docs/pkgsrc/pkgsrc.html#build.build # _VARGROUPS+= build-vars _USER_VARS.build-vars= # none _PKG_VARS.build-vars= BUILD_DIRS MAKE_ENV MAKE_PROGRAM MAKE_FLAGS MAKE_FILE NO_BUILD _LISTED_VARS.build-vars= BUILD_DIRS _SORTED_VARS.build-vars= MAKE_ENV MAKE_FLAGS BUILD_DIRS?= ${CONFIGURE_DIRS} MAKE_ENV?= # empty MAKE_FLAGS?= # empty MAKE_FILE?= Makefile MAKE_ENV+= ${ALL_ENV} MAKE_ENV+= ${NO_EXPORT_CPP:D:UCPP=${CPP:Q}} MAKE_ENV+= LOCALBASE=${LOCALBASE:Q} MAKE_ENV+= X11BASE=${X11BASE:Q} MAKE_ENV+= PKGMANDIR=${PKGMANDIR:Q} MAKE_ENV+= PKGINFODIR=${PKGINFODIR:Q} MAKE_ENV+= PKGGNUDIR=${PKGGNUDIR:Q} # Provide a consistent environment for packages using (Net)BSD-style # Makefiles. # MAKE_ENV+= MAKECONF=${PKGMAKECONF:U/dev/null} MAKE_ENV+= OBJECT_FMT=${OBJECT_FMT:Q} MAKE_ENV+= ${USETOOLS:DUSETOOLS=${USETOOLS:Q}} # Add these bits to the environment used when invoking the recursive make # processes for build-related phases. # PKGSRC_MAKE_ENV+= PATH=${PATH:Q} @ 1.13 log @mk/misc: make configuration for show-all targets more configurable Up to now, there was a central list of variable name patterns that defined whether a variable was printed as a sorted list, as a list or as a single value. Now each variable group decides on its own which of the variables are printed in which way, using the usual glob patterns. This is more flexible since different files sometimes differ in their naming conventions. Two variable groups are added: license (for everything related to LICENSE) and go (for lang/go). @ text @d1 1 a1 1 # $NetBSD: bsd.build-vars.mk,v 1.12 2017/08/07 23:54:09 maya Exp $ d5 20 a24 12 # BUILD_DIRS is the list of directories in which to perform the build # process. If the directories are relative paths, then they # are assumed to be relative to ${WRKSRC}. # # MAKE_ENV is the shell environment that is exported to the make # process. # # MAKE_FLAGS is a list of arguments that is pass to the make process. # # MAKE_FILE is the path to the makefile that is processed by the make # executable. If the path is relative, then it is assumed to # be relative to each directory listed in BUILD_DIRS. d28 6 a33 2 # MAKE_PROGRAM is the path to the make executable that is run to # process the source makefiles. See mk/tools/make.mk. @ 1.12 log @Remove hack working around NetBSD 1.5's specfiles. @ text @d1 1 a1 1 # $NetBSD: bsd.build-vars.mk,v 1.11 2016/04/10 15:58:02 joerg Exp $ d27 2 @ 1.11 log @Remove support for USE_DESTDIR=no. @ text @d1 1 a1 1 # $NetBSD: bsd.build-vars.mk,v 1.10 2016/03/10 16:58:19 jperkin Exp $ a34 1 MAKE_ENV+= LINK_ALL_LIBGCC_HACK=${LINK_ALL_LIBGCC_HACK:Q} @ 1.10 log @Remove _OPSYS_WHOLE_ARCHIVE_FLAG and _OPSYS_NO_WHOLE_ARCHIVE_FLAG, these variables are unused and in at least one case were completely wrong anyway. @ text @d1 1 a1 1 # $NetBSD: bsd.build-vars.mk,v 1.9 2015/07/04 16:18:38 joerg Exp $ a52 1 PKGSRC_MAKE_ENV+= USE_DESTDIR=${USE_DESTDIR:Q} @ 1.9 log @Remove USE_X11BASE and X11PREFIX. @ text @d1 1 a1 1 # $NetBSD: bsd.build-vars.mk,v 1.8 2012/12/06 11:36:31 jperkin Exp $ a36 2 MAKE_ENV+= NO_WHOLE_ARCHIVE_FLAG=${NO_WHOLE_ARCHIVE_FLAG:Q} MAKE_ENV+= WHOLE_ARCHIVE_FLAG=${WHOLE_ARCHIVE_FLAG:Q} @ 1.8 log @Introduce PKGGNUDIR as a way to control gnu prefix. By default pkgsrc uses LOCABASE/gnu as a prefix for packages to install native versions of GNU tools, which are them symbolically linked back to the 'g' versions of the files in LOCALBASE, and users can then add LOCALBASE/gnu/bin to PATH to pick up those tools. On systems where the GNU environment is desired, PKGGNUDIR now allows users to install the non-'g' files directly into LOCALBASE, making them the default without having to alter PATH, whilst retaining the 'g' files in order to ensure dependencies and tool paths remain the same. @ text @d1 1 a1 1 # $NetBSD: bsd.build-vars.mk,v 1.7 2011/09/08 20:17:15 abs Exp $ a39 1 MAKE_ENV+= X11PREFIX=${X11PREFIX:Q} @ 1.7 log @Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -i to santise environment @ text @d1 1 a1 1 # $NetBSD: bsd.build-vars.mk,v 1.6 2010/02/01 00:16:54 joerg Exp $ d43 1 @ 1.6 log @Pass down PKGINFODIR just like PKGMANDIR is passed down. @ text @d1 1 a1 1 # $NetBSD: bsd.build-vars.mk,v 1.5 2007/08/13 12:03:10 rillig Exp $ d55 1 @ 1.5 log @Fixed the definition and the documentation of MAKE_PROGRAM. @ text @d1 1 a1 1 # $NetBSD: bsd.build-vars.mk,v 1.4 2007/03/15 22:54:24 rillig Exp $ d42 1 @ 1.4 log @For all those who are interested in the inner workings of pkgsrc, there is a new target "show-all" that fits to the existing "debug", "show-tools", "show-vars" targets. It prints a list of the variables that make up the public interface to pkgsrc. Running this target is especially useful if you want to do some things, you know that they must have been implemented but you don't know what it is called. It also shows the "class" of a variable (user-defined, package-defined, system-defined). @ text @d1 3 a3 1 # $NetBSD: bsd.build-vars.mk,v 1.3 2006/09/09 02:35:13 obache Exp $ a8 5 # MAKE_PROGRAM is the path to the make executable that is run to # process the source makefiles. This is always overridden by # the tools framework in pkgsrc/mk/tools/make.mk, but we provide # a default here for documentation purposes. # d18 5 a28 1 MAKE_PROGRAM?= ${MAKE} @ 1.3 log @Rename variable MAKEFILE to MAKE_FILE, as suggested in PR 28392. @ text @d1 1 a1 1 # $NetBSD: bsd.build-vars.mk,v 1.2 2006/07/21 14:27:56 jlam Exp $ d21 5 @ 1.2 log @"BUILD_ENV" was misnamed. It's actually the environment that is passed to all internal recursive make processes. As such, rename it to "PKGSRC_MAKE_ENV". XXX Note, some of the usage of this variable in package Makefiles seems XXX incorrect. They probably want "MAKE_ENV", which is the environment XXX passed to the make process when running "make" within ${WRKSRC}. @ text @d1 1 a1 1 # $NetBSD: bsd.build-vars.mk,v 1.1 2006/07/05 06:09:15 jlam Exp $ d17 1 a17 1 # MAKEFILE is the path to the makefile that is processed by the make d25 1 a25 1 MAKEFILE?= Makefile @ 1.1 log @Refactor configure, build, test and wrapper phases out of bsd.pkg.mk and into their own directories. Also do some cleanups with build/_build and pkginstall -- we get rid of _build and simply run pkginstall as part of the "build" target. Introduce a new mechanism to handle varying directory depths under ${WRKSRC} in which we find files to override, e.g. configure, config.*, libtool, etc. OVERRIDE_DIRDEPTH is a package-settable variable that specifies how far under ${WRKSRC} the various targets should look, and it defaults to "2". We preserve the meaning of the various *_OVERRIDE variables, so if they are defined, then their values supersede the OVERRIDE_DIRDEPTH mechanism. devel/tla will need to specially set OVERRIDE_DIRDEPTH to 3 (see log for revision 1.1857 for bsd.pkg.mk -- to be done in a separate commit. @ text @d1 1 a1 1 # $NetBSD$ d47 1 a47 1 BUILD_ENV+= PATH=${PATH:Q} @