xbps-src: new vopt_feature helper
This commit is contained in:
parent
65435ab244
commit
5bb9d7c856
2 changed files with 13 additions and 0 deletions
|
@ -1204,6 +1204,11 @@ package accordingly. Additionally, the following functions are available:
|
|||
Outputs `-D<property>=true` if the option is set, or
|
||||
`-D<property>=false` otherwise.
|
||||
|
||||
- *vopt_feature()* `vopt_feature <option> <property>`
|
||||
|
||||
Same as `vopt_bool`, but uses `-D<property=enabled` and
|
||||
`-D<property>=disabled` respectively.
|
||||
|
||||
The following example shows how to change a source package that uses GNU
|
||||
configure to enable a new build option to support PNG images:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue