ports.7: Add an example of how to use flavors At the moment the manual page is not documenting how to build a flavored package. Let's start documenting flavors with an example of a typical use case. Requested by: cem, dim
cem dim bcr
- Group Reviewers
- rS345057: ports.7: Add an example of how to use flavors
- While here, fix a typo in example 2.
- Fix other typos.
- Use env(1) as suggested by @mat. As we can see in bsd.port.mk, it's better to pass FLAVOR via the environment:
1049 # Disallow forced FLAVOR as make argument since we cannot change it to the 1050 # proper default. 1051 .if empty(FLAVOR) && !empty(.MAKEOVERRIDES:MFLAVOR) 1052 .error FLAVOR may not be passed empty as a make argument. 1053 .endif
Thanks for doing this, I really appreciate it!
|608–609 ↗||(On Diff #54907)|
For example, "The following command …. of a port. (In this case... support.)"
(In this case, .Pa www/py-django is going to be built with Python 3.7 support.)
|610 ↗||(On Diff #54915)|
www/py-django was deprecated and then undeprecated last week -- it's quite likely that it will disappear in the relatively near future. Maybe choose a different example port?