-
Notifications
You must be signed in to change notification settings - Fork 13
/
org.audacityteam.Audacity.yaml
267 lines (255 loc) · 8.23 KB
/
org.audacityteam.Audacity.yaml
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
app-id: org.audacityteam.Audacity
# freedesktop-sdk should work too, but causes problems with
# the timeline mouse cursor on some systems for unknown reasons
runtime: org.gnome.Platform
runtime-version: '46'
sdk: org.gnome.Sdk
command: audacity
rename-desktop-file: audacity.desktop
rename-icon: audacity
rename-appdata-file: audacity.appdata.xml
rename-mime-file: audacity.xml
finish-args:
- --share=ipc
- --socket=x11
- --share=network # Audacity uses network sockets for IPC
- --socket=pulseaudio
- --device=dri
- --filesystem=host
# mod-script-pipe provides named pipes in /tmp
- --filesystem=/tmp
- --env=LD_LIBRARY_PATH=/app/lib/audacity
- --env=ALSA_CONFIG_PATH=
# JACK support via pipewire
- --filesystem=xdg-run/pipewire-0
add-extensions:
org.audacityteam.Audacity.Codecs:
directory: lib/codecs
add-ld-path: lib
bundle: true
autodelete: true
org.freedesktop.LinuxAudio.Plugins:
directory: extensions/Plugins
version: '23.08'
add-ld-path: lib
merge-dirs: ladspa;lv2;vst;vst3
subdirectories: true
no-autodownload: true
cleanup:
- /include
- /lib/pkgconfig
- /share/aclocal
- /share/man
- '*.la'
- '*.a'
modules:
- name: wxwidgets
rm-configure: true
config-opts:
- --with-libpng
- --with-zlib
- --with-cxx=14
- --disable-sdltest
- --disable-webview
- --disable-webviewwebkit
- --disable-ribbon
- --disable-propgrid
- --disable-richtext
- --with-expat=builtin
- --with-libiconv=/usr
cleanup:
- /bin
- /lib/wx
- /share/bakefile
sources:
- type: git
url: https://github.com/wxWidgets/wxWidgets.git
tag: v3.1.5
- deps/lame-3.100.json
- deps/libid3tag/libid3tag.json
- name: ffmpeg
config-opts:
- --enable-shared
- --disable-static
- --disable-programs
- --disable-doc
- --disable-everything
- --enable-libopus
- --enable-libmp3lame
- --enable-decoder=ac3
- --enable-decoder=opus
- --enable-decoder=mp3
- --enable-encoder=ac3
- --enable-demuxer=ac3
- --enable-demuxer=mov
- --enable-demuxer=mp3
- --enable-demuxer=ogg
- --enable-muxer=ac3
- --enable-muxer=ipod
- --enable-muxer=opus
- --enable-parser=ac3
- --enable-parser=opus
cleanup:
- /share/ffmpeg/examples
sources:
- type: archive
url: https://ffmpeg.org/releases/ffmpeg-7.1.tar.xz
sha256: 40973d44970dbc83ef302b0609f2e74982be2d85916dd2ee7472d30678a7abe6
x-checker-data:
type: anitya
project-id: 5405
url-template: https://ffmpeg.org/releases/ffmpeg-$version.tar.xz
- name: ffmpeg-codecs
config-opts:
# all codecs/formats are enabled to allow audio extraction from movie files
- --enable-shared
- --disable-static
- --disable-programs
- --disable-doc
- --disable-avdevice
- --enable-libopus
- --enable-libmp3lame
- --prefix=/app/lib/codecs
cleanup:
- /lib/codecs/include
- /lib/codecs/lib/pkgconfig
- /lib/codecs/share
sources:
- type: archive
url: https://ffmpeg.org/releases/ffmpeg-7.1.tar.xz
sha256: 40973d44970dbc83ef302b0609f2e74982be2d85916dd2ee7472d30678a7abe6
x-checker-data:
type: anitya
project-id: 5405
url-template: https://ffmpeg.org/releases/ffmpeg-$version.tar.xz
- name: sqlite
# version bundled with runtime is missing the SQLITE_DBPAGE virtual table
build-options:
cflags: >
-DSQLITE_ENABLE_COLUMN_METADATA=1
-DSQLITE_SECURE_DELETE=1
-DSQLITE_ENABLE_FTS3=1
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1
-DSQLITE_ENABLE_DBPAGE_VTAB=1
-DSQLITE_ENABLE_DBSTAT_VTAB=1
config-opts:
- --enable-fts5
sources:
- type: archive
url: https://www.sqlite.org/2020/sqlite-autoconf-3340000.tar.gz
sha256: bf6db7fae37d51754737747aaaf413b4d6b3b5fbacd52bdb2d0d6e5b2edd9aee
- name: chrpath
cleanup:
- '*'
sources:
- type: archive
url: https://alioth-archive.debian.org/releases/chrpath/chrpath/0.16/chrpath-0.16.tar.gz
sha256: bb0d4c54bac2990e1bdf8132f2c9477ae752859d523e141e72b3b11a12c26e7b
- shared-modules/libmad/libmad.json
- name: portaudio
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
sources:
- type: archive
url: https://github.com/PortAudio/portaudio/archive/refs/tags/v19.7.0.tar.gz
sha256: 5af29ba58bbdbb7bbcefaaecc77ec8fc413f0db6f4c4e286c40c3e1b83174fa0
- name: portmidi
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
sources:
- type: archive
url: https://github.com/mixxxdj/portmidi/archive/refs/tags/236.tar.gz
sha256: 5db9bcb78c728eb81218e905faa5f02eab1f851b3ae5e5b13312755b9b0db943
cleanup:
- /bin
- shared-modules/linux-audio/lv2.json
- shared-modules/linux-audio/lilv.json
- deps/suil.json
- name: rapidjson
buildsystem: cmake-ninja
config-opts:
- -DRAPIDJSON_BUILD_DOC=OFF
- -DRAPIDJSON_BUILD_EXAMPLES=OFF
- -DRAPIDJSON_BUILD_TESTS=OFF
- -DRAPIDJSON_BUILD_THIRDPARTY_GTEST=OFF
sources:
- type: archive
url: https://github.com/miloyip/rapidjson/archive/v1.1.0.tar.gz
sha256: bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e
- gtkmm.json
- name: audacity
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DCMAKE_INSTALL_LIBDIR=/app/lib
- -DAUDACITY_BUILD_LEVEL=2
- -Dgtk=gtk+-3.0
- -Dglib=glib-2.0
- -DwxWidgets_INCLUDE_DIRS=/app/include/wx-3.1;/app/lib/wx/include/gtk3-unicode-3.1
- -DwxWidgets_CXX_FLAGS=-pthread
- -DwxWidgets_DEFINITIONS_GENERAL=WXUSINGDLL;__WXGTK__;_FILE_OFFSET_BITS=64
- -DwxWidgets_LIBRARIES=-lwx_gtk3u_xrc-3.1;-lwx_gtk3u_html-3.1;-lwx_gtk3u_qa-3.1;-lwx_gtk3u_core-3.1;-lwx_baseu_xml-3.1;-lwx_baseu_net-3.1;-lwx_baseu-3.1
- -Daudacity_lib_preference=system
- -Daudacity_obey_system_dependencies=On
- -Daudacity_use_wxwidgets=system
- -Daudacity_use_soxr=local
- -Daudacity_use_portaudio=system
- -Daudacity_use_vamp=local
- -Daudacity_use_midi=system
- -Daudacity_use_portsmf=local
- -Daudacity_use_sbsms=local
- -Daudacity_use_soundtouch=local
- -Daudacity_use_portmixer=On
- -Daudacity_use_nyquist=On
- -Daudacity_use_twolame=local
- -Daudacity_has_networking=no
- -Daudacity_has_updates_check=NO
- -Daudacity_has_vst3=On
- -Daudacity_use_vst3sdk=system
- -Daudacity_conan_enabled=Off
post-install:
- chrpath -d /app/bin/audacity
- mv /app/bin/audacity{,.bin}
- install -Dm755 ../audacity.sh /app/bin/audacity
- install -Dm644 ../help/audacity.appdata.xml -t /app/share/metainfo
- install -d /app/extensions/Plugins
- desktop-file-edit --set-key=Exec --set-value="audacity %F" /app/share/applications/audacity.desktop
cleanup:
- /share/audacity/include
- /share/pixmaps
sources:
- type: git
url: https://github.com/audacity/audacity.git
commit: 72fc2e05fb7db01eee2bf056a9566b9be559ae2b
tag: Audacity-3.7.0
x-checker-data:
type: git
tag-pattern: ^Audacity-([\d.]+)$
- type: patch
paths:
- patches/0001-audacity-suil-fix.patch
- patches/0002-audacity-c++fs.patch
- patches/0003-audacity-appstream.patch
- patches/0004-audacity-vst-path.patch
- type: git
dest: vst3sdk
url: https://github.com/steinbergmedia/vst3sdk.git
tag: v3.7.3_build_20
commit: 2cc517019a2681fccf211e6a95776a0af1e16d04
- type: patch
options:
- -d
- vst3sdk
paths:
- patches/0001-vst3sdk-c++fs.patch
- patches/0002-vst3sdk-buildfix.patch
- type: script
dest-filename: audacity.sh
commands:
- export LADSPA_PATH=/app/extensions/Plugins/ladspa
- export VST3_PATH=/app/extensions/Plugins/vst3
- export LV2_PATH=$HOME/.lv2:/app/extensions/Plugins/lv2:/app/lib/lv2
- exec audacity.bin "$@"