-
Notifications
You must be signed in to change notification settings - Fork 3
/
info.smplayer.SMPlayer.yml
216 lines (203 loc) · 7.12 KB
/
info.smplayer.SMPlayer.yml
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
app-id: info.smplayer.SMPlayer
base: io.qt.qtwebkit.BaseApp
base-version: '5.15-23.08'
runtime: org.kde.Platform
runtime-version: '5.15-23.08'
sdk: org.kde.Sdk
rename-desktop-file: smplayer.desktop
rename-appdata-file: smplayer.appdata.xml
rename-icon: smplayer
command: smplayer
finish-args:
- '--share=ipc'
- '--share=network'
- '--socket=x11'
- '--socket=pulseaudio'
- '--device=dri'
- '--filesystem=host'
- '--talk-name=org.freedesktop.ScreenSaver'
- '--own-name=org.mpris.MediaPlayer2.smplayer'
modules:
- name: smplayer
buildsystem: simple
build-options:
env:
QMAKEPATH: /app/lib
arch:
x86_64:
env:
QDEFOPTS: DEFINES+=USE_SHM DEFINES+=USE_GL_WINDOW DEFINES+=NO_MPLAYER
aarch64:
env:
QDEFOPTS: DEFINES+=USE_SHM DEFINES+=NO_MPLAYER
build-commands:
- make PREFIX=/app QMAKE_OPTS="$QDEFOPTS" -j$FLATPAK_BUILDER_N_JOBS install
- install -Dm644 icons/smplayer.svg /app/share/icons/hicolor/scalable/apps/smplayer.svg
sources:
- type: git
url: https://github.com/smplayer-dev/smplayer.git
tag: v24.5.0
commit: dc37d6faef17b1892d30ab31ec1295ec09e803ea
disable-shallow-clone: true
modules:
- name: mpv
cleanup:
- /include
- /lib/pkgconfig
- /share/man
buildsystem: simple
build-commands:
- python3 waf configure --prefix=/app
--enable-libarchive
--enable-gl-x11
--disable-pipewire
- python3 waf build
- python3 waf install
sources:
- type: git
url: 'https://github.com/smplayer-dev/mpv.git'
tag: v0.36.0
commit: ca9dd6d18b7832127a8158950c8c2c2138225e5e
- type: file
url: 'https://waf.io/waf-2.0.21'
sha256: '7cebf2c5efe53cbb9a4b5bdc4b49ae90ecd64a8fce7a3222d58e591b58215306'
dest-filename: waf
modules:
- name: libXpresent
buildsystem: autotools
sources:
- type: git
url: https://gitlab.freedesktop.org/xorg/lib/libxpresent.git
tag: libXpresent-1.0.1
commit: 37507b5f44332accfb1064ee69a4f6a833994747
- name: luajit
no-autogen: true
cleanup:
- /bin
- /lib/*.a
- /include
- /lib/pkgconfig
- /share/man
sources:
- type: archive
url: 'http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz'
sha256: '1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3'
- type: shell
commands:
- sed -i 's|/usr/local|/app|' ./Makefile
- name: nv-codec-headers
disabled: true
cleanup:
- '*'
no-autogen: true
make-install-args:
- PREFIX=/app
sources:
- type: archive
url: 'https://github.com/FFmpeg/nv-codec-headers/releases/download/n11.0.10.0/nv-codec-headers-11.0.10.0.tar.gz'
sha256: 'e5d1fe6b18254a3c8747a38714564030e4fda506961a11a7eafb94f2400419bb'
- name: ffmpeg
#disabled: true
cleanup:
- /include
- /lib/pkgconfig
- /share/ffmpeg/examples
config-opts:
- '--enable-shared'
- '--disable-static'
- '--enable-gnutls'
- '--enable-gpl'
- '--disable-doc'
- '--disable-programs'
- '--disable-encoders'
- '--disable-muxers'
- '--enable-encoder=png,libwebp'
- '--enable-libv4l2'
- '--enable-libdav1d'
- '--enable-libfontconfig'
- '--enable-libfreetype'
- '--enable-libopus'
- '--enable-librsvg'
- '--enable-libvpx'
- '--enable-libmp3lame'
- '--enable-libwebp'
sources:
- type: archive
url: 'https://ffmpeg.org/releases/ffmpeg-6.1.tar.xz'
sha256: '488c76e57dd9b3bee901f71d5c95eaf1db4a5a31fe46a28654e837144207c270'
- name: libass
cleanup:
- /include
- /lib/*.la
- /lib/pkgconfig
config-opts:
- '--disable-static'
sources:
- type: archive
url: 'https://github.com/libass/libass/releases/download/0.15.0/libass-0.15.0.tar.gz'
sha256: '9cbddee5e8c87e43a5fe627a19cd2aa4c36552156eb4edcf6c5a30bd4934fe58'
- name: uchardet
disabled: true
buildsystem: cmake-ninja
config-opts:
- '-DCMAKE_BUILD_TYPE=Release'
- '-DBUILD_STATIC=0'
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /share/man
sources:
- type: archive
url: 'https://gitlab.freedesktop.org/uchardet/uchardet/-/archive/v0.0.7/uchardet-v0.0.7.tar.gz'
sha256: 'f3635d1d10e1470452bc42c1bf509451a9926b399a11740a9949e86069d69f58'
- name: fribidi
disabled: true
cleanup:
- "/bin"
- "/include"
- "/lib/pkgconfig"
- "/lib/*.la"
- "/share/man"
sources:
- type: archive
url: https://github.com/fribidi/fribidi/releases/download/v1.0.5/fribidi-1.0.5.tar.bz2
sha256: 6a64f2a687f5c4f203a46fa659f43dd43d1f8b845df8d723107e8a7e6158e4ce
- name: mplayer
disabled: true
buildsystem: autotools
build-options:
arch:
x86_64:
config-opts:
- --enable-runtime-cpudetection
config-opts:
- --disable-gui
- --disable-mencoder
- --extra-libs-mplayer=-lrt
- --disable-libmpeg2-internal
- --disable-ffmpeg_a
- --yasm=
sources:
- type: git
url: https://github.com/smplayer-dev/mplayer-mod.git
tag: v1.5-110
commit: ea47c72e2b91a0a42fd2723f075bd7adb43ec55a
- name: smplayer-skins
buildsystem: simple
build-commands:
- make PREFIX=/app
- make PREFIX=/app install
sources:
- type: archive
url: https://sourceforge.net/projects/smplayer/files/SMPlayer-skins/20.11.0/smplayer-skins-20.11.0.tar.bz2
sha256: 3bbfe7f31f2ebaa158b9e7c9f7601b0116eb375bb577cf65e313a9a45c622973
- name: smplayer-themes
buildsystem: simple
build-commands:
- make PREFIX=/app
- make PREFIX=/app install
sources:
- type: archive
url: https://sourceforge.net/projects/smplayer/files/SMPlayer-themes/20.11.0/smplayer-themes-20.11.0.tar.bz2
sha256: b99c02a13e5587e0c59d127d2f2536a1bc2740e726fadb47c89d349df5951132