aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.options.mk
Commit message (Collapse)AuthorAgeFilesLines
* * Add USE_GITLAB for fetching from www.gitlab.com and GitLab deployed sites.ultima2018-03-031-2/+3
| | | | | | | Reviewed by: mat Approved by: portmgr (mat) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D12162
* Remove support for variables that have been deprecated for a while.mat2018-01-091-63/+7
| | | | | | | | | | | | | | | | | | | | | | | | variables deprecation revision WITHOUT_NLS 2013-12-13 r336337 WITH_/WITHOUT_ 2014-02-24 r345870 NOPORT(DOC|EXAMPLE)S 2014-04-19 r351587 WITH_BDB_VER 2016-05-02 r414444 OVERRIDE_LINUX_BASE_PORT 2016-09-05 r421387 WITH_OPENSSL_(BASE|PORT) 2016-06-16 r416965 While there, add an ERROR variable that works like DEV_ERROR, but for user facing errors, and move NOPORTDOCS, NOPORTEXAMPLES and WITHOUT_NLS to it. Cleanup bsd.sanity.mk a bit. Fix fallout. PR: 224613 Submitted by: mat Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D13490
* Add an option helper for BINARY_ALIASbapt2017-12-201-1/+1
|
* Follow-up r454266: Sort and remove duplicates for [DE]SELECTED_OPTIONS.bdrewery2017-11-171-4/+6
| | | | | | | | Some ports like graphics/povray-meta do funky things like add the same option into PORT_OPTIONS twice. This also avoids a new leading blank space in some cases. With hat: portmgr
* Fix [DE]SELECTED_OPTIONS to lazily evaluate as late as possible.bdrewery2017-11-161-14/+7
| | | | | | | | | | | | | If a port modifies OPTIONS_UNSET after including bsd.port.options.mk then these values were wrong even though all of 'showconfig', 'pretty-print-config', and the package generated all had the expected options. Only Poudriere and synth use these variables for incremental build checks. Reviewed by: sjg, bapt Approved by: portmgr (bapt) Differential Revision: https://reviews.freebsd.org/D13092
* Meson is picky about the arguments of build options.kwm2017-06-101-0/+19
| | | | | | | | | | | For example a option of the "boolean" type only accepts true/false this option is covered by ${opt}_MESON_TRUE/_FALSE. Add option helpers ${opt}_MESON_YES/_NO for the "combo" type which accepts yes and no. Approved by: portmgr@ (mat@) Differential Revision: https://reviews.freebsd.org/D11078
* * Fix MESON_TRUE/MESON_FALSE comment, to mention the actualy meson argument.kwm2017-04-181-10/+10
| | | | | | | * Rework option hanlding to be more clear and to avoid double negative. Submitted by: antoine@ Approved by: antoine@
* Introduce new "meson" USES.kwm2017-04-181-2/+26
| | | | | | | | | This uses will handling building software that uses the meson build system. Expand the option framework to handle MESON options. Approved by: portmgr (swills@) Differential Revision: https://reviews.freebsd.org/D104091
* Revert r398829: do not change OPTIONS when DEVELOPER=yesantoine2017-01-071-4/+0
| | | | | | Having a TEST option is usually a bad idea With hat: portmgr
* Revert r429298 it has some unexpected side effects which I do not have time tobapt2016-12-251-1/+1
| | | | | | fix yet Approved by: portmgr (implicit)
* Make the ports infrastructure accept at least 3 level portsbapt2016-12-241-1/+1
| | | | | Approved by: portmgr (rene Differential Revision: https://reviews.freebsd.org/D8889
* Add an OPTIONS_EXCLUDE_opsys_osrel.mat2016-11-241-1/+4
| | | | Sponsored by: Absolight
* Change the way opt_USE is parsed.mat2016-10-121-6/+6
| | | | | | | | | | | This makes it possible to have: opt_USE= ldconfig=${PREFIX}/lib/foo/bar Before this, it would have ended up doing USE_LDCONFIG=/lib/foo/bar, without ${PREFIX}. Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D8169
* Don't duplicate the list of options helpers.mat2016-08-311-11/+5
| | | | | | | People who come here can read the code, they will be able to understand the variable definition. Sponsored by: Absolight
* Add GH_SUBDIR to option helpers.mat2016-08-311-6/+6
| | | | | Submitted by: lightside gmx com Sponsored by: Absolight
* Move USE_BDB and PLIST_DIRSTRY to the unsupported section, all the portsmat2016-08-171-2/+2
| | | | | | have been converted. Sponsored by: Absolight
* Add opt_CMAKE_BOOL_OFF, oposite of opt_CMAKE_BOOL.mat2016-06-271-0/+9
| | | | | PR: 210576 Sponsored by: Absolight
* Add an opt_CMAKE_BOOL options helper.adamw2016-06-261-0/+10
| | | | | | | | | | | | | SOMEOPT_CMAKE_BOOL= WITH_FOO BAR expands to: -DWITH_FOO:BOOL=true -DBAR:BOOL=true or -DWITH_FOO:BOOL=false -DBAR:BOOL=false PR: 210576 Approved by: portmgr (mat)
* Fix excluding implied options.bdrewery2016-05-041-0/+10
| | | | | | | | | This fixes the devel/git-lite port to not get PERL despite being excluded. PR: 207460 PR: 202701 With hat: portmgr Differential Revision: https://reviews.freebsd.org/D5538
* Add MASTER_SITES to options helpers.mat2016-03-151-3/+4
| | | | Sponsored by: Absolight
* Add GH_TUPLE to the options flags too.mat2016-03-021-4/+4
| | | | Sponsored by: Absolight
* Be consistent.mat2015-12-301-3/+3
| | | | | Noticed by: amdmi3 Sponsored by: Absolight
* Remove unneeded .for loops.mat2015-12-301-12/+4
| | | | | Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D4484
* Mk/bsd.options.mk: Introduce SELECTED_OPTIONS, DESELECTED_OPTIONSmarino2015-12-151-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Until now, the only way to obtain information on the valid port options and the current selection states is by using the pretty-print-config target. It would look something like this: > make -C /usr/ports/lang/gcc5-aux print-print-config Standard[ +FORT +OBJC +NLS -TESTSUITE -ALLSTAGES -STATIC ] \ Bootstrap[ -BOOTSTRAP ] To process the total options and the selection state of each option requires additional processing, e.g. with awk and/or sed. Moreover, if other information is needed about the port it question, it would require a second execution of "make" to reveal variable values. There simply is no other way to obtain the option selection information in a single pass (this limitation came when options framework was brought in). This enhancement allows the option selection information to revealed with make -V so that all port information can be acquired in a single pass. Moreover, they won't require piping through sed or awk. Two read-only variables are introduced: SELECTED_OPTIONS (list of all "on" options) DESELECTED_OPTIONS (liss of all "off" options) Here's an example of a single pass acquisition: > make -C /usr/dports/lang/gcc5-aux -V PKGNAME -V SELECTED_OPTIONS \ -V DESELECTED_OPTIONS gcc5-aux-20150716 NLS OBJC FORT BOOTSTRAP STATIC ALLSTAGES TESTSUITE Obviously the grouping information seen in pretty-print-config is lost, so these new variables will not help if option group information is required. Approved by: portmgr (bapt)
* Refactor the list of all excluded options so that the second place it ismat2015-11-131-3/+5
| | | | | | | | needed is not forgotten any more. PR: 204510 With hat: portmgr Sponsored by: Absolight
* Enable TEST option if DEVELOPER is setamdmi32015-10-081-0/+4
| | | | | | | | | | TEST option is used when a port needs extra depends or flags for build phase to enable tests (so TEST_DEPENDS don't work). Enable it by default for DEVELOPER builds, so interested parties and Q/A can have all tests available. Approved by: portmgr (bapt) Differential Revision: D3844
* Add support for opt_TEST_TARGET consistent with opt_{ALL,INSTALL}_TARGETamdmi32015-10-051-2/+2
| | | | | Approved by: portmgr (mat) Differential Revision: D3788
* Fix opt_VARS premature expansion.mat2015-10-011-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Due to the way .for loop work, opt_VARS was being expanded too early evaluation, which made it impossible to use vars that are set/modifies afterwards (such as PREFIX or PKGDIR) Fix this by changing opt_VARS handling logic so that the right side is not prematurely expanded: - Loop not by words (each word here is single VAR=val / VAR+=val tuple) but by unique left sides of assignments (VAR, VAR+ here) - Using the left side, extract all corresponding right sides and append/assign them to a variable This changes the way this opt_VARS line work, which behavior is between invalid and undefined: opt_VARS= FOO=bar FOO=baz Before it would end up with "FOO=baz", now it ends up with "FOO=bar baz" Submitted by: amdmi3 Reviewed by: antoine, mat Approved by: my portmgr hat Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3729
* Implemented complete support for test target.amdmi32015-09-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | You can now `make test' on any port to run test sequence, no-op by default. If a port defines TEST_TARGET, it'll run sub-make with specified target, usually `check' or `test', useful if upstream supports that. The port may instead define custom do-test target, as well as usual satellite targets: {pre,do,post}-test, {pre,do,post}-test-OPT, {pre,do,post}-test-OPT-off `make test' builds and stages port first, so test may use both WRKDIR and STAGEDIR, and both BUILD and RUN depends are available for test target. Additionally, TEST_DEPENDS is now properly supported and may be used to define additional depends specifically for testing. Framework may define default tests for specific cases. For instance, perl5.mk and cran.mk already provide default test target on their own. This commit also converts my ports which have tests to this new framework. Approved by: portmgr (bapt) Differential Revision: D3680
* Add PORTEXAMPLES to the options helpers.mat2015-09-081-2/+3
| | | | Sponsored by: Absolight
* Add DESKTOP_ENTRIES to the options flags.mat2015-09-051-9/+10
| | | | Sponsored by: Absolight
* Use more precise wording, i.e. "set" and "append" instead of "run."adamw2015-08-291-4/+4
| | | | Approved by: portmgr (mat)
* Add generic opt_VARS/opt_VARS_OFF.mat2015-08-281-0/+29
| | | | | | | | | | | OPT1_VARS= foo=bar baz+=bam will set FOO to bar and append bam to BAZ if OPT1 is enabled. <opt>_VARS_OFF works the same way, if the option is disabled. Reviewed by: bapt Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3410
* Add an optional error message for opt_PREVENTS, opt_PREVENTS_MSG.mat2015-08-241-0/+2
| | | | | | Reviewed by: bapt Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3469
* Fix with fmake.mat2015-08-211-1/+2
| | | | | Noticed by: marck Sponsored by: Absolight
* Optimize opt_IMPLIES.mat2015-08-211-3/+29
| | | | | | PR: 191144 Submitted by: hrs Sponsored by: Absolight
* Add EXTRACT_ONLY to the options flags.mat2015-08-191-8/+8
| | | | Sponsored by: Absolight
* Introduce <opt>_IMPLIES and <opt>_PREVENTS to register dependencies, ormat2015-08-181-0/+13
| | | | | | | | conflicts, between options. PR: 191144 Submitted by: adamw Sponsored by: Absolight
* Add BROKEN and IGNORE to the options flags.mat2015-08-181-4/+4
| | | | Sponsored by: Absolight
* Remove UNIQUENAME and LATEST_LINK.mat2015-08-171-41/+8
| | | | | | | | | | | | | | | | | UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now, we won't have conflicts there. Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel has the correct PKGNAME anyway. Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called OPTIONS_FILE now.) Reviewed by: antoine, bapt Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3336
* Rewrite the target ordering code.mat2015-08-171-11/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The targets now have priority assigned to them, and, when the dependency ordering magic is done at the end of bsd.port.mk, they are sorted according to their priority. This allows USES to add targets easily and have them run whenever they want without touching bsd.port.mk. To add a target that runs just before post-configure run, do: _USES_configure+= 695:my-post-configure my-post-configure: do something To fine tune when the target is ran, look at the values in the *_SEQ variables at the end of bsd.port.mk, and the other USES. Allow ports Makefiles to override the priority of targets with the TARGET_ORDER_OVERRIDE variable. For example, to get post-install running earlier, (its default is 700) do: TARGET_ORDER_OVERRIDE= 650:post-install While there, add options target helpers for the do-* targets when they exist. Reviewed by: antoine, bapt Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3099
* White space fix.mat2015-07-301-4/+4
| | | | | With hat: portmgr Sponsored by: Absolight
* Add GH_* and PORTDOCS top the make variables helpers.mat2015-07-301-7/+9
| | | | | With hat: portmgr Sponsored by: Absolight
* Introduce target option helpers.mat2015-07-011-0/+17
| | | | | | With hat: portmgr Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D2944
* Add SUB_LIST and SUB_FILES to the helper flags. (and sort the flags)mat2015-06-011-9/+9
| | | | | With hat: portmgr Sponsored by: Absolight
* Mk/bsd.options.mk: Add OPTIONS_EXCLUDE_${OPSYS}marino2015-03-271-1/+3
| | | | | | | This simple addition greatly simplifies the removal of options as a function of operating system, e.g. OPTIONS_EXCLUDE_DragonFly. Approved by: portmgr (bdrewery)
* Add a ${opt}_USE_OFF option helperantoine2015-01-221-0/+8
| | | | | | | PR: 195817 Differential Revision: https://reviews.freebsd.org/D1581 Reviewed by: bapt, mat, jbeich With hat: portmgr
* Allow the use of opt_ENABLE= foo=/bar to work like opt_WITH.mat2014-12-291-1/+1
| | | | Sponsored by: Absolight
* Spellingbapt2014-09-221-1/+1
| | | | Submitted by: xmj
* Add an option helper for PLIST_SUBantoine2014-08-221-2/+2
| | | | | | | | | Rename a few variables to avoid confusion with this new helper Requested by: koobs Reviewed by: mat With hat: portmgr Differential revision: https://reviews.freebsd.org/D665
* Add INFO macro to the helpersbapt2014-07-221-2/+2
|
* - strip optional WITH parameter from argument if OPTION is set to offohauer2014-06-211-1/+1
| | | | | | | | | | | | FOO_WITH= foo=bar CONFIGURE_ARGS will become now ON: --with-foo=bar OFF: --without-foo PR: 191085 Submitted by: ohauer Approved by: portmgr (antoine)
* Switch back to default tabspace: 8bapt2014-06-181-62/+59
|
* Support LIBS like LDFLAGS.tijl2014-06-111-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV. - Add an option helper for LIBS. - Adjust all ports that already use LIBS. Also remove references to PTHREAD_CFLAGS and PTHREAD_LIBS while here. - Some ports did not support having a LIBS environment variable and required additional patches. Somewhat simplified a linker command line looks like: ${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS} where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and LIBS can be controlled by us. If possible -L and -l flags need to be added to LIBS to make sure they appear after any -L and -l flags set by upstream. Many ports currently add -L${LOCALBASE}/lib to LDFLAGS but this may appear too early on the command line causing installed libraries to be linked in instead of freshly built ones. Additional changes: benchmarks/netio: Replace WITH_IPV6 with an IPV6 option. comms/gnokii: Replace some patches with USES=pathfix. Also remove -fPIC. graphics/gimageview: USES=libtool and install desktop file in DESKTOPDIR. graphics/visionworkbench: Remove FreeBSD 7 support. multimedia/libmovtar: New LIB_DEPENDS syntax. multimedia/opencinematools: Use standard do-build. net/siproxd: USES=libtool:keepla (port actually needs .la files for plugins) net-mgmt/nagios: Remove -fPIC. net-mgmt/nagios4: Remove -fPIC. print/cups-base: Only add -lssp_nonshared on i386 and OSVERSION < 1000036. security/p11-kit: Replace PTHREAD_LIBS in CONFIGURE_ENV with ac_cv_func_pthread_mutexattr_init=no in CONFIGURE_ARGS. This skips a test in configure that falsely detects pthread_mutexattr_init in our libc. sysutils/dar: Fix iconv detection. x11/rxvt-unicode: Remove -lstdc++ and patch configure to remove a FreeBSD hack and use $CXX as linker as on other platforms. PR: 190592 Exp-run by: antoine Approved by: portmgr (antoine)
* Convert all :U to :tu and :L to :tlbapt2014-05-051-1/+1
| | | | | | | | | | | | | | Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a replacement for :U and :L (which has been marked as deprecated) bmake which is the default on FreeBSD 10+ only support by default :tu/:tl a hack has been added at the time to support :U and :L to ease migration. This hack is now not necessary anymore Note that this makes the ports tree incompatible with make(1) from FreeBSD 8.3 or earlier With hat: portmgr
* - Rename check-orphans to check-plist. Keep the old for backwards-compat.bdrewery2014-04-191-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Bug fixes: makeplist/check-plist: - Fix showing directories owned by RUN_DEPENDS/LIB_DEPENDS [1] - Use proper "rmdir PATH" syntax, not "rmdir >/dev/null... PATH" which pkg will not recognize. - Never consider base /etc/mtree/BSD.usr.dist or LOCLABASE Templates/BSD.local.dist as needing @dirrm handling. check-plist: - Fix showing PORTDOCS/PORTEXAMPLES files when the OPTIONS are not set. makeplist will still suggest them. - Fix showing files installed through unselected OPTIONS as orphans, by considering "@comment file" to be ignored. [2] - Fix @sample, @fc, @fcfontsdir, @fontsdir support - Fix return status when orphans are found to be non-zero - Add note when PREFIX=!LOCALBASE - Be more clear when orphans/no orphans are found. - Add a whitelist mechanism for globally approved ignores. - Add *.bak/*.orig to orphan whitelist for now. - Fix false-positive with dirs installed to /, such as with archivers/dpkg creating /var/db/dpkg - Fix false-positive with @dirrm ending in /, such as with ports-mgmt/poudriere with a @dirrmtry share/zsh/ - There are likely still some false-positives. I fixed as many as I could find. Please let me know of others. * One in particular that is not easily fixable is installing a file into a directory owned by another port where that other port is not a run-time dependency. So the leaf port may create all of the parent dirs and never clean them up. Cleaning them up is not proper unless no other package is depending on them. This will be addressed by pkg(8) once pkg_install is EOL, or sooner. - Consider @dirrm of directories owned by run-time dependencies, or /etc/mtree/* or Templates/BSD.local.dist (at LOCALBASE) as fatal errors. These should not be removed in the plist. @comment lines are not considered for this; they will not ignore an error. ===> Checking for directories owned by dependencies or MTREEs Error: Owned by dependency: @dirrmtry share/locale/af/LC_MESSAGES Error: Owned by dependency: @dirrmtry share/locale/af Error: Owned by dependency: @dirrmtry %%PERL5_MAN3%% - Detect files in plist that do not exist in the stagedir. Pkgng already did this, but now we have it unified with this check. @comment lines are not considered for this; they will not ignore an error. ===> Checking for items in pkg-plist which are not in STAGEDIR Error: Missing: foo Error: Missing: @dirrmtry bar - Change orphaned output due to several new errors introduced: ===> Checking for items in STAGEDIR missing from pkg-plist Error: Orphaned: foo - Send errors to stderr check_leftovers.sh: - Prefer longer values for PLIST_SUB. bsd.options.mk: - Fix NOPORTDOCS/WITHOUT_NLS/NOPORTEXAMPLES not unsetting their respective OPTIONS. - Mark NOPORTDOCS/NOPORTEXAMPLES deprecated and hook them into the OPTIONS_WARNING to tell users the new format. - check-stagedir.sh refactoring: - Switch to using new PLIST_SUB_SED - Use ! instead of , in sed(1) regex to allow files/dirs with ',' - Rework PORTEXAMPLES/PORTDOCS handling so it acts on PLIST_SUB_SED'd value and not absolutes. Also simplify the regex for these a bit to allow reuse. - No longer need DOCSDIRS/EXAMPLESDIR in env - Wrap long lines - Unset some vars in env when they are done being used to free space for larger sed vars - Cleanup redundant sed regexes - Add a Scripts/plist_sub_sed_sort.sh to prefer longer values when substituting over shorter values. - To make check-plist ignore a file *as an orphan* do one of the following: 1. Install it 2. post-install: ${RM} ${STAGEDIR}file 3. Put the file behind an OPTION with a PLIST_SUB: %%OPTION%%file 4. Add to plist as a @comment [2]: @comment file @comment @dirrmtry dir Reviewed by: mat (much earlier version) Discussed with: mat, antoine, bapt, swills (various bits) With hat: portmgr PR: ports/185561 [1] Reported By: Alexander Yerenkow <yerenkow@gmail.com> [1] Tested with: pkg and pkg_install Reported by: many (false-positives) [2] This is a partial solution, we may still need a plist.ignore too. It doesn't make much sense to add files in main pkg-plist we don't care about, but maybe it does since you'll see and reconsider them being ignored someday. @comment is used as all the OPTION PLIST_SUB deactivations use @comment instead of something like @ignore.
* Make option DEBUG work like WITH_DEBUGbapt2014-03-281-0/+4
|
* Have OPTIONS_SUB also fill in SUB_LIST.mat2014-03-261-0/+8
| | | | | | Fix two ports that would have been broken with this change. With hat: portmgr
* Correctly sort the DEPENDS targets.mat2014-03-041-2/+2
| | | | Sponsored by: Absolight
* Add CONFLICT{,_BUILD,_INSTALL} to the options helpers.mat2014-03-041-14/+19
| | | | | | PR: 187226 (based on) Submitted by: adamw Sponsored by: Absolight
* Don't output warnings about WITH_DEBUG being on.mat2014-03-031-1/+2
| | | | | Requested by: eadler Sponsored by: Absolight
* Add %%NO_OPT1%% to PLIST_SUB that is enabled when %%OPT1%% is not.mat2014-02-281-2/+2
| | | | Sponsored by: Absolight
* Really tell our users that using WITH_/WITHOUT_ to set/unset options ismat2014-02-241-0/+26
| | | | | | deprecated. Sponsored by: Absolight
* Use OPTIONS helpers from excluded options tooantoine2014-02-151-1/+1
| | | | | Reviewed by: bapt With hat: portmgr
* Add two new options helpers:mat2014-01-281-1/+17
| | | | | | | | | | | ${OPT}_${TYPE}_DEPENDS_OFF=<something> will automatically add: ${TYPE_DEPENDS}+=<something> in case OPT is 'off' ${OPT}_${FLAG}_OFF=<something> will automatically add: ${FLAG}+=<something> in case OPT is 'off' With hat: portmgr Sponsored by: Absolight
* fmake doesn't like previous commit (which breaks index) [1]bapt2013-12-161-14/+0
| | | | | | | Given we do not support for long enough old OPTIONS framework just get rid of this compat block that doesn't bring anything anymore Kick by: cperciva [1]
* Do not set again WITHOUT_NLS in old backward compatibility if NLS is in ↵bapt2013-12-161-1/+1
| | | | | | OPTIONS_UNSET Reported by: eadler
* Stop defining WITHOUT_NLS it not used anymore in the ports treebapt2013-12-131-4/+0
|
* Add support for ${opt}_QMAKE_ON/${opt}_QMAKE_OFFmakc2013-11-221-12/+15
| | | | Approved by: portmgr (bapt)
* Allow multiple value in ${opt}_USE= FOO=bar,baz.mat2013-11-121-1/+3
| | | | | | | | | | | | Which is nice in case you end up with something like : X11_USE= xorg=x11 xorg=ice xorg=sm xorg=xext xorg=xineramaproto xorg=xinerama xorg=xrandr xorg=xrender xorg=xtst now you can do : X11_USE= xorg=x11,ice,sm,xext,xineramaproto,xinerama,xrandr,xrender,xtst PR: ports/183892 Approved by: bapt
* - Remove gratuitous whitespacesak2013-10-311-12/+7
| | | | | | | - Use sinclude when possible - Rewrap overly long list Approved by: portmgr (bapt)
* Allow multiple values for configure ENABLE and WITH options helperswg2013-10-271-4/+12
| | | | | | | | | | | ${opt}_CONFIGURE_ENABLE and ${opt}_CONFIGURE_WITH now accept multiple arguments and will be expanded accordingly, e.g.: OPT_CONFIGURE_ENABLE= feature1 feature2 -- will add to CONFIGURE_ARGS: OPT enabled: --enable-feature1 --enable-feature2 OPT disabled: --disable-feature1 --disable-feature2 Approved by: portmgr (bapt)
* - Fix OPTIONS_SUB not including OPTIONS_SLAVE options in PLIST_SUBbdrewery2013-10-041-1/+1
| | | | With hat: portmgr
* - Add option helper opt_USE= FOO=bar -> USE_FOO=barbdrewery2013-10-041-0/+9
| | | | | Discussed with: bapt With hat: portmgr
* - Add more helpers: ALL_TARGET, INSTALL_TARGET and CATEGORIESsunpoet2013-10-041-10/+7
| | | | | | | | | | - Remove duplicate EXTRA_PATCHES comment - Minor comment rewording: change "add it to" to "add its content to" just like how we describe ${opt}_CMAKE_* PR: ports/182626 Submitted by: sunpoet (myself) Approved by: bapt (portmgr)
* - Add support for PATCHFILES and PATCH_SITESbdrewery2013-10-041-5/+4
| | | | | | | - While here, cleanup r329186 and move EXTRA_PATCHES to common section With hat: portmgr
* - Support {opt}_EXTRA_PATCHESbdrewery2013-10-031-0/+6
| | | | | Reviewed by: bapt With hat: portmgr
* - Add more OPTIONS helpers: MAKE_ARGS, PLIST_FILES, PLIST_DIRS and PLIST_DIRSTRYsunpoet2013-10-021-5/+6
| | | | | | | | - Fix typo PR: ports/182514 Submitted by: sunpoet (myself) Approved by: bdrewery (portmgr)
* If ${opt}_CPPFLAGS is defined, its value will be appended to CPPFLAGSnaddy2013-09-251-4/+4
| | | | | | depending on the status of option ${opt}. Approved by: bapt
* Document the new bsd.options.mk knobs.mat2013-08-011-0/+32
| | | | | | PR: ports/180949 Submitted by: mat Approved by: bapt
* Add new ${OPT}_CONFIGURE_WITH option helpbapt2013-07-291-0/+6
| | | | | | it will handle the --with/--without configure argument dancing based on the value of the OPTION ${OPT} Requested by: mandree
* - Document the use of ${OPTIONS_NAME}_(UN)SET(_FORCE).tijl2013-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
* Replace OPTIONSFILE by OPTIONS_FILE which is a more robust variable with unicitybapt2013-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
* Add a forgotten helper:bapt2013-06-141-0/+6
| | | | ${OPT}_CMAKE_ON and ${OPT}_CMAKE_OFF
* New macros to help dealing with ports that have options:bapt2013-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
* - Reallign documentation for a tab width of 4.tijl2013-06-141-29/+55
| | | | | | - Document variables that can be used in make.conf. Approved by: bapt
* Sort PORT_OPTIONS only once and remove some undefines.tijl2013-06-141-17/+6
| | | | Approved by: bapt
* Let config-conditional take options configured in make.conf into account.tijl2013-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)
* Yet more factorisationbapt2013-06-101-11/+4
|
* Factorise codebapt2013-06-101-30/+10
|
* Append per arch defaults directly to OPTIONS_DEFAULT. Duplicatestijl2013-06-101-5/+1
| | | | are eliminated later.
* Exclude options directly from OPTIONS_DEFINE and set ALL_OPTIONStijl2013-06-101-21/+6
| | | | | | later. This simplifies the NO_OPTIONS_SORT case. Approved by: bapt
* This should not have been in eitherbapt2013-06-101-27/+0
|
* Partial revert of r320440 some things has been committed that shouldn't have yetbapt2013-06-101-42/+28
|
* Removed useless quotesbapt2013-06-101-1/+42
|
* Remove some redundant comments.tijl2013-06-101-2/+0
| | | | Approved by: bapt
* Eliminate _ALL_EXCLUDE temporary variable and fuse two .for loops.tijl2013-06-101-9/+2
| | | | Approved by: bapt
* Do not automatically popup dialog in case only options from global options ↵bapt2013-06-071-0/+7
| | | | | | are defined Requested by: many
* Remove the OPTIONS parsing for real this timebapt2013-06-071-39/+0
|
* Fix exclusion of global options per portsbapt2013-06-071-0/+1
|
* Readd the OPTIONS parser given that apparently someports still haven't been ↵bapt2013-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>
* Remove support for parsing the old OPTIONS macro, the compatibility code to ↵bapt2013-06-061-39/+0
| | | | load the old optionsfile and compatibility with WITH_ and WITHOUT_ in make.conf remains for now;
* Remove empty radio/single/group/multi options from listsbapt2013-06-061-0/+23
| | | | This can happen due to slave/exclude
* Fix NO_OPTIONS_SORTbapt2013-05-021-2/+0
| | | | Reported by: hrs, osa
* Rework OPTIONS_EXCLUDE and OPTIONS_EXCLUDE_${ARCH} so that is also get excludedbapt2013-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]
* Fix mismatched bracketsbapt2013-03-251-1/+1
| | | | Submitted by: draco@marino.st
* Extend the options framework providing 2 new macros:bapt2012-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
* We are in 2012, it is time to activate IPV6 options by default everywherebapt2012-10-101-0/+3
|
* Options can now be overridden from command line usingbapt2012-10-051-0/+15
| | | | | | | | | WITH/WITHOUT. Name has been proprosed by gahr during brainstorming on ports@ PR: ports/170180 Submitted by: ohauer
* compare options loading from /var/db/port/options and make.conf against thebapt2012-07-171-3/+12
| | | | | | complete list of options. COMPLETE_OPTIONS_LIST being OPTIONS_DEFINE + all the OPTIONS_SINGLE_* + all the OPTIONS_MULTI_*
* - Document new options framework in bsd.options.mkbapt2012-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)
* Add new OPTIONS_EXCLUSE_${ARCH} to be able to exclude an option on the given ↵bapt2012-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]
* Do not search for upper case uniquename what setting per ports optionsbapt2012-06-061-2/+2
|
* Activate NO_OPTIONS_SORT by default when the ports still use the old framework,bapt2012-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.
* Allow NO_OPTIONS_SORT to work with old OPTIONSbapt2012-06-051-0/+3
| | | | Requested by: dougb@
* Remove crufts committed by mistakebapt2012-06-041-3/+0
| | | | Reported by: matthew@
* Fix loading of old optionsbapt2012-06-041-13/+15
| | | | Tested by: flo@, gelraen (via IRC)
* Remove the double quotes while converting from old options framework to new one.bapt2012-06-021-1/+1
| | | | | | This fix the too long options breaking the UI Reported by: Oliver Pinter <oliver.pntr@gmail.com> (via private mail)
* by default optionsng sort the options before prompting to them.bapt2012-06-011-0/+12
| | | | | | add a new KNOB for maintainers: NO_OPTIONS_SORT to prevent from sorting the options. Requested by: osa@
* if user set OPTIONS_UNSET EXAMPLES they create NOPORTEXAMPLES variable forbapt2012-05-291-0/+4
| | | | | | compatibility With hat: portmgr
* - Do not activate EXAMPLES by default if NOPORTEXAMPELS is setmiwi2012-05-291-0/+5
| | | | | | - Add shared EXAMPES descriptions With hat: portmgr
* Do not activate DOCS by default if NOPORTDOCS is setbapt2012-05-291-2/+4
|
* Fix python's make config [1]bapt2012-05-291-36/+9
| | | | | | | Better backward compatibility [2] Reported by: ketas (on #bsdports) [1], flo@ [2] Tested by: flo@ [2]
* recreate the WITH_/WITHOUT_ options for compatibilitybapt2012-05-291-2/+41
|
* New options framework for the portsbapt2012-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