aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.options.mk
Commit message (Collapse)AuthorAgeFilesLines
* Document the new bsd.options.mk knobs.Mathieu Arnold2013-08-011-0/+32
| | | | | | | | | PR: ports/180949 Submitted by: mat Approved by: bapt Notes: svn path=/head/; revision=324101
* Add new ${OPT}_CONFIGURE_WITH option helpBaptiste Daroussin2013-07-291-0/+6
| | | | | | | | | it will handle the --with/--without configure argument dancing based on the value of the OPTION ${OPT} Requested by: mandree Notes: svn path=/head/; revision=323867
* - Document the use of ${OPTIONS_NAME}_(UN)SET(_FORCE).Tijl Coosemans2013-07-251-5/+23
| | | | | | | | | | | - Remove options in ${OPTIONS_NAME}_(UN)SET from NEW_OPTIONS list. - Remove an intermediate sort. - Add support for ${OPTIONS_NAME}_(UN)SET_FORCE. Approved by: bapt Notes: svn path=/head/; revision=323637
* Replace OPTIONSFILE by OPTIONS_FILE which is a more robust variable with unicityBaptiste Daroussin2013-06-261-0/+27
| | | | | | | | | | | | | | | | | | | | | | insurance in its path to avoid collision. A compatibility layer is available to automatically load and migration from OPTIONSFILE to OPTIONS_FILE (this is all transparent for users.) It is recommanded that ports that used to overwrite OPTIONSFILE to prevent the known bugs should keep the OPTIONSFILE overwrite for a while (6 month) to allow the migration to happen automatically and users to not lose their old save options. New options file is now based on the PKGORIGIN therefor the definition of the PKGORIGIN has been moved ealier in bsd.port.mk to allow it's usage from withing bsd.options.mk PR: ports/148637 Reviewed by: bdrewery Notes: svn path=/head/; revision=321785
* Add a forgotten helper:Baptiste Daroussin2013-06-141-0/+6
| | | | | | | ${OPT}_CMAKE_ON and ${OPT}_CMAKE_OFF Notes: svn path=/head/; revision=320926
* New macros to help dealing with ports that have options:Baptiste Daroussin2013-06-141-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OPTIONS_SUB=yes when set in a port, all the option names are automatically added to the PLIST_SUB with "@comment " value in case the option is off and empty value in case the options is on. ${OPT}_CONFIGURE_ENABLE=<aname> will automatically add: CONFIGURE_ARGS+=--enable-<aname> in case OPT is activated CONFIGURE_ARGS+=--disable-<aname> in case OPT is deactivated ${OPT}_CONFIGURE_ON=<something> will automatically add: CONFIGURE_ARGS+=<something> in case OPT is activated ${OPT_CONFIGURE_OFF=<something> will automatically add: CONFIGURE_ARGS+=<something> in case OPT is deactivated ${OPT}_CFLAGS will append the specified new flags to CFLAGS if OPT is 'on' ${OPT}_CXXFLAGS will append the specified new flags to CXXFLAGS if OPT is 'on' ${OPT}_LDFLAGS will append the specified new flags to LDFLAGS if OPT is 'on' ${OPT}_CONFIGURE_ENV will append the specified variables to CONFIGURE_ENV if OPT is 'on' ${OPT}_MAKE_ENV will append the specified variables to MAKE_ENV if OPT is 'on' ${OPT}_USES will append the speficied uses to USES if OPT is 'on' ${OPT}_DISTFILES will append the specified distiles to DISTFILES if OPT in 'on' Reviewed and tested by: bdrewery Notes: svn path=/head/; revision=320916
* - Reallign documentation for a tab width of 4.Tijl Coosemans2013-06-141-29/+55
| | | | | | | | | - Document variables that can be used in make.conf. Approved by: bapt Notes: svn path=/head/; revision=320911
* Sort PORT_OPTIONS only once and remove some undefines.Tijl Coosemans2013-06-141-17/+6
| | | | | | | Approved by: bapt Notes: svn path=/head/; revision=320909
* Let config-conditional take options configured in make.conf into account.Tijl Coosemans2013-06-141-8/+15
| | | | | | | | | | | | | | | | The option dialog will not appear if all options have been configured before, either using the dialog or in make.conf. This means you can set options once for all ports in make.conf and not have dialogs pop up if those are the only options. Also let config-conditional run make config instead of do-config. Make config handles NO_DIALOG and pre-config. Discussed with: danfe Approved by: portmgr (bapt) Notes: svn path=/head/; revision=320908
* Yet more factorisationBaptiste Daroussin2013-06-101-11/+4
| | | | Notes: svn path=/head/; revision=320450
* Factorise codeBaptiste Daroussin2013-06-101-30/+10
| | | | Notes: svn path=/head/; revision=320449
* Append per arch defaults directly to OPTIONS_DEFAULT. DuplicatesTijl Coosemans2013-06-101-5/+1
| | | | | | | are eliminated later. Notes: svn path=/head/; revision=320446
* Exclude options directly from OPTIONS_DEFINE and set ALL_OPTIONSTijl Coosemans2013-06-101-21/+6
| | | | | | | | | later. This simplifies the NO_OPTIONS_SORT case. Approved by: bapt Notes: svn path=/head/; revision=320445
* This should not have been in eitherBaptiste Daroussin2013-06-101-27/+0
| | | | Notes: svn path=/head/; revision=320444
* Partial revert of r320440 some things has been committed that shouldn't have yetBaptiste Daroussin2013-06-101-42/+28
| | | | Notes: svn path=/head/; revision=320443
* Removed useless quotesBaptiste Daroussin2013-06-101-1/+42
| | | | Notes: svn path=/head/; revision=320440
* Remove some redundant comments.Tijl Coosemans2013-06-091-2/+0
| | | | | | | Approved by: bapt Notes: svn path=/head/; revision=320344
* Eliminate _ALL_EXCLUDE temporary variable and fuse two .for loops.Tijl Coosemans2013-06-091-9/+2
| | | | | | | Approved by: bapt Notes: svn path=/head/; revision=320343
* Do not automatically popup dialog in case only options from global options ↵Baptiste Daroussin2013-06-071-0/+7
| | | | | | | | | are defined Requested by: many Notes: svn path=/head/; revision=320177
* Remove the OPTIONS parsing for real this timeBaptiste Daroussin2013-06-071-39/+0
| | | | Notes: svn path=/head/; revision=320149
* Fix exclusion of global options per portsBaptiste Daroussin2013-06-071-0/+1
| | | | Notes: svn path=/head/; revision=320147
* Readd the OPTIONS parser given that apparently someports still haven't been ↵Baptiste Daroussin2013-06-061-0/+39
| | | | | | | | | converted, and passed throught the grep that was supposed to find them all Reported by: Vincent Hoffman <vince@unsane.co.uk> Notes: svn path=/head/; revision=320098
* Remove support for parsing the old OPTIONS macro, the compatibility code to ↵Baptiste Daroussin2013-06-061-39/+0
| | | | | | | load the old optionsfile and compatibility with WITH_ and WITHOUT_ in make.conf remains for now; Notes: svn path=/head/; revision=320055
* Remove empty radio/single/group/multi options from listsBaptiste Daroussin2013-06-051-0/+23
| | | | | | | This can happen due to slave/exclude Notes: svn path=/head/; revision=320007
* Fix NO_OPTIONS_SORTBaptiste Daroussin2013-05-021-2/+0
| | | | | | | Reported by: hrs, osa Notes: svn path=/head/; revision=317089
* Rework OPTIONS_EXCLUDE and OPTIONS_EXCLUDE_${ARCH} so that is also get excludedBaptiste Daroussin2013-04-291-9/+63
| | | | | | | | | | | | | | | | from the SINGLE/MULTI/GROUP/RADIO Add new (OPTIONS|${UNIQUENAME}_(UN)SET_FORCE to force options from make.conf what ever has been saved via make config [1] Add new OPTIONS_SLAVE designed to help slaved ports, each options added to OPTIONS_SLAVE will be removed from master's OPTIONS_DEFINE, and PORT_OPTIONS will be set as if always on. Submitted by: Marco Steinbach <coco@executive-computing.de> [1] Notes: svn path=/head/; revision=316825
* Fix mismatched bracketsBaptiste Daroussin2013-03-251-1/+1
| | | | | | | Submitted by: draco@marino.st Notes: svn path=/head/; revision=315205
* Extend the options framework providing 2 new macros:Baptiste Daroussin2012-12-101-5/+27
| | | | | | | | | | | | | OPTIONS_RADIO: a more user friendly way to allow selecting only 0 or 1 options among a list of options OPTIONS_GROUP: this macros should be used to group options by theme allowing the user to select 0 or N options among a list of options With hat: portmgr Reviewed by: beat Notes: svn path=/head/; revision=308598
* We are in 2012, it is time to activate IPV6 options by default everywhereBaptiste Daroussin2012-10-101-0/+3
| | | | Notes: svn path=/head/; revision=305638
* Options can now be overridden from command line usingBaptiste Daroussin2012-10-051-0/+15
| | | | | | | | | | | | WITH/WITHOUT. Name has been proprosed by gahr during brainstorming on ports@ PR: ports/170180 Submitted by: ohauer Notes: svn path=/head/; revision=305300
* compare options loading from /var/db/port/options and make.conf against theBaptiste Daroussin2012-07-161-3/+12
| | | | | | | | | complete list of options. COMPLETE_OPTIONS_LIST being OPTIONS_DEFINE + all the OPTIONS_SINGLE_* + all the OPTIONS_MULTI_* Notes: svn path=/head/; revision=300983
* - Document new options framework in bsd.options.mkBaptiste Daroussin2012-07-161-0/+40
| | | | | | | | | | - new OPTIONS_DEFINE_${ARCH} and OPTIONS_DEFAULT_${ARCH} to define and activate options per arches. - No more append to PORT_OPTIONS options that are not in OPTIONS_DEFINE, (in the expection of DOCS, NLS, EXAMPLES for compatibility) Notes: svn path=/head/; revision=300943
* Add new OPTIONS_EXCLUSE_${ARCH} to be able to exclude an option on the given ↵Baptiste Daroussin2012-07-131-0/+5
| | | | | | | | | | | | | | arch Fix xorg-server on sparc64 by excluing the HAL option on sparc64 has it used to be before convertion to new options framework [1] Reported by: marius@ Tested by: marius@ Approved by: kwm [1] Notes: svn path=/head/; revision=300845
* Do not search for upper case uniquename what setting per ports optionsBaptiste Daroussin2012-06-061-2/+2
| | | | Notes: svn path=/head/; revision=298581
* Activate NO_OPTIONS_SORT by default when the ports still use the old framework,Baptiste Daroussin2012-06-051-0/+1
| | | | | | | | | that case user still get the exact same out as prior optionsng, for converter ports NO_OPTIONS_SORT remains per port so that by default options are sorted but maintainer can decided to unsort them. Notes: svn path=/head/; revision=298425
* Allow NO_OPTIONS_SORT to work with old OPTIONSBaptiste Daroussin2012-06-051-0/+3
| | | | | | | Requested by: dougb@ Notes: svn path=/head/; revision=298423
* Remove crufts committed by mistakeBaptiste Daroussin2012-06-041-3/+0
| | | | | | | Reported by: matthew@ Notes: svn path=/head/; revision=298349
* Fix loading of old optionsBaptiste Daroussin2012-06-041-13/+15
| | | | | | | Tested by: flo@, gelraen (via IRC) Notes: svn path=/head/; revision=298346
* Remove the double quotes while converting from old options framework to new one.Baptiste Daroussin2012-06-021-1/+1
| | | | | | | | | This fix the too long options breaking the UI Reported by: Oliver Pinter <oliver.pntr@gmail.com> (via private mail) Notes: svn path=/head/; revision=297999
* by default optionsng sort the options before prompting to them.Baptiste Daroussin2012-06-011-0/+12
| | | | | | | | | add a new KNOB for maintainers: NO_OPTIONS_SORT to prevent from sorting the options. Requested by: osa@ Notes: svn path=/head/; revision=297932
* if user set OPTIONS_UNSET EXAMPLES they create NOPORTEXAMPLES variable forBaptiste Daroussin2012-05-291-0/+4
| | | | | | | | | compatibility With hat: portmgr Notes: svn path=/head/; revision=297687
* - Do not activate EXAMPLES by default if NOPORTEXAMPELS is setMartin Wilke2012-05-291-0/+5
| | | | | | | | | - Add shared EXAMPES descriptions With hat: portmgr Notes: svn path=/head/; revision=297684
* Do not activate DOCS by default if NOPORTDOCS is setBaptiste Daroussin2012-05-291-2/+4
| | | | Notes: svn path=/head/; revision=297678
* Fix python's make config [1]Baptiste Daroussin2012-05-291-36/+9
| | | | | | | | | | Better backward compatibility [2] Reported by: ketas (on #bsdports) [1], flo@ [2] Tested by: flo@ [2] Notes: svn path=/head/; revision=297667
* recreate the WITH_/WITHOUT_ options for compatibilityBaptiste Daroussin2012-05-291-2/+41
| | | | Notes: svn path=/head/; revision=297664
* New options framework for the portsBaptiste Daroussin2012-05-291-0/+148
for maintainers: it introduces 3 different types of options: simple, multi and single: - simple options are the same as the current options (i.e. on or off.) - multi options are options where at least one must be set (1-N). - single options are options where one and only one must be set (exclusive options). for users: - OPTIONS_SET: globally enable some options - OPTIONS_UNSET: globally disable some options - ${UNIQUENAME}_SET: enable per-port choice of options - ${UNIQUENAME}_UNSET: disable per-port choice of options For compatibility the old OPTIONS framework is now working on top of the new one The options previously set with old OPTIONS are imported and converted transparently. A new knob NO_DIALOG if defined in the the config-conditional target is ignored (prevent the dialog(1) ui to show up. Thanks to all people involved: beat@, crees@, Bryan Drewery, linimon@, novel@ and others, for testing, comments, patches Notes: svn path=/head/; revision=297660