summaryrefslogtreecommitdiff
path: root/mk/alternatives.mk
AgeCommit message (Collapse)AuthorFilesLines
2005-01-25Explicitly use -g to avoid relying on default behavior.jmmv1-3/+3
2005-01-25Redo previous per suggestion from reed@. Do not process the alternativesjmmv1-21/+10
until the pkg_alternatives package has been manually installed. This way we drop the dependency on that package.
2005-01-25Make the usage of alternatives optional through the PKG_ALTERNATIVES variable,jmmv1-6/+19
which is similar to PKG_CONFIG. This does not change how the binary packages are built, only whether the pkg_alternatives command should be run at package installation/deinstallation time or not. The variable can take either YES or NO as values and defaults to YES.
2005-01-25Add alternatives.mk, a file used to manipulate the alternatives system.jmmv1-0/+56
A package can optionally provide an ALTERNATIVES file which contains pairs of wrapper/alternative, one per line. The file is then used by the install and deinstall scripts to register the alternatives and to create the appropriate wrappers. Make bsd.pkg.mk include this new file. This happens unconditionally to keep all the alternatives logic in an independent file. Otherwise, some of the stuff could have to be moved to bsd.pkg.mk, breaking consistency.