2014-08-26 0:47 GMT+04:00 Chuck Burns <[email protected]>:
> Ok, so I have an app (quassel) that I'm still working on getting a proper port
> built for.
>
> Here is the scenario I have, so far with my Makefile:
>
> FLAVORS=core client mono
> FLAVOR?=core client mono
>
>
> Now.. this should (and does) build a package called
> "app-vX.Y-core-client-mono"
>
> Other variations of this port can be as follows:
>
> "app-vX.Y-core"
> "app-vX.Y-mono"
> "app-vX.Y-client"
> "app-vX.Y-core-client"
> "app-v.X.Y-client-mono"
>
> And so on..
>
> Now, obviously each of these will have slightly different PLISTS, so, for
> simplicity sake, lets assume that mono and client will both always need
> /usr/share/quassel/data.fil and it will be installed if either or both -client
> and -mono parts are installed.. but doesn't need to install the rc_script
>
> and core will only ever need the rc_script "quasselcore.rc"
>
> What is the best way to go about setting up proper PLISTs for all of the
> different possible combinations here?

See the pkg_create(1), particularily the "VARIABLE SUBSTITUTION AND
FRAGMENT INCLUSION" part.

Also, please note that in OpenBSD we usually try to minimize both
number of options and number of optional FLAVORs.

And the final note: are you sure you want "core" and "client" as
FLAVORs, and not as MULTI_PACKAGES? See the detailed description of
the latter in the bsd.port.mk(5).

--
  WBR,
  Vadim Zhukov

Reply via email to