fix shairport optional configure options

This commit is contained in:
Anton Schubert 2016-06-04 17:58:30 +02:00
parent d51da5ea2a
commit b4c588af42
2 changed files with 10 additions and 12 deletions

View file

@ -11,7 +11,7 @@ SRC_URI="https://github.com/mikebrady/${PN}/archive/${PV}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~x86"
IUSE="avahi soxr"
DEPEND="dev-libs/openssl
@ -33,16 +33,14 @@ src_prepare() {
}
src_configure() {
econf \
$(use_with avahi) \
$(use_with soxr) \
local myconf
if use avahi ; then
myconf+=" --with-avahi"
fi
if use soxr ; then
myconf+=" --with-soxr"
fi
econf ${myconf} \
--with-ssl=openssl \
--with-alsa
}
#src_install() {
# dobin shairport
# dodoc README.md
# newconfd "${FILESDIR}"/${PN}.confd ${PN}
# newinitd "${FILESDIR}"/${PN}.initd ${PN}
#}