blob: 337e83140a9d23cd2e826deaaace911c4dd457b5 (
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 2008 Alexander Færøy <eroyf@exherbo.org>
# Copyright 2009 Bo Ørsted Andresen <zlin@exherbo.org>
# Copyright 2010 Adriaan Leijnse <adriaan@leijnse.net>
# Distributed under the terms of the GNU General Public License v2
require python [ blacklist=none multibuild=false with_opt=true ]
SUMMARY="ALSA library"
HOMEPAGE="https://www.alsa-project.org"
DOWNLOADS="mirror://alsaproject/${PN#alsa-}/${PNV}.tar.bz2"
LICENCES="LGPL-2.1"
SLOT="0"
PLATFORMS="~amd64 ~armv8 ~x86"
MYOPTIONS="
doc
"
DEPENDENCIES="
build:
doc? ( app-doc/doxygen[>=1.2.6] )
suggestion:
sys-sound/alsa-topology-conf [[
description = [ ALSA topology configuration files ]
]]
sys-sound/alsa-ucm-conf [[
description = [ ALSA Use Case Manager configuration (and topologies) files ]
]]
"
DEFAULT_SRC_PREPARE_PATCHES=(
"${FILES}"/${PNV}-dlmisc-the-snd_plugin_dir_set-snd_plugin_dir-must-be.patch
)
DEFAULT_SRC_INSTALL_EXTRA_DOCS=( MEMORY-LEAK )
src_configure() {
local myconf=(
--enable-aload
--enable-hwdep
--enable-lockless-dmix
--enable-mixer
--enable-pcm
--enable-rawmidi
--enable-seq
--enable-thread-safety
--enable-topology
--enable-ucm
--without-wordexp
--disable-mixer-modules
--disable-mixer-pymods
)
if option python; then
myconf+=(
--with-pythonlibs="$(/usr/$(exhost --target)/bin/python$(python_get_abi)-config --libs)"
--with-pythonincludes="$(python_get_incdir)"
)
if [[ $(python_get_abi) == 2.7 ]]; then
myconf+=(
--enable-python2
)
fi
else
myconf+=(
--disable-python
)
fi
econf "${myconf[@]}"
}
src_compile() {
default
if option doc; then
emake doc
edo find doc/doxygen/html -type f -print0 | xargs -0 sed -i -e "s:${WORK}::g" ||
die "sed to strip ${WORK} from api docs failed"
fi
}
src_install() {
default
# Fix alsaucm: unable to obtain card list: No such file or directory
keepdir /usr/share/alsa/ucm
if option doc; then
docinto html
dodoc -r doc/doxygen/html/*
docinto
fi
}
|