| 1 |
|
# Copyright 1999-2026 Gentoo Authors
|
|
1 |
# Copyright 1999-2025 Gentoo Authors
|
| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| ... | ... | |
| 8 |
8 |
inherit cmake flag-o-matic wxwidgets xdg virtualx
|
| 9 |
9 |
|
| 10 |
10 |
DESCRIPTION="Free crossplatform audio editor"
|
| 11 |
|
HOMEPAGE="https://www.audacityteam.org"
|
|
11 |
HOMEPAGE="https://www.audacityteam.org/"
|
| 12 |
12 |
|
| 13 |
13 |
# A header-only thread pool library, without a build system, about 100
|
| 14 |
14 |
# lines of code. Probably not worth packaging individually. Check
|
| ... | ... | |
| 20 |
20 |
inherit git-r3
|
| 21 |
21 |
EGIT_REPO_URI="https://github.com/audacity/audacity.git"
|
| 22 |
22 |
else
|
| 23 |
|
KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv x86"
|
|
23 |
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
|
| 24 |
24 |
MY_P="Audacity-${PV}"
|
| 25 |
25 |
S="${WORKDIR}/${PN}-sources-${PV}"
|
| 26 |
26 |
SRC_URI="https://github.com/audacity/audacity/releases/download/Audacity-${PV}/${PN}-sources-${PV}.tar.gz"
|
| ... | ... | |
| 28 |
28 |
|
| 29 |
29 |
SRC_URI+=" audiocom? ( ${MY_THREADPOOL} )"
|
| 30 |
30 |
|
| 31 |
|
# GPL-3, GPL-2+ - Audacity itself
|
| 32 |
|
# CC-BY-3.0 - Documentation
|
|
31 |
# GPL-2+, GPL-3 - Audacity itself
|
| 33 |
32 |
# ZLIB - The ThreadPool single-header library
|
| 34 |
|
LICENSE="GPL-3 GPL-2+ CC-BY-3.0 audiocom? ( ZLIB )"
|
|
33 |
# CC-BY-3.0 - Documentation
|
|
34 |
LICENSE="GPL-2+
|
|
35 |
GPL-3
|
|
36 |
audiocom? ( ZLIB )
|
|
37 |
"
|
| 35 |
38 |
SLOT="0"
|
| 36 |
39 |
IUSE="alsa audiocom ffmpeg +flac id3tag +ladspa +lv2 mpg123 +ogg
|
| 37 |
40 |
opus +portmixer sbsms test twolame vamp +vorbis wavpack"
|
| 38 |
41 |
REQUIRED_USE="
|
| 39 |
|
audiocom? ( wavpack )
|
| 40 |
42 |
opus? ( ogg )
|
| 41 |
|
test? ( mpg123 )
|
| 42 |
43 |
vorbis? ( ogg )
|
| 43 |
44 |
"
|
| 44 |
45 |
RESTRICT="!test? ( test )"
|
| ... | ... | |
| 65 |
66 |
# - Lavc - 5[789]
|
| 66 |
67 |
# - Lavu - 5[2567]
|
| 67 |
68 |
|
| 68 |
|
RDEPEND="
|
| 69 |
|
app-accessibility/at-spi2-core:2
|
| 70 |
|
dev-db/sqlite:3
|
|
69 |
RDEPEND="dev-db/sqlite:3
|
| 71 |
70 |
dev-libs/expat
|
| 72 |
71 |
dev-libs/glib:2
|
| 73 |
|
media-libs/harfbuzz:=
|
|
72 |
media-libs/libjpeg-turbo:=
|
|
73 |
media-libs/libpng:=
|
| 74 |
74 |
media-libs/libsndfile
|
| 75 |
75 |
media-libs/libsoundtouch:=
|
| 76 |
76 |
media-libs/portaudio[alsa?]
|
| ... | ... | |
| 80 |
80 |
media-sound/lame
|
| 81 |
81 |
sys-apps/util-linux
|
| 82 |
82 |
virtual/zlib:=
|
| 83 |
|
x11-libs/cairo[glib]
|
| 84 |
83 |
x11-libs/gdk-pixbuf:2
|
| 85 |
84 |
x11-libs/gtk+:3
|
| 86 |
|
x11-libs/pango
|
| 87 |
85 |
x11-libs/wxGTK:${WX_GTK_VER}=[X]
|
| 88 |
86 |
alsa? ( media-libs/alsa-lib )
|
| 89 |
|
audiocom? ( net-misc/curl )
|
|
87 |
audiocom? (
|
|
88 |
net-misc/curl
|
|
89 |
)
|
| 90 |
90 |
ffmpeg? ( media-video/ffmpeg )
|
| 91 |
91 |
flac? ( media-libs/flac:=[cxx] )
|
| 92 |
92 |
id3tag? ( media-libs/libid3tag:= )
|
| ... | ... | |
| 119 |
119 |
virtual/pkgconfig"
|
| 120 |
120 |
|
| 121 |
121 |
PATCHES=(
|
| 122 |
|
# fixes include path
|
| 123 |
|
"${FILESDIR}/audacity-3.7.0-portsmf.patch"
|
| 124 |
|
|
| 125 |
|
# disables ccache
|
| 126 |
|
"${FILESDIR}/audacity-3.7.0-disable-ccache.patch"
|
|
122 |
# Equivalent to previous versions
|
|
123 |
"${FILESDIR}/audacity-3.2.3-disable-ccache.patch"
|
|
124 |
# From Debian
|
|
125 |
"${FILESDIR}/audacity-3.3.3-fix-rpaths.patch"
|
| 127 |
126 |
|
| 128 |
127 |
# Disables some header-based detection
|
| 129 |
|
"${FILESDIR}/audacity-3.7.0-allow-overriding-alsa-jack.patch"
|
|
128 |
"${FILESDIR}/audacity-3.2.3-allow-overriding-alsa-jack.patch"
|
| 130 |
129 |
|
| 131 |
130 |
# For has_networking
|
| 132 |
|
"${FILESDIR}/audacity-3.7.0-local-threadpool-libraries.patch"
|
|
131 |
"${FILESDIR}/audacity-3.3.3-local-threadpool-libraries.patch"
|
| 133 |
132 |
|
| 134 |
133 |
# Allows running tests without conan
|
| 135 |
134 |
"${FILESDIR}/audacity-3.3.3-remove-conan-test-dependency.patch"
|
| 136 |
135 |
|
| 137 |
136 |
# #920363
|
| 138 |
|
"${FILESDIR}/audacity-3.7.0-audiocom-std-string.patch"
|
| 139 |
|
|
| 140 |
|
# 915041
|
| 141 |
|
"${FILESDIR}/audacity-3.7.0-do-not-include-template-on-unix-to-fix-clang-compile.patch"
|
|
137 |
"${FILESDIR}/audacity-3.4.2-audiocom-std-string.patch"
|
| 142 |
138 |
)
|
| 143 |
139 |
|
| 144 |
140 |
src_prepare() {
|
| ... | ... | |
| 167 |
163 |
|
| 168 |
164 |
setup-wxwidgets
|
| 169 |
165 |
|
| 170 |
|
# bug #944212
|
| 171 |
|
append-cflags -std=gnu17
|
| 172 |
|
|
| 173 |
166 |
# * always use system libraries if possible
|
| 174 |
167 |
# * USE_VST was omitted, it appears to no longer have dependencies
|
| 175 |
168 |
# (this is different from VST3)
|
| ... | ... | |
| 179 |
172 |
|
| 180 |
173 |
-Daudacity_conan_enabled=off
|
| 181 |
174 |
|
|
175 |
-Daudacity_has_networking=$(usex audiocom on off)
|
| 182 |
176 |
# Not useful on Gentoo.
|
| 183 |
177 |
-Daudacity_has_updates_check=OFF
|
| 184 |
178 |
-Daudacity_has_audiocom_upload=$(usex audiocom on off)
|
| 185 |
|
-Daudacity_has_networking=$(usex audiocom on off)
|
| 186 |
179 |
|
| 187 |
180 |
# Disable telemetry features.
|
| 188 |
181 |
-Daudacity_has_sentry_reporting=off
|
| ... | ... | |
| 198 |
191 |
-Daudacity_obey_system_dependencies=ON
|
| 199 |
192 |
-Daudacity_use_expat=system
|
| 200 |
193 |
-Daudacity_use_ffmpeg=$(usex ffmpeg loaded off)
|
|
194 |
-Daudacity_use_libid3tag=$(usex id3tag system off)
|
| 201 |
195 |
-Daudacity_use_ladspa=$(usex ladspa)
|
| 202 |
196 |
-Daudacity_use_lame=system
|
| 203 |
|
-Daudacity_use_libid3tag=$(usex id3tag system off)
|
|
197 |
-Daudacity_use_wxwidgets=system
|
| 204 |
198 |
-Daudacity_use_libflac=$(usex flac system off)
|
| 205 |
199 |
-Daudacity_use_libmp3lame=system
|
| 206 |
200 |
-Daudacity_use_libmpg123=$(usex mpg123 system off)
|
| ... | ... | |
| 223 |
217 |
-Daudacity_use_twolame=$(usex twolame system off)
|
| 224 |
218 |
-Daudacity_use_vamp=$(usex vamp system off)
|
| 225 |
219 |
-Daudacity_use_wavpack=$(usex wavpack system off)
|
| 226 |
|
-Daudacity_use_wxwidgets=system
|
| 227 |
220 |
|
| 228 |
221 |
# See the allow-overriding-alsa-jack.patch patch
|
| 229 |
222 |
-DPA_HAS_ALSA=$(usex alsa on off)
|