You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-libs/zita-convolver/zita-convolver-3.1.0.ebuild

37 lines
1004 B

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils flag-o-matic multilib toolchain-funcs
DESCRIPTION="C++ library implementing a real-time convolution matrix"
HOMEPAGE="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html"
SRC_URI="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="cpu_flags_x86_sse"
RDEPEND="sci-libs/fftw:3.0="
DEPEND="${RDEPEND}"
S=${WORKDIR}/${P}/libs
src_prepare() {
epatch "${FILESDIR}"/${P}-makefile.patch
}
src_compile() {
# upstream defaults to this on x86 but patched out of the Makefile
# try to reenable optimisation for x86 and allow building on other arch's
use cpu_flags_x86_sse && append-flags "-msse" "-mfpmath=sse"
emake CXX="$(tc-getCXX)"
}
src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="$(get_libdir)" install
dodoc "${WORKDIR}/${P}/AUTHORS" "${WORKDIR}/${P}/README"
}