Do not start migrating *any* ports

Once this work is well tested, an all clear will be emailed to the FreeBSD Ports list.

New Port


FLAVORS=  default foo bar

Note: The first in the list is the default, so depending on the use case it might be needed to have one that is the default case and does not change anything.

After either or, check for the specific flavor option and tweak such as adding depends.

.if ${FLAVOR} == foo
[[ .. do foo stuff .. ]
.if ${FLAVOR} == bar
[[ .. do bar stuff .. ]

Future helpers

Some helpers make your work easier. They must be used before any include ( or

All packages must have a different PKGNAME, so for flavored packages adding a PKGNAMEPREFIX or PKGNAMESUFFIX is required.


Converting an existing

Ports/FlavorsMigration (last edited 2022-04-20T11:10:00+0000 by StefanEsser)