blob: bc4c4d9d0f43d9031e08fec68126244c09e557fa (
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
|
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Linux Studio Plugins"
HOMEPAGE="https://lsp-plug.in"
SRC_URI="https://github.com/sadko4u/lsp-plugins/archive/${P}.tar.gz"
S="${WORKDIR}/${PN}-${P}"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc jack ladspa +lv2"
REQUIRED_USE="|| ( jack ladspa lv2 )"
DEPEND="
dev-libs/expat
media-libs/libsndfile
doc? ( dev-lang/php:* )
jack? (
virtual/jack
x11-libs/cairo[X]
)
ladspa? ( media-libs/ladspa-sdk )
lv2? (
media-libs/lv2
x11-libs/cairo[X]
)
"
RDEPEND="${DEPEND}"
BDEPEND=""
src_prepare(){
eapply_user
sed -i '/install_.*: all/s/ all//g' Makefile
}
src_compile(){
use doc && MODULES+="doc"
use jack && MODULES+=" jack"
use ladspa && MODULES+=" ladspa"
use lv2 && MODULES+=" lv2"
emake BUILD_MODULES="${MODULES}"
}
src_install(){
use doc && emake PREFIX="/usr" DESTDIR="${D}" install_doc
use jack && emake PREFIX="/usr" DESTDIR="${D}" install_jack
use ladspa && emake PREFIX="/usr" DESTDIR="${D}" install_ladspa
use lv2 && emake PREFIX="/usr" DESTDIR="${D}" install_lv2
}
|