# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit autotools multilib-minimal DESCRIPTION="Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio" HOMEPAGE="http://www.mega-nerd.com/SRC/" SRC_URI="http://www.mega-nerd.com/SRC/${P}.tar.gz" LICENSE="BSD-2" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" BDEPEND="virtual/pkgconfig" PATCHES=( "${FILESDIR}/${PN}-0.1.3-dontbuild-tests-examples.patch" "${FILESDIR}/${PN}-0.1.8-lm.patch" "${FILESDIR}/${P}-htmldocdir.patch" "${FILESDIR}/${P}-no-sndfile-resample.patch" # bugs 408849, 645256 ) src_prepare() { default eautoreconf } multilib_src_configure() { local myeconfargs=( --disable-fftw --disable-sndfile --disable-static ) ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" } multilib_src_install_all() { einstalldocs find "${D}" -name '*.la' -type f -delete || die }