rc: move option descriptions to common/options.description.
Also the readline and libedit options are mutually exclusive, so you cannot enable both at the same time. If one is enabled the other is disabled.
This commit is contained in:
parent
9a0437be64
commit
3386b0666f
2 changed files with 9 additions and 11 deletions
|
@ -25,6 +25,7 @@ desc_option_imagemagick="Enable support for ImageMagick"
|
|||
desc_option_jack="Enable support for the JACK sound server"
|
||||
desc_option_jpeg="Enable support for JPEG images"
|
||||
desc_option_lame="Enable support for the LAME encoder"
|
||||
desc_option_libedit="Enable support for NetBSD's libedit"
|
||||
desc_option_lua="Enable support for Lua"
|
||||
desc_option_lzo="Enable support for LZO compression format"
|
||||
desc_option_microhttpd="Enable support for microhttpd"
|
||||
|
@ -42,9 +43,11 @@ desc_option_python="Enable support for Python"
|
|||
desc_option_qrencode="Enable support for qrencode"
|
||||
desc_option_qt="Enable support for building the QT UI"
|
||||
desc_option_raw="Enable support for RAW image files"
|
||||
desc_option_readline="Enable support for GNU readline"
|
||||
desc_option_sasl="Enable support for SASL"
|
||||
desc_option_ssl="Enable support for SSL"
|
||||
desc_option_startup_notification="Enable support for desktop notification"
|
||||
desc_option_static="Enable static linking"
|
||||
desc_option_svg="Enable support for SVG images"
|
||||
desc_option_systemd="Enable support for systemd"
|
||||
desc_option_tcpwrappers="Enable support for tcpwrappers"
|
||||
|
|
|
@ -11,21 +11,16 @@ distfiles="http://static.tobold.org/$pkgname/$pkgname-$version.tar.gz"
|
|||
checksum=1cff23e897a038422458ba01567a5a2650935205862c3bbf73e773807c248240
|
||||
|
||||
build_options="readline libedit static"
|
||||
desc_option_readline="Enable support for GNU readline"
|
||||
desc_option_libedit="Enable support for libedit"
|
||||
desc_option_static="Enable static linking"
|
||||
build_options_default="readline"
|
||||
|
||||
configure_args="ac_cv_sys_restartable_syscalls=no "
|
||||
makedepends=""
|
||||
if [ "$build_option_readline" ]; then
|
||||
configure_args+=" --with-readline"
|
||||
makedepends+=" readline-devel"
|
||||
fi
|
||||
configure_args="ac_cv_sys_restartable_syscalls=no"
|
||||
|
||||
if [ "$build_option_libedit" ]; then
|
||||
if [ "$build_option_readline" ]; then
|
||||
configure_args+=" --with-readline"
|
||||
makedepends="readline-devel"
|
||||
elif [ "$build_option_libedit" ]; then
|
||||
configure_args+=" --with-editline"
|
||||
makedepends+=" libedit-devel"
|
||||
makedepends="libedit-devel"
|
||||
fi
|
||||
|
||||
pre_configure() {
|
||||
|
|
Loading…
Reference in a new issue