On 2008/08/26 07:54, Fernando Quintero wrote: > UHmm ok, i understand, but i think that the doc should be change, or add > some topic about it, because the point in the doc is for use flavours, > anyway, thx for answer.
Here are excerpts from bsd.port.mk(5), "FLAVORS AND MULTI_PACKAGES". Starting with OpenBSD 2.7, each port can generate distinct packages through two orthogonal mechanisms: FLAVORS and MULTI_PACKAGES. [...] If a port can be compiled with several options, set FLAVORS to the list of possible options in the Makefile. [...] If one build of a port can generate several distinct packages, set MUL- TI_PACKAGES accordingly. In this case, one build can generate several distinct packages, since the optional modules are in self-contained extra files, the main binary isn't changed. So multi-packages is more appropriate. In other cases, setting the build options may change the main binary to have different functions, and in those cases FLAVORs are needed. If you can do something either by using multi-packages, or by using flavors, then multi-packages is a better choice.