summaryrefslogtreecommitdiff
path: root/mk/build
AgeCommit message (Collapse)AuthorFilesLines
2016-04-10Remove support for USE_DESTDIR=no.joerg1-2/+1
2016-03-10Remove _OPSYS_WHOLE_ARCHIVE_FLAG and _OPSYS_NO_WHOLE_ARCHIVE_FLAG, thesejperkin1-3/+1
variables are unused and in at least one case were completely wrong anyway.
2015-07-04Remove USE_X11BASE and X11PREFIX.joerg1-2/+1
2012-12-06Introduce PKGGNUDIR as a way to control gnu prefix.jperkin1-1/+2
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.
2012-05-27"rebuild" and "retest" targets were added (by analogy with "reinstall").cheusov2-2/+41
rebuild is a special target to re-run the build target. retest is a special target to re-run the test target.
2012-05-02As described in comments, export ${TEST_ENV} instead of ${MAKE_ENV} to testobache1-2/+2
make process.
2011-09-08Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -iabs3-6/+7
to santise environment
2010-02-01Pass down PKGINFODIR just like PKGMANDIR is passed down.joerg1-1/+2
2009-01-10run ${_ULIMIT_CMD} in build-env targettnn1-3/+3
2008-12-04Added MAKE_ENV and MAKE_FLAGS to the list of important variables.rillig1-2/+2
2008-11-05Mentioned PKGSRC_RUN_TEST using the standard formatting.rillig1-1/+6
2008-02-13Added keywords for "bmake help".rillig1-1/+2
2008-02-07Replaced _PKG_SILENT and _PKG_DEBUG with RUN.rillig3-12/+12
2008-01-04Made the .include directives simpler, since the directory of therillig1-3/+3
including file is always the first in the search path.
2007-12-01Removed _INTERACTIVE_COOKIE, after asking on tech-pkg if anyone needsrillig2-6/+4
it. It had only been used to change the "nerrors" variable in bulk builds, but this variable is not used further anyway.
2007-11-30Since the "build" target is run inside the pkgsrc barrier, "build-env"rillig1-1/+5
gets the same treatment.
2007-08-13Fixed the definition and the documentation of MAKE_PROGRAM.rillig1-7/+8
2007-06-13Added the keyword "parallel" to the description of MAKE_JOBS_SAFE.rillig1-1/+3
2007-03-18Documented MAKE_JOBS_SAFE.rillig1-1/+7
2007-03-15For all those who are interested in the inner workings of pkgsrc, thererillig3-3/+17
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).
2007-03-08Moved the build-env target from bsd.pkg.debug.mk to build/build.mk. Itrillig1-1/+13
is no longer available to packages that set NO_BUILD. Added the variable BUILD_ENV_SHELL, since I prefer a comfortable shell over /bin/sh for interactive work.
2007-02-06Documented NO_BUILD.rillig1-1/+8
2007-01-28More documentation for the purpose of this file and a tiny wordingrillig1-4/+11
improvement for TEST_DIRS.
2007-01-27Document TEST_TARGET with help from Alistair Crooks.uebayasi1-1/+4
2006-12-15Remove trailing spaces.martti1-2/+2
2006-11-09Moved the portability checks from the configure/ directory to checks/,rillig1-1/+2
since according to the comment in check/bsd.check.mk, they belong there. Added a new check for all C and C++ header files to make sure they don't contain strings like ${prefix} or ${exec_prefix}, which is currently a problem with sysutils/dbus and has been noticed in PR 35019. This check is disabled by default since I don't know anything about possible false positives, but I plan to enable it for PKG_DEVELOPERs after some testing. Added two names for hooks that are placed in the configure and in the build phase. Now the checks look more like becoming something one could call a framework, sharing a common structure and a documented interface.
2006-10-26Changed BUILD_MAKE_FLAGS and TEST_MAKE_FLAGS to be appended to therillig2-10/+48
common MAKE_FLAGS instead of overriding them, to align with the new definition of INSTALL_MAKE_FLAGS. The packages that override BUILD_MAKE_FLAGS don't have to be changed, since they prepended MAKE_FLAGS to BUILD_MAKE_FLAGS, except for less than five cases. In those cases, it may well have been unknown to the package author that MAKE_INSTALL_FLAGS had been an overriding variable instead of one whose value is just appended to something else. Some packages (postgresql, some compilers, Java environments, qcad) are using code copied from build.mk. These packages will have to be adjusted to the new variable definitions. To make this change easier, two new variables BUILD_MAKE_CMD and TEST_MAKE_CMD have been introduced that contain the complete command that makes up the call to make(1). This prevents further code duplication.
2006-10-05Add experimental support for -j jobs building in the buildreed1-3/+9
target. MAKE_JOBS is undefined by default. You can test this by setting in mk.conf: MAKE_JOBS=5 for example. Some package just won't build correctly with this -- these individual packages can set MAKE_JOBS_SAFE=no to disable it. This is based on discussion from last December 2005. Some pkgsrc users are using ideas like this. Note I have been using this since December 2005 on various single processor and multiprocessor systems. (Once I kept some stats on performance but have misplaced that now.) I haved tested this with many packages (but not a bulk build) on Linux, NetBSD and DragonFly. This commit doesn't include the commits for the MAKE_JOB_SAFE. As this is experimental it needs more testing. Some examples of problems are: comms/lrzsz, databases/gramps2, editors/vim, graphics/MesaLib, graphics/netpbm, net/bind9, print/ghostscript-esp, textproc/libxml, and www/lynx.
2006-09-09Rename variable MAKEFILE to MAKE_FILE, as suggested in PR 28392.obache3-8/+8
2006-07-22Modify the barrier so that we always invoke the recursive make processjlam3-6/+6
when passing through the barrier. This ensures the PATH (passed via PKGSRC_MAKE_ENV) is correctly set for all phases after the barrier. This fixes a bug in "interactive" pkgsrc use, where if you have no work directory and type "make build && make install", then the "install" step does not have a PATH set to include all the wrapper and tools directories.
2006-07-21"BUILD_ENV" was misnamed. It's actually the environment that is passedjlam1-2/+2
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}.
2006-07-07Rename <phase>_COOKIE variables to _COOKIE.<phase>. These are privatejlam3-25/+25
variables so there are no user-visible changes. This change just makes it a little easier to write for loops.
2006-07-07The build target needs to be barrier aware even in the NO_BUILD case.seb1-2/+4
Without this a straight make fails in pkgsrc/pkgtools/pkg_comp.
2006-07-06The cookie files are indirectly made using *-cookie targets, so verifyjlam2-2/+4
that they are never being created more than once by inserting a check into the *-cookie targets.
2006-07-06Make "test" barrier-aware.jlam1-5/+11
2006-07-06Always run the "pkginstall" step even if NO_BUILD is specified.jlam1-2/+2
2006-07-05Flatten out recursive makes into a single re-invocation of make byjlam2-23/+18
introducing the concept of a "barrier". We separate the user-invokable targets into ones that must happen before the barrier, and ones that must happen after the barrier. The ones that happen after the barrier are run in a sub-make process. In this case, the targets that must be run after the barrier are from the "wrapper" step and beyond. We rewrite the various "flow" targets, e.g. wrapper, configure, build, etc., so that they of the right form to use the barrier target. This now completely removes the concept of PKG_PHASE from pkgsrc. It is replaced with the concept of "before" and "after" the barrier, and this state can be checked by testing for the existence of the barrier cookie file. Because we've removed most of the recursive makes, there is now nowhere to hook the PKG_ERROR_HANDLER.* commands, so remove them for now. As part of this commit, put back the logic that conditionalized the sources for the various cookie files. Because the sources are all "phony" targets, they were always run, regardless of whether or not the cookie file already existed. Now, if a cookie file exists, then that entire phase associated with that cookie file is skipped. Lastly, fix a thinko in configure/bsd.configure.mk where setting NO_CONFIGURE in a package Makefile would manage to skip the "wrapper" step altogether. Fix this by correctly noting "wrapper" and not "patch" as the preceding step to "configure".
2006-07-05Make the check-vulnerable target more self-sufficient, by moving somejlam3-10/+12
of the logic from fetch/fetch.mk into flavor/pkg/check.mk, so that check-vulnerable can be used as a source target. Make check-vulnerable a source target for every phase of the build workflow, which ensures that it is always run if the user starts a new phase from the command line. Fix the cookie-generation targets so that they don't append, only overwrite to the cookie file. This works around potential problems due to recursive makes. Move the cookie checks so that they surround the corresponding phase target. The presence of the cookie should now inform the make process to avoid doing any processing of phases that occur before the phase corresponding to the cookie.
2006-07-05Refactor configure, build, test and wrapper phases out of bsd.pkg.mkjlam4-0/+332
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.