summaryrefslogtreecommitdiff
path: root/mk/bsd.options.mk
AgeCommit message (Collapse)AuthorFilesLines
2020-06-06mk/bsd.options.mk: remove redundant assignment to PKG_OPTIONSrillig1-5/+3
This assignment has popped up various times in the pkglint output, even though it is defined in the infrastructure and not in a specific package. Since there is no need to have this duplicate assignment, it is removed.
2020-06-06mk/bsd.options.mk: document variables in the canonical orderrillig1-5/+5
2020-05-03mk/bsd.options.mk: make deprecated options more visiblerillig1-5/+5
Up to now, the generated warnings were not prefixed with anything.
2020-05-03mk/bsd.options.mk: fix comment for bmake helprillig1-2/+2
Before, "bmake help" only printed the second section of the help topic.
2018-11-30mk/misc: make configuration for show-all targets more configurablerillig1-1/+2
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).
2016-12-01Add PKG_DISABLED_OPTIONS.wiz1-1/+12
This variable contains the options that are NOT enabled for a package.
2016-03-23Move handling for PKG_SUPPORTED_OPTIONS and PKG_SUGGESTED_OPTIONS asjperkin1-1/+11
OPSYSVARS to bsd.options.mk as they affect tests against PKG_OPTIONS before bsd.pkg.mk is parsed. Approved for commit during the freeze by agc@.
2013-06-07Move show-depends-options again, to be worked form non-option packages.obache1-11/+1
2013-05-12Strip minus for warning about disabling unsupported options.riastradh1-2/+2
2013-05-12Move show-depends-options, it is pkgformat independ target.obache1-1/+11
2013-05-11Warn, don't fail, on disabling an unsupported option.riastradh1-1/+5
2008-02-18Move show-depends-options target from bsd.options.mk to flavor/pkg/utility.mkobache1-11/+1
to work with option-less packages.
2008-02-18Add target "show-depends-options" to show depends's options recursively.obache1-1/+11
2007-10-28Protect against multiple inclusion. This fixes the "sane-frontends"tron1-1/+6
package which includes "bsd.options.mk" via its own "options.mk" and via "graphics/gimp/buildlink3.mk".
2007-10-13Fix the .include lines so that make looks in the right place first.dsl1-3/+3
Remember .include "foo.mk" is looked for (first) in the directory that contains the makefile being processed (like in C), so remove all the ${.PARSEDIR} and ../ sequences that just cause grief.
2007-10-07Added _VARGROUPS.rillig1-1/+10
2007-08-29Hey Johnny, I thought you could still write code that also works withrillig1-11/+7
Solaris' /bin/sh.
2007-08-14Avoid checking whether PKG_OPTIONS_DEPRECATED_WARNINGS is defined injlam1-9/+9
the makefile and simply handle it in the shell code. This allows for appending to PKG_OPTIONS_DEPRECATED_WARNINGS in a makefile even after bsd.options.mk is included.
2007-06-06Removed the outer .if ... .endif, so that I don't need to indent therillig1-22/+23
other conditionals. Indented all conditionals according to pkglint's idea of correct indentation. All packages that use this file must also have some options. Otherwise, why should they use it at all? All errors are _appended_ to PKG_FAIL_REASON, instead of overwriting older ones.
2007-03-07Split the documentation into a user and a developer part.rillig1-3/+8
2006-10-01The value of PKG_OPTIONS_VAR is printed as is in an error message. Thisrillig1-2/+3
makes "double quotes" visible when they are accidentally included by the pkgsrc user.
2006-09-25PR pkg/33876: use the actual package name instead of "this package" inghen1-2/+2
supported-options-message. ok with wiz.
2006-06-06Make show-options target output shorter as requested by dillo@seb1-8/+2
2006-06-03First pass at implementing support for package system flavors otherjlam1-2/+2
than pkgsrc's current one. This is an important lead-up to any project that redesigns the pkg_* tools in that it doesn't tie us to past design (mis)choices. This commit mostly deals with rearranging code, although there was a considerable amount of rewriting done in cases where I thought the code was somewhat messy and was difficult to understand. The design I chose for supporting multiple package system flavors is that the various depends, install, package, etc. modules would define default targets and variables that may be overridden in files from pkgsrc/mk/flavor/${PKG_FLAVOR}. The default targets would do the sensible thing of doing nothing, and pkgsrc infrastructure would rely on the appropriate things to be defined in pkgsrc/mk/flavor to do the real work. The pkgsrc/mk/flavor directory contains subdirectories corresponding to each package system flavor that we support. Currently, I only have "pkg" which represents the current pkgsrc-native package flavor. I've separated out most of the code where we make assumptions about the package system flavor, mostly either because we directly use the pkg_* tools, or we make assumptions about the package meta-data directory, or we directly manipulate the package meta-data files, and placed it into pkgsrc/mk/flavor/pkg. There are several new modules that have been refactored out of bsd.pkg.mk as part of these changes: check, depends, install, package, and update. Each of these modules has been slimmed down by rewriting them to avoid some recursive make calls. I've also religiously documented which targets are "public" and which are "private" so that users won't rely on reaching into pkgsrc innards to call a private target. The "depends" module is a complete overhaul of the way that we handle dependencies. There is now a separate "depends" phase that occurs before the "extract" phase where dependencies are installed. This differs from the old way where dependencies were installed just before extraction occurred. The reduce-depends.mk file is now replaced by a script that is invoked only once during the depends phase and is used to generate a cookie file that holds the full set of reduced dependencies. It is now possible to type "make depends" in a package directory and all missing dependencies will be installed. Future work on this project include: * Resolve the workflow design in anticipation of future work on staged installations where "package" conceptually happens before "install". * Rewrite the buildlink3 framework to not assume the use of the pkgsrc pkg_* tools. * Rewrite the pkginstall framework to provide a standard pkg_* tool to perform the actions, and allowing a purely declarative file per package to describe what actions need to be taken at install or deinstall time. * Implement support for the SVR4 package flavor. This will be proof that the appropriate abstractions are in place to allow using a completely different set of package management tools.
2006-06-03I usually have the following stuffed in a mk.conf target or a scriptseb1-1/+10
and that is 3 make process to run... make show-options; v=$(make show-var VARNAME=PKG_OPTIONS_VAR); echo $v=$(make sh ow-var VARNAME=$v) Hence add trailing part about PKG_OPTIONS_VAR and its value to show-options target like the one found in supported-options-message target.
2006-05-31Adapt pkgsrc documentation examples to the new databases/openldap-clientghen1-3/+3
package.
2006-04-14Make the display of show-options more readable when there are lots ofjlam1-4/+8
options, e.g. x11/xorg-server, by wordwrapping the output.
2006-04-13Update path from cyrus-sasl2 to cyrus-sasl.wiz1-2/+2
2005-11-14Removed trailing white-space from a comment.rillig1-2/+2
2005-09-05Improve warning for deprecated variables, prompted by wiz.dillo1-2/+4
2005-07-28Fix some more typos, noted by Leonard Schmidt.dillo1-3/+3
2005-07-28Fix typo in comment, from Leonard Schmidt via tech-pkg.wiz1-3/+3
2005-07-26Fix typos in last, noted by wiz.dillo1-2/+2
2005-07-26Add support for sets of options where at least one option from eachdillo1-10/+53
set must be selected, requested and reviewed by wiz: PKG_OPTIONS_NONEMPTY_SETS This is a list of names of sets of options. At least one option from each set must be selected. The options in each set are listed in PKG_OPTIONS_SET.<setname>. Options from the sets will be automatically added to PKG_SUPPORTED_OPTIONS.
2005-07-19Also print deprecated warnings in show-options target.dillo1-1/+8
2005-07-19PKG_OPTIONS_LEGACY_OPTS: only issue deprecated warning if the olddillo1-2/+2
option is used. Noted by adrianp.
2005-06-11Allow this file to be included even if no options are supporteddillo1-6/+9
(as may be the case if all options are platform specific). In that case set PKG_OPTIONS to empty and skip the rest of the file. Okayed by jlam.
2005-06-09Fix harmless typo.jlam1-2/+2
2005-06-08Fix variable name in comment: it is PKG_OPTIONS_VAR, with an S.wiz1-2/+2
2005-06-08fix variable name in example commentdillo1-2/+2
2005-06-06make legacy variables external:dillo1-10/+28
PKG_LEGACY_OPTIONS PKG_OPTIONS_DEPRECATED_WARNINGS
2005-06-04Improve the way option groups are displayed in show-options.dillo1-12/+26
While here, rename _cls_ to _grp_, as they are called groups.
2005-06-04Fix variable names in usage example.seb1-3/+3
2005-06-03don't requrie PKG_SUPPORTED_OPTIONS to be set when groups are in usedillo1-5/+8
2005-06-02add group options to PKG_SUPPORTED_OPTIONS before includeingdillo1-4/+6
mk/defaults/obsolete.mk so socks and kerberos work when listed in groups
2005-06-02Whitespace nit.wiz1-2/+2
2005-06-02add support for groups of mutually exclusive options viadillo1-4/+76
PKG_OPTIONS_REQUIRED_GROUPS and PKG_OPTIONS_OPTIONAL_GROUPS.
2005-06-01fix bug in legacy vars handling for option names containing `-',dillo1-2/+2
found by jmmv.
2005-05-31PKG_FAIL_REASON must be (double-)quoted to achieve the correct output.jmmv1-2/+2
2005-05-31Show a deprecated warning even if the deprecated variable is set towiz1-3/+9
something other than [yY][eE][sS]. If a deprecated warning is defined, interpret it as YES (because some variables in defaults/mk.conf have defined/not defined as yes/no). Reviewed by dillo.