1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit autotools flag-o-matic multilib-minimal
9 DESCRIPTION="Audio processing library for changing tempo, pitch and playback rates"
10 HOMEPAGE="https://www.surina.net/soundtouch/"
11 SRC_URI="https://www.surina.net/soundtouch/${P/lib}.tar.gz"
14 # subslot = libSoundTouch.so soname
16 KEYWORDS="amd64 ~arm ~hppa ~mips ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
17 IUSE="cpu_flags_x86_sse openmp static-libs"
19 DEPEND=">=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
21 S="${WORKDIR}/${MY_PN}"
23 PATCHES=( "${FILESDIR}/${P}-CVE-2017-92xx.patch" )
28 tc-has-openmp || die "Please switch to an openmp compatible compiler"
30 sed -i "s:^\(dist_doc_DATA=\)COPYING.TXT :\1:" Makefile.am || die
31 sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g' configure.ac || die
35 multilib_src_configure() {
38 --disable-integer-samples
39 $(use_enable cpu_flags_x86_sse x86-optimizations)
41 $(use_enable static-libs static)
43 ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
46 multilib_src_compile() {
47 emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
50 multilib_src_install() {
51 emake DESTDIR="${D}" pkgdocdir="${EPREFIX}"/usr/share/doc/${PF}/html install
54 multilib_src_install_all() {
55 find "${D}" -name '*.la' -delete || die