forked from flathub/org.mixxx.Mixxx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.mixxx.Mixxx.yaml
295 lines (275 loc) · 9.89 KB
/
org.mixxx.Mixxx.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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
app-id: org.mixxx.Mixxx
runtime: org.kde.Platform
runtime-version: '5.14'
sdk: org.kde.Sdk
command: mixxx
finish-args:
- --share=ipc
- --socket=wayland
- --socket=x11
- --socket=pulseaudio
- --share=network
- --filesystem=xdg-music:ro
- --persist=.mixxx
- --device=all
- --metadata=X-DConf=migrate-path=/org/mixxx/Mixxx
- --env=LADSPA_PATH=${FLATPAK_DEST}/lib/ladspa
- --system-talk-name=org.freedesktop.UPower
- --env=ALSA_CONFIG_PATH=
rename-desktop-file: mixxx.desktop
rename-appdata-file: mixxx.appdata.xml
cleanup:
- /include
- /share/man
- '*.a'
- '*.la'
- /lib/pkgconfig
modules:
- shared-modules/glu/glu-9.json
- shared-modules/libmad/libmad.json
- shared-modules/python2.7/python-2.7.json
- shared-modules/gudev/gudev.json
- name: protobuf
config-opts:
- --with-zlib
- --with-pic
sources:
- type: archive
url: https://github.com/protocolbuffers/protobuf/releases/download/v3.9.1/protobuf-all-3.9.1.tar.gz
sha256: 3040a5b946d9df7aa89c0bf6981330bf92b7844fd90e71b61da0c721e421a421
cleanup:
- /bin
- name: scons
buildsystem: simple
build-commands:
- python3 setup.py install --prefix=${FLATPAK_DEST} --optimize=1
sources:
- type: archive
url: http://downloads.sourceforge.net/project/scons/scons/3.1.1/scons-3.1.1.tar.gz
sha256: 4cea417fdd7499a36f407923d03b4b7000b0f9e8fd7b31b316b9ce7eba9143a5
cleanup:
- '*'
- name: portaudio
config-opts:
- --disable-static
- --without-oss
sources:
- type: archive
url: http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz
sha256: f5a21d7dcd6ee84397446fa1fa1a0675bb2e8a4a6dceb4305a8404698d8d1513
- name: portmidi
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/app/lib
- -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=/app/lib
- -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/app/bin
sources:
- type: archive
url: http://downloads.sourceforge.net/project/portmedia/portmidi/217/portmidi-src-217.zip
sha256: 08e9a892bd80bdb1115213fb72dc29a7bf2ff108b378180586aa65f3cfd42e0f
- type: patch
path: patches/portmidi/portmidi-no-java.patch
cleanup:
- /bin
- name: taglib
buildsystem: cmake-ninja
config-opts:
- -DBUILD_SHARED_LIBS=ON
- -DWITH_MP4=ON
- -DWITH_ASF=ON
sources:
- type: archive
url: http://taglib.github.io/releases/taglib-1.11.1.tar.gz
sha256: b6d1a5a610aae6ff39d93de5efd0fdc787aa9e9dc1e7026fa4c961b26563526b
cleanup:
- /bin
- name: chromaprint
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DBUILD_SHARED_LIBS=ON
sources:
- type: archive
url: https://github.com/acoustid/chromaprint/releases/download/v1.4.3/chromaprint-1.4.3.tar.gz
sha256: ea18608b76fb88e0203b7d3e1833fb125ce9bb61efe22c6e169a50c52c457f82
- name: vamp-plugin-sdk
sources:
- type: archive
url: https://github.com/c4dm/vamp-plugin-sdk/archive/vamp-plugin-sdk-v2.8.tar.gz
sha256: a64aedfabcaf1349d695b48b1457f90868fa8ecf2a1c49d1743f1943339d709c
cleanup:
- /bin
- name: rubberband
config-opts:
- --disable-program
- --enable-shared
- --disable-static
- --with-ladspa
- --with-vamp
- --without-jni
sources:
- type: archive
url: https://bitbucket.org/breakfastquay/rubberband/get/v1.8.2.tar.gz
sha256: 17c67f0aa6fd682e3c5d79bb1bab0f0d93f3d38d9c54424abb0852b66daa2072
- type: patch
path: patches/rubberband/improve-flexibility-with-autoconf.patch
modules:
- name: ladspa-sdk
no-autogen: true
subdir: src
make-install-args:
- INSTALL_PLUGINS_DIR=${FLATPAK_DEST}/lib/ladspa
- INSTALL_INCLUDE_DIR=${FLATPAK_DEST}/include
- INSTALL_BINARY_DIR=${FLATPAK_DEST}/bin
sources:
- type: archive
url: https://www.ladspa.org/download/ladspa_sdk_1.15.tgz
sha256: 4229959b09d20c88c8c86f4aa76427843011705df22d9c28b38359fd1829fded
- type: patch
path: patches/ladspa-sdk/fix-memleak-in-plugin-scanning.patch
strip-components: 0
cleanup:
- /bin
- libid3tag/libid3tag.json
- name: libusb
config-opts:
- --disable-static
- --disable-udev
sources:
- type: archive
url: https://github.com/libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.tar.bz2
sha256: db11c06e958a82dac52cf3c65cb4dd2c3f339c8a988665110e0d24d19312ad8d
- name: lilv
buildsystem: simple
build-commands:
- python3 waf configure --prefix=${FLATPAK_DEST}
--default-lv2-path=${FLATPAK_DEST}/lib/lv2
--no-bash-completion
--no-utils
- python3 waf build -j ${FLATPAK_BUILDER_N_JOBS}
- python3 waf install
sources:
- type: archive
url: 'https://download.drobilla.net/lilv-0.24.4.tar.bz2'
sha256: c33b84b7a6e8e8fffb412fbcd6f69e59ca297ef3e29d829249b4ccc94f634438
modules:
- name: lv2
buildsystem: simple
build-commands:
- python3 waf configure --prefix=${FLATPAK_DEST}
--lv2dir=${FLATPAK_DEST}/lib/lv2
--no-plugins
- python3 waf build -j ${FLATPAK_BUILDER_N_JOBS}
- python3 waf install
sources:
- type: git
url: 'https://github.com/drobilla/lv2.git'
tag: v1.16.0
commit: 0fa4d4847eb6d5bb0f58da889933c94c37ecb730
cleanup:
- /bin
- /share/lv2specgen
- name: serd
buildsystem: simple
build-commands:
- python3 waf configure --prefix=${FLATPAK_DEST} --no-utils
- python3 waf build -j $FLATPAK_BUILDER_N_JOBS
- python3 waf install
sources:
- type: archive
url: 'https://download.drobilla.net/serd-0.30.0.tar.bz2'
sha256: 6efb0efa5c2155e6bbac941cddeeabb7ed26d70a57d24178894ff169d8f6cefb
- name: sord
buildsystem: simple
build-commands:
- python3 waf configure --prefix=${FLATPAK_DEST} --no-utils
- python3 waf build -j $FLATPAK_BUILDER_N_JOBS
- python3 waf install
sources:
- type: archive
url: 'https://download.drobilla.net/sord-0.16.2.tar.bz2'
sha256: 09f51174dd8f3efbd95f44f0bb0b165f08e066e052d40095de59de787987da8d
- name: sratom
buildsystem: simple
build-commands:
- python3 waf configure --prefix=${FLATPAK_DEST}
- python3 waf build -j $FLATPAK_BUILDER_N_JOBS
- python3 waf install
sources:
- type: archive
url: 'https://download.drobilla.net/sratom-0.6.2.tar.bz2'
sha256: 0a514a55d6b6cb7b5d6f32d1dcb78a1e6e54537fa22fce533e4ef6adf240e853
- name: upower
config-opts:
- --disable-static
- --with-pic
- --with-systemdsystemunitdir=/app/lib/systemd/system
sources:
- type: archive
url: https://upower.freedesktop.org/releases/upower-0.99.11.tar.xz
sha256: 64b5ffbfccd5bdb15d925777979a4dbee1a957f9eaeb158dc76175267eddbdef
- name: libshout
config-opts:
- --disable-static
- --with-pic
build-commands:
- git submodule update
sources:
- type: git
url: https://gitlab.xiph.org/xiph/icecast-libshout.git
branch: master
- name: faad2
config-opts:
- --disable-static
- --with-pic
sources:
- type: archive
url: http://downloads.sourceforge.net/project/faac/faad2-src/faad2-2.8.0/faad2-2.8.8.tar.gz
sha256: 985c3fadb9789d2815e50f4ff714511c79c2710ac27a4aaaf5c0c2662141426d
- name: mp4v2
config-opts:
- --disable-static
- --with-pic
- --disable-debug
sources:
- type: archive
url: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2
sha256: 0319b9a60b667cf10ee0ec7505eb7bdc0a2e21ca7a93db96ec5bd758e3428338
- type: patch
path: patches/mp4v2/libmp4v2-c++11.patch
strip-components: 0
- name: libmodplug
config-opts:
- --with-pic
sources:
- type: archive
url: http://downloads.sourceforge.net/project/modplug-xmms/libmodplug/0.8.8.5/libmodplug-0.8.8.5.tar.gz
sha256: 77462d12ee99476c8645cb5511363e3906b88b33a6b54362b4dbc0f39aa2daad
- name: opusfile
config-opts:
- --disable-static
sources:
- type: archive
url: https://github.com/xiph/opusfile/archive/v0.11.tar.gz
sha256: c2105cffc59545ffc0d2a65069e2f222a1712bbe579911ac0a3d3660edbbec57
- name: mixxx
buildsystem: simple
build-commands:
- scons prefix=${FLATPAK_DEST} -j ${FLATPAK_BUILDER_N_JOBS} build=release ffmpeg=1 faad=1
- scons prefix=${FLATPAK_DEST} install
- install -Dm644 ${FLATPAK_DEST}/share/pixmaps/mixxx_icon.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg
- icon_in="${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg";
icon_out="${FLATPAK_ID}.png";
for s in {32,64,128,256,512}; do
rsvg-convert "${icon_in}" -w "${s}" -h "${s}" -a -f png -o "${icon_out}";
install -p -Dm644 "${icon_out}" -t "${FLATPAK_DEST}/share/icons/hicolor/${s}x${s}/apps/";
done;
post-install:
- desktop-file-edit --set-key="Exec" --set-value="mixxx %U" ${FLATPAK_DEST}/share/applications/mixxx.desktop
- desktop-file-edit --set-key="Icon" --set-value=${FLATPAK_ID} ${FLATPAK_DEST}/share/applications/mixxx.desktop
sources:
- type: archive
url: https://github.com/mixxxdj/mixxx/archive/release-2.2.3.tar.gz
sha256: 69230dca511ba08a284a22a979ff05b62130e97156d39a044bb4045f5f43cd2e
- type: patch
path: patches/mixxx/appdata.patch