freebsd-ports/Mk/Scripts
Mathieu Arnold e2e97eb2bc Implement basic flavors.
**Do not start migrating any ports, a hook will prevent it**

This has been a long awaiting feature, most of the work has been done by
bapt, bdrewery and antoine, I am just the one actually doing the commit.

All this informations, and more to come are in the first link to our wiki
in the bottom block. A roadmap is in the second link.

To define a different flavors in a port, before any include, set:

FLAVORS=  flavor1 flavor2 [...]

The first flavor in the list will be the default.

You can then check for flavors after includ'ing bsd.port.options.mk with:

.if ${FLAVOR} == flavor2
[some stuff]
.endif

To build flavor2, simply run:

make FLAVOR=flavor2

To depend on a specific flavor, write @<flavor> at the end of the depend
string, like:

RUN_DEPENDS=	something:origin@foo

Submitted by:	bapt, bdrewery, antoine
Reviewed by:	portmgr
More infos:	https://wiki.freebsd.org/Ports/FlavorsMigration
Todo List:	https://wiki.freebsd.org/Ports/FlavorsAndSubPackages
With hat:	portmgr
Differential Revision: https://reviews.freebsd.org/D10327
2017-09-26 14:14:44 +00:00
..
actual-package-depends.sh Ease debugging of Mk/Scripts scripts. 2016-05-20 19:01:59 +00:00
cargo-crates.awk When specifying Git dependencies in Cargo.toml developers can set 3 2017-07-19 14:00:16 +00:00
check-stagedir.sh Ignore info/*/dir (as used by the lang/gcc* ports, for example) in addition 2017-07-19 22:29:54 +00:00
check-vulnerable.sh Reverse tests to decrease complexity. 2016-06-19 11:25:35 +00:00
check_leftovers.sh - Update The Glorious Glasgow Haskell Compiler to version 8.0.2 2017-08-08 17:21:45 +00:00
checksum.sh Use dp_DISTINFO_FILE instead of DISTINFO_FILE 2016-12-18 21:43:24 +00:00
create-manifest.sh Exec less rm(1) for existing files. 2017-07-28 20:30:44 +00:00
depends-list.sh Implement basic flavors. 2017-09-26 14:14:44 +00:00
dialog4ports.sh Ease debugging of Mk/Scripts scripts. 2016-05-20 19:01:59 +00:00
do-depends.sh Implement basic flavors. 2017-09-26 14:14:44 +00:00
do-fetch.sh Remove some code added in r858[1], still don't know what it was supposed to 2017-01-28 10:52:20 +00:00
do-patch.sh Implement EXTRA_PATCH_TREE. 2017-01-16 16:47:05 +00:00
do-users-groups.sh Fix using more than one files in UID_FILES and GID_FILES. 2017-07-19 11:55:46 +00:00
find-lib.sh Ease debugging of Mk/Scripts scripts. 2016-05-20 19:01:59 +00:00
functions.sh ports_env: Fix OPSYS not being exported. 2017-02-17 22:22:27 +00:00
generate-symbols.sh Add some work-in-progress scripts for splitting symbols out into PREFIX/lib/debug. 2015-10-19 17:04:33 +00:00
makesum.sh Extract the larger bsd.port.mk targets into separate scripts. 2016-05-25 15:58:31 +00:00
plist_sub_sed_sort.sh
ports_env.sh Follow-up r399170 with a script, ports_env.sh, that can be used for the purpose. 2015-10-13 00:03:10 +00:00
qa.sh Remove a useless block in the shebang checks. 2017-09-25 22:45:08 +00:00
security-check.awk
smart_makepatch.sh Ease debugging of Mk/Scripts scripts. 2016-05-20 19:01:59 +00:00