blob: f8d5a15f29c2475e27c6c154853eead2c1e9388e (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# Copyright 2019-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic toolchain-funcs xdg
DESCRIPTION="Linux Studio Plugins"
HOMEPAGE="https://lsp-plug.in"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/sadko4u/lsp-plugins"
EGIT_BRANCH="devel"
else
SRC_URI="https://github.com/sadko4u/${PN}/releases/download/${PV}/${PN}-src-${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
S="${WORKDIR}/${PN}"
fi
LICENSE="LGPL-3"
SLOT="0"
IUSE="doc jack ladspa +lv2 test vst X"
REQUIRED_USE="|| ( jack ladspa lv2 )
test? ( jack )"
RESTRICT="!test? ( test )"
BDEPEND="doc? ( dev-lang/php:* )"
DEPEND="
media-libs/libglvnd[X]
media-libs/libsndfile
jack? (
media-libs/freetype
virtual/jack
x11-libs/cairo[X]
x11-libs/libX11
x11-libs/libXrandr
)
ladspa? ( media-libs/ladspa-sdk )
lv2? (
media-libs/freetype
media-libs/lv2
x11-libs/cairo[X]
x11-libs/libX11
x11-libs/libXrandr
)
vst? (
media-libs/freetype
x11-libs/cairo[X]
x11-libs/libX11
x11-libs/libXrandr
)
"
RDEPEND="${DEPEND}"
src_configure() {
use doc && MODULES+="doc"
use jack && MODULES+=" jack"
use ladspa && MODULES+=" ladspa"
use lv2 && MODULES+=" lv2"
use vst && MODULES+=" vst2"
use X && MODULES+=" xdg"
emake \
FEATURES="${MODULES}" \
PREFIX="/usr" \
LIBDIR="/usr/$(get_libdir)" \
CC="$(tc-getCC)" \
CXX="$(tc-getCXX)" \
LD="$(tc-getLD)" \
CFLAGS_EXT="${CFLAGS}" \
CXXFLAGS_EXT="${CXXFLAGS}" \
LDFLAGS_EXT="$(raw-ldflags)" \
VERBOSE=1 \
config
}
src_compile() {
emake \
FEATURES="${MODULES}" \
PREFIX="/usr" \
LIBDIR="/usr/$(get_libdir)" \
CC="$(tc-getCC)" \
CXX="$(tc-getCXX)" \
LD="$(tc-getLD)" \
CFLAGS_EXT="${CFLAGS}" \
CXXFLAGS_EXT="${CXXFLAGS}" \
LDFLAGS_EXT="$(raw-ldflags)" \
VERBOSE=1
}
src_install() {
emake PREFIX="/usr" DESTDIR="${ED}" LIB_PATH="/usr/$(get_libdir)" VERBOSE=1 install
}
|