rc: add options readline,~libedit,~static and fix build on musl

This commit is contained in:
Christian Neukirchen 2014-07-12 17:53:51 +02:00
parent f86a8141a8
commit 5a0a225398

View file

@ -1,14 +1,36 @@
# Template file for 'rc'
pkgname=rc
version=1.7.1
revision=1
revision=2
build_style=gnu-configure
configure_args="--with-readline"
makedepends="readline-devel"
depends=""
short_desc="An alternative implementation of the plan 9 rc shell"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://tobold.org/article/rc"
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
if [ "$build_option_libedit" ]; then
configure_args+=" --with-editline"
makedepends+=" libedit-devel"
fi
pre_configure() {
if [ "$build_option_static" ]; then
CFLAGS+=" -static"
LDFLAGS+=" -static"
fi
}