summaryrefslogtreecommitdiff
blob: ad6ce443e98fe831248f402822107f4f958c62de (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Reverb and Impulse Response Convolution plug-ins (Audacious/JACK)"
HOMEPAGE="https://savannah.nongnu.org/projects/freeverb3"
SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="audacious forcefpu jack openmp plugdouble threads"

REQUIRED_USE="jack? ( audacious )"

_GTK_DEPEND="
	>=dev-libs/glib-2.4.7:2
	x11-libs/cairo
	x11-libs/gtk+:3
	x11-libs/pango
"
RDEPEND="
	sci-libs/fftw:3.0=
	audacious? ( ${_GTK_DEPEND}
		=media-sound/audacious-3.9*[gtk3(+)]
		media-libs/libsndfile
	)
	jack? ( ${_GTK_DEPEND}
		virtual/jack
		media-libs/libsndfile
	)
"
DEPEND="${RDEPEND}"

src_configure() {
	local myeconfargs=(
		--enable-release
		--enable-undenormal
		--disable-autocflags
		--disable-pluginit
		--disable-profile
		--disable-sample
		--disable-srcnewcoeffs
		$(use_enable audacious)
		$(use_enable jack)
		$(use_enable openmp omp)
		$(use_enable plugdouble)
		$(use_enable threads pthread)
	)
	econf "${myeconfargs[@]}"
}

src_install() {
	emake DESTDIR="${D}" install
	einstalldocs

	if use audacious ; then
		find "${D}/usr/$(get_libdir)/audacious/" -name '*.la' -print -delete || die
	fi

	insinto /usr/share/${PN}/samples/IR
	doins samples/IR/*.wav
}