blob: 91df157fd37da0ce3ff12b1e6b46861ebd6ac5d2 (
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
|
# Copyright 2020 The Trinity Desktop Project
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
TRINITY_MODULE_TYPE="dependencies"
TRINITY_MODULE_NAME="akode"
inherit trinity-base-2
DESCRIPTION="A simple framework to decode the most common audio formats."
HOMEPAGE="http://www.trinitydesktop.org/"
LICENSE="|| ( GPL-2 GPL-3 )"
SLOT="0"
IUSE="alsa pulseaudio oss jack +libsamplerate mpc mp3 sndfile vorbis flac speex"
DEPEND="alsa? ( media-libs/alsa-lib )
jack? ( virtual/jack )
pulseaudio? ( media-sound/pulseaudio )
libsamplerate? ( media-libs/libsamplerate )
mp3? ( media-libs/libmad )
speex? ( media-libs/speex )
flac? ( media-libs/flac )
mpc? ( dev-libs/mpc )
vorbis? ( media-libs/libvorbis )
sndfile? ( media-libs/libsndfile )"
RDEPEND="${DEPEND}"
# The FFMPEG plugin needs some porting,
# to work with recent FFMPEG. So it is disabled for now.
src_configure() {
mycmakeargs=(
-DWITH_FFMPEG_DECODER=OFF
-DWITH_SUN_SINK=OFF
-DWITH_LIBLTDL=OFF
-DWITH_ALSA_SINK=$(usex alsa)
-DWITH_OSS_SINK=$(usex oss)
-DWITH_PULSE_SINK=$(usex pulseaudio)
-DWITH_JACK_SINK=$(usex jack)
-DWITH_MPEG_DECODER=$(usex mp3)
-DWITH_XIPH_DECODER=$(usex vorbis)
-DWITH_MPC_DECODER=$(usex mpc)
-DWITH_SRC_RESAMPLER=$(usex libsamplerate)
)
cmake-utils_src_configure
}
|