summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2006-07-14Avoid using # and % to strip prefix/suffix from variable values -- notjlam1-3/+2
enough agreement on how that should work amongst Bourne shell variants.
2006-07-13Fixed default path wildcards for CHECK_INTERPRETER_SKIP. Now theyheinz1-4/+6
actually apply to the whole subtree.
2006-07-13Check whether the "checksum" target is defined beforehand to preventjlam1-2/+6
"duplicate script" collisions with the one defined by bsd.pkg.mk if PKG_*_REASON is set.
2006-07-13Check whether the checksum target is defined before defining one.jlam1-3/+5
This fixes problems where a package sets PKG_*_REASON, which causes bsd.pkg.mk to define its own "checksum" replacement, which causes a "duplicate script" make error to occur.
2006-07-13* Fix bug when more than one file needed to be checksummed.jlam1-4/+3
* Avoid shell differences between /bin/sh and Korn shell by using: while read line; do list; done < FILE instead of cat FILE | while read line; do list; done
2006-07-13Try to avoid possible differences in processing "$@".jlam1-4/+5
2006-07-13Backslash escape the parentheses so the shell doesn't think it shouldjlam1-2/+2
do shell expansion. Fixes a bug picked up by /bin/ksh and by /bin/sh in -current.
2006-07-13Fix some quoting errors and a harmless copy-and-paste error.jlam1-4/+4
2006-07-13Add a few more double-quotes around eval'ed variables.jlam1-5/+5
2006-07-13Add DIGEST to the variables defined by default.jlam1-1/+2
2006-07-13DIGEST is no longer defined, so use TOOLS_DIGEST instead.jlam1-2/+2
2006-07-13Remove line noting that "this file was derived from bsd.ports.mk".jlam1-3/+1
The contents of this file are no longer remotedly related to bsd.ports.mk, and pkgsrc's heritage from ports is documented elsewhere.
2006-07-13* Add a new stage "bootstrap-depends" that happens before all otherjlam18-270/+556
stages, and that installs dependencies listed in BOOTSTRAP_DEPENDS. The bootstrap-depends step works just like the normal depends step and honors the value of DEPENDS_TARGET. It's now possible to add dependencies solely to facilitate fetching the distfiles, e.g. BOOTSTRAP_DEPENDS+= curl-[0-9]*:../../www/curl * Teach the tools framework about ":bootstrap" as a tools modifier which indicates the tool should be added as a dependency via BOOTSTRAP_DEPENDS. * Add "digest" to the tools framework. * Use USE_TOOLS+=digest:bootstrap to force pkgsrc to install digest before anything else. Get rid of unused "uptodate-digest" target and related digest version-checking code. * Finish the refactoring work: split checksum-related code out of bsd.pkg.mk and into pkgsrc/mk/checksum and replace the "checksum" target command list with a script that does all the real work. * Make DIGEST_ALGORITHMS and PATCH_DIGEST_ALGORITHM into private variables by prepending them with an underscore. Also, rename _PATCH_DIGEST_ALGORITHM to _PATCH_DIGEST_ALGORITHMS and adjust the makepatchsum target to allow that variable to contain a list of algorithms, all of which are used when creating the patch checksums for ${DISTINFO_FILE}.
2006-07-13Add cgi which is used by the PHP packageadrianp1-0/+1
2006-07-12Add bn_IN locale for atk-1.12.1.wiz13-13/+65
2006-07-12Removed the leading "-" of a shell command. The unexpected error messagerillig1-3/+5
that it had produced had confused me.
2006-07-11Fix grammar in messages. From David A. Holland in PR 33975.wiz1-3/+3
2006-07-10Completely nuke the concept of PKG_PHASE from pkgsrc except for thejlam3-27/+8
purposes of caching MAKEVARS within bsd.pkg.mk and bsd.makevars.mk.
2006-07-10Back out revision 1.172 of mk/tools/replace.mk -- we never want tojlam4-26/+26
allow IMAKE to be set by anything other than the tools framework. Modify the IRIX files so that the native imake is listed as a built-in tool in the case where X11_TYPE is "native". Also, move the include of tools/default.mk a bit lower in bsd.prefs.mk so that tools.${OPSYS}.mk files can use the value of X11_TYPE. This should properly set and point IMAKE to the right binary on IRIX without destroying the configuration for platforms where IMAKE was not explicitly set, i.e. every non-IRIX platform.
2006-07-10Remove reference to buildlink2.wiz2-4/+4
2006-07-10Fix typo in comment.wiz1-2/+2
2006-07-10Always add dependencies for packages pulled in indirectly buildlink3 thatjlam1-22/+13
are build dependencies. This should fix PR pkg/33940. Thanks to Joerg for the debugging hint.
2006-07-10Fix reversed test... noted by deiter roelants on tech-pkg.jlam1-2/+2
2006-07-10The wrapper for perl silently failed, giving no hint thatrillig2-3/+11
USE_TOOLS+=perl was necessary. Therefore, added a new class of tools, TOOLS_FAIL, which records the call in a .warnings file, which is later printed to the user. At least when the tool is first called in the "configure" phase; I didn't test other phases.
2006-07-08Change the format of BUILDLINK_ORDER to contain depth information as well,jlam7-11/+38
and add a new helper target and script, "show-buildlink3", that outputs a listing of the buildlink3.mk files included as well as the depth at which they are included. For example, "make show-buildlink3" in fonts/Xft2 displays: zlib fontconfig iconv zlib freetype2 expat freetype2 Xrender renderproto
2006-07-08make sure the IMAKE definition, if set, is used in case X11_TYPE is nativeschwarz1-2/+5
2006-07-08Track information in a new variable BUILDLINK_ORDER that informs usjlam5-5/+10
of the order in which buildlink3.mk files are (recursively) included by a package Makefile.
2006-07-08Document dar-int32 and dar-int64 options.dsainty1-0/+2
Dar is built by default with an arbitrary-size-integer library for managing all file length/timestamp details. If 32-bit or 64-bit integers (with overflow protection) are sufficient for requirements, the dar-int32 and dar-int64 options can significantly reduce the run-time memory and CPU overheads of Dar.
2006-07-08Update the comments to reflect the current default workflow.jlam1-2/+4
2006-07-07Rename <phase>_COOKIE variables to _COOKIE.<phase>. These are privatejlam25-160/+160
variables so there are no user-visible changes. This change just makes it a little easier to write for loops.
2006-07-07Remove the commands that tried to make the ${X11BASE} directory if itjlam1-8/+2
didn't exist. Those commands were never run anyway, but moving the .MAIN target exposed these commands as unassociated.
2006-07-07LIBTOOL_OVERRIDE and SHLIBTOOL_OVERRIDE have slightly differentjlam1-13/+33
semantics in pkgsrc. Because libtool-override is run by default whenever USE_LIBTOOL is specified, LIBTOOL_OVERRIDE never needs to be defined, and some packages set it to nothing to avoid running libtool-override. However, shlibtool-override is only run if SHLIBTOOL_OVERRIDE is defined and non-empty. Split the code for libtool-override and shlibtool-override to reflect these differing semantics. This should make the PHP packages build again by not overriding libtool.
2006-07-07No need to define LIBTOOL_OVERRIDE explicitly since libtool-override.mkjlam1-2/+1
will search for libtool scripts up to ${OVERRIDE_DIRDEPTH} below ${WRKSRC} already.
2006-07-07Move the STEP_MSG outside of the .if.endif block so it's always printed.jlam1-3/+3
2006-07-07Add missing "rm" statement that was causing the libtool wrapper to bejlam1-1/+2
overwritten in the case where LTCONFIG_OVERRIDE was defined. As a side note, after analyzing the way that the original code in bsd.pkg.mk worked, I think we can nuke LTCONFIG_OVERRIDE completely, but we'll need a bulk build to verify this. The original code always replaced the libtool scripts because LIBTOOL_OVERRIDE is always defined in bsd.pkg.use.mk, so LTCONFIG_OVERRIDE essentially had no effect.
2006-07-07Make configure, install, and package barrier-aware even if NO_CONFIGURE,jlam3-6/+12
NO_INSTALL, or NO_PACKAGE are defined.
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 verifyjlam11-11/+24
that they are never being created more than once by inserting a check into the *-cookie targets.
2006-07-06Remove an unnecessary target... ${_BARRIER_COOKIE} has no source targetsjlam1-5/+5
so it might as well be the target name.
2006-07-06The "replace" target does conceptually the same thing as the "install"jlam2-5/+7
target in that it installs the currently-built software into the filesystem. In that case where "replace" is specified as a target on the command line, make "replace" and not "install" be the source target for "package". Also, place the "replace" target between the "install" and "package" targets in _BARRIER_POST_TARGETS as it should be legal to do those steps in that order (but not in another order). These changes make the following work: make replace package In this example, the currently installed package will be replaced and the newly-installed software will be packaged, all within the same make process.
2006-07-06Make it a little easier to read the lock/unlock output by inserting somejlam1-3/+3
quotes.
2006-07-06Refactor the README.html generation code from bsd.pkg.mk into a separatejlam2-314/+343
bsd.pkg.readme.mk and document the public targets and variables for this new file.
2006-07-06Never skip the wrapper step, even if NO_BUILD is set. There are packagesjlam1-5/+1
that invoke the compiler in either the configure or install steps that we still need to guard against.
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-06Fix previous... instead of moving bsd.pkg.barrier.mk down below .MAIN,jlam1-6/+6
move .MAIN all the way to the top of the file. bsd.pkg.barrier.mk (currently) needs to be included before bsd.wrapper.mk since it defines _BARRIER_COOKIE, which is expanded and used in place within bsd.wrapper.mk. This makes the "wrapper" phase run again.
2006-07-06Move inclusion of bsd.pkg.barrier.mk under the .MAIN target becausejlam2-5/+6
bsd.pkg.barrier.mk uses the "make()" test expression. Also, include "all" as a post-barrier target since it is implicitly the ".MAIN" target when a user just types "make" in a package directory.
2006-07-06Order the _BARRIER_POST_TARGETS so that if more than one is specified onjlam1-17/+29
the command-line, then we don't invoke make once for each target, and pass them to the sub-make in a sensible order.
2006-07-06Fix cut-and-paste goof.jlam1-4/+4
2006-07-06On Solaris set _COMPILER_ABI_FLAG.64 to be consistent with the sunpromarkd1-1/+5
settings.