doc/manual.txt: improve build options section.

This commit is contained in:
Juan RP 2013-12-28 12:21:09 +01:00
parent d22908f083
commit 4d39a98ffe
1 changed files with 28 additions and 0 deletions

View File

@ -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
~~~~~~~~~~~~~~~~~~~~