summaryrefslogtreecommitdiff
blob: 46a83e5817d740e3c983420c09f0d0d5038eff4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2015 Gentoo Foundation
# 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"
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"
}