summaryrefslogtreecommitdiff
path: root/mk/bsd.options.mk
AgeCommit message (Collapse)AuthorFilesLines
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.
2005-05-31The available options are shown before the dependencies are installed.rillig1-2/+2
Many package options influence the dependencies, so this order is more likely to be useful.
2005-05-31Rename describe-options to show-options, replacing the old show-optionsdillo1-9/+3
target.
2005-05-31To ease cleanup of the options namespace, add code to support legacydillo1-5/+31
option names: PKG_OPTIONS_LEGACY_OPTS+= old:new If PKG_DEFAULT_OPTIONS or PKG_OPTIONS.foo contains option old (or -old) it is rewritten to new (or -new) and a warning is issued by the supported-options-message target.
2005-05-28set PKG_FAIL_REASON if any unsupported option is listed in PKG_OPTIONS.xxxdillo1-8/+32
2005-05-25fix typo in documentationdillo1-7/+17
add support for negative options in PKG_OPTIONS_LEGACY_VARS (NO_FOO:-foo) undef temporary variables after for loop
2005-05-19The example is missing a definition for PKG_OPTIONS_VAR.jlam1-2/+3
2005-05-16Changed option processing to evaluate the options strictly from left torillig1-24/+15
right in each variable, starting with the most generic one. Later definitions override earlier ones. This makes the ``order'' testcase in regress/pkg-options succeed.
2005-05-14Don't process the file if either of PKG_SUPPORTED_OPTIONS or PKG_OPTIONS_VARrillig1-11/+10
is undefined. This avoids many unnecessary make(1) warnings. As this file is only intended to be used from packages, don't look for obsolete.mk in other directories than ../../mk/defaults/.
2005-05-08Rewrite how PKG_OPTIONS is computed:dillo1-111/+98
- PKG_SUGGESTED_OPTIONS (set by pkg maintainer in pkg Makefile) lists options enabled by default. - PKG_DEFAULT_OPTIONS (set by user in /etc/mk.conf) enables or disables (when prefixed with `-') options for all packages, takes precedence over PKG_SUGGESTED_OPTIONS - PKG_OPTIONS.foo (set by user in /etc/mk.conf) enables or disables (when prefixed with `-') options for a specific package, takes precedence over PKG_DEFAULT_OPTIONS and PKG_SUGGESTED_OPTIONS Also simplify conversion of legacy USE_XXX variables to options via the new PKG_OPTIONS_LEGACY_VARS variable and emit warnings if legacy variables are in use. Add a new target describe-options that lists all supported options with a one-line description, the options enabled by default and the currently enabled optoions. Reviewed by jlam and wiz. XXX: defaults/options.description has to be filled in XXX: the pkgsrc guide has to be updated
2005-04-28Make the pretty-printing actually work by passing all of the options onjlam1-3/+3
different lines to the word-wrap script.
2005-04-28We don't need to use ${SORT} to sort the options list. VAR:O will dojlam1-13/+6
nicely.