doc/manual.txt: improve build options section.
This commit is contained in:
parent
d22908f083
commit
4d39a98ffe
|
@ -456,6 +456,10 @@ build_style=gnu-configure
|
|||
build_options="png"
|
||||
desc_option_png="Enable support for PNG images"
|
||||
|
||||
# To build the package by default with the `png` option:
|
||||
#
|
||||
# build_options_default="png"
|
||||
|
||||
if [ "$build_option_png" ]; then
|
||||
configure_args+=" --with-png"
|
||||
makedepends+=" libpng-devel"
|
||||
|
@ -466,6 +470,30 @@ fi
|
|||
|
||||
-----------------------------------------------------------------------
|
||||
|
||||
The supported build options for a source package can be shown with xbps-src:
|
||||
|
||||
---------------------------
|
||||
$ xbps-src show-options foo
|
||||
---------------------------
|
||||
|
||||
Build options can be enabled with the `-o` flag of xbps-src:
|
||||
|
||||
--------------------------------
|
||||
$ xbps-src -o option,option1 foo
|
||||
--------------------------------
|
||||
|
||||
Build options can be disabled by prefixing them with `~`:
|
||||
|
||||
----------------------------------
|
||||
$ xbps-src -o ~option,~option1 foo
|
||||
----------------------------------
|
||||
|
||||
Both ways can be used together to enable and/or disable multiple options
|
||||
at the same time with xbps-src:
|
||||
|
||||
------------------------------------------
|
||||
$ xbps-src -o option,~option1,~option2 foo
|
||||
------------------------------------------
|
||||
|
||||
Contributing via git
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
Loading…
Reference in New Issue