tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: multi-variant packages and bulk builds



Aleksey Cheusov <cheusov%tut.by@localhost> schrieb:
> 1) category/package/Makefile:
>    ...
>    PKGNAME=general-package-name${OPTIONS_SUFX}-version
>    ...
>
> 2) somewhere in pkgsrc .mk files
>    .if defined(GENERATE_ALL_OPTIONS_PKGS) && defined(PKG_SUPPORTED_OPTIONS)
>        VARIANTS+= ...
>        # VARIANTS should look like OPTIONS.name1=0,1 OPTIONS.name2=0,1 ...
>        # 0 means "feature is disabled", 1 - "enabled"
>    .endif
>
> 3) .for opt in ${PKG_SUPPORTED_OPTIONS}
>       .if ${OPTIONS.${opt}} = 1
>           OPTIONS_SUFX += -${f} # string concatenation here, not +=
>       .endif
>    .endfor
>

How do you plan to organize the resulting binary packages for all
possible combinations of options?

--
Dennis den Brok



Home | Main Index | Thread Index | Old Index