-
Notifications
You must be signed in to change notification settings - Fork 65
/
Dockerfile
1331 lines (1265 loc) · 57.1 KB
/
Dockerfile
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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# bump: alpine /ALPINE_VERSION=alpine:([\d.]+)/ docker:alpine|^3
# bump: alpine link "Release notes" https://alpinelinux.org/posts/Alpine-$LATEST-released.html
ARG ALPINE_VERSION=alpine:3.20.3
FROM $ALPINE_VERSION AS builder
# Alpine Package Keeper options
ARG APK_OPTS=""
RUN apk add --no-cache $APK_OPTS \
coreutils \
pkgconfig \
wget \
rust cargo cargo-c \
openssl-dev openssl-libs-static \
ca-certificates \
bash \
tar \
build-base \
autoconf automake \
libtool \
diffutils \
cmake meson ninja \
git \
yasm nasm \
texinfo \
jq \
zlib-dev zlib-static \
bzip2-dev bzip2-static \
libxml2-dev libxml2-static \
expat-dev expat-static \
fontconfig-dev fontconfig-static \
freetype freetype-dev freetype-static \
graphite2-static \
tiff tiff-dev \
libjpeg-turbo libjpeg-turbo-dev \
libpng-dev libpng-static \
giflib giflib-dev \
fribidi-dev fribidi-static \
brotli-dev brotli-static \
soxr-dev soxr-static \
tcl \
numactl-dev \
cunit cunit-dev \
fftw-dev \
libsamplerate-dev libsamplerate-static \
vo-amrwbenc-dev vo-amrwbenc-static \
snappy snappy-dev snappy-static \
xxd \
xz-dev xz-static \
python3 py3-packaging \
linux-headers \
curl \
libdrm-dev
# linux-headers need by rtmpdump
# python3 py3-packaging needed by glib
# -O3 makes sure we compile with optimization. setting CFLAGS/CXXFLAGS seems to override
# default automake cflags.
# -static-libgcc is needed to make gcc not include gcc_s as "as-needed" shared library which
# cmake will include as a implicit library.
# other options to get hardened build (same as ffmpeg hardened)
ARG CFLAGS="-O3 -static-libgcc -fno-strict-overflow -fstack-protector-all -fPIC"
ARG CXXFLAGS="-O3 -static-libgcc -fno-strict-overflow -fstack-protector-all -fPIC"
ARG LDFLAGS="-Wl,-z,relro,-z,now"
# retry dns and some http codes that might be transient errors
ARG WGET_OPTS="--retry-on-host-error --retry-on-http-error=429,500,502,503"
# --no-same-owner as we don't care about uid/gid even if we run as root. fixes invalid gid/uid issue.
ARG TAR_OPTS="--no-same-owner --extract --file"
# before aom as libvmaf uses it
# bump: vmaf /VMAF_VERSION=([\d.]+)/ https://github.com/Netflix/vmaf.git|*
# bump: vmaf after ./hashupdate Dockerfile VMAF $LATEST
# bump: vmaf link "Release" https://github.com/Netflix/vmaf/releases/tag/v$LATEST
# bump: vmaf link "Source diff $CURRENT..$LATEST" https://github.com/Netflix/vmaf/compare/v$CURRENT..v$LATEST
ARG VMAF_VERSION=3.0.0
ARG VMAF_URL="https://github.com/Netflix/vmaf/archive/refs/tags/v$VMAF_VERSION.tar.gz"
ARG VMAF_SHA256=7178c4833639e6b989ecae73131d02f70735fdb3fc2c7d84bc36c9c3461d93b1
RUN \
wget $WGET_OPTS -O vmaf.tar.gz "$VMAF_URL" && \
echo "$VMAF_SHA256 vmaf.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS vmaf.tar.gz && cd vmaf-*/libvmaf && \
meson setup build \
-Dbuildtype=release \
-Ddefault_library=static \
-Dbuilt_in_models=true \
-Denable_tests=false \
-Denable_docs=false \
-Denable_avx512=true \
-Denable_float=true && \
ninja -j$(nproc) -vC build install
# extra libs stdc++ is for vmaf https://github.com/Netflix/vmaf/issues/788
RUN sed -i 's/-lvmaf /-lvmaf -lstdc++ /' /usr/local/lib/pkgconfig/libvmaf.pc
# own build as alpine glib links with libmount etc
# bump: glib /GLIB_VERSION=([\d.]+)/ https://gitlab.gnome.org/GNOME/glib.git|^2
# bump: glib after ./hashupdate Dockerfile GLIB $LATEST
# bump: glib link "NEWS" https://gitlab.gnome.org/GNOME/glib/-/blob/main/NEWS?ref_type=heads
ARG GLIB_VERSION=2.82.2
ARG GLIB_URL="https://download.gnome.org/sources/glib/2.82/glib-$GLIB_VERSION.tar.xz"
ARG GLIB_SHA256=ab45f5a323048b1659ee0fbda5cecd94b099ab3e4b9abf26ae06aeb3e781fd63
RUN \
wget $WGET_OPTS -O glib.tar.xz "$GLIB_URL" && \
echo "$GLIB_SHA256 glib.tar.xz" | sha256sum --status -c - && \
tar $TAR_OPTS glib.tar.xz && cd glib-* && \
meson setup build \
-Dbuildtype=release \
-Ddefault_library=static \
-Dlibmount=disabled && \
ninja -j$(nproc) -vC build install
# bump: harfbuzz /LIBHARFBUZZ_VERSION=([\d.]+)/ https://github.com/harfbuzz/harfbuzz.git|*
# bump: harfbuzz after ./hashupdate Dockerfile LIBHARFBUZZ $LATEST
# bump: harfbuzz link "NEWS" https://github.com/harfbuzz/harfbuzz/blob/main/NEWS
ARG LIBHARFBUZZ_VERSION=10.1.0
ARG LIBHARFBUZZ_URL="https://github.com/harfbuzz/harfbuzz/releases/download/$LIBHARFBUZZ_VERSION/harfbuzz-$LIBHARFBUZZ_VERSION.tar.xz"
ARG LIBHARFBUZZ_SHA256=6ce3520f2d089a33cef0fc48321334b8e0b72141f6a763719aaaecd2779ecb82
RUN \
wget $WGET_OPTS -O harfbuzz.tar.xz "$LIBHARFBUZZ_URL" && \
echo "$LIBHARFBUZZ_SHA256 harfbuzz.tar.xz" | sha256sum --status -c - && \
tar $TAR_OPTS harfbuzz.tar.xz && cd harfbuzz-* && \
meson setup build \
-Dbuildtype=release \
-Ddefault_library=static && \
ninja -j$(nproc) -vC build install
# bump: cairo /CAIRO_VERSION=([\d.]+)/ https://gitlab.freedesktop.org/cairo/cairo.git|^1
# bump: cairo after ./hashupdate Dockerfile CAIRO $LATEST
# bump: cairo link "NEWS" https://gitlab.freedesktop.org/cairo/cairo/-/blob/master/NEWS?ref_type=heads
ARG CAIRO_VERSION=1.18.2
ARG CAIRO_URL="https://cairographics.org/releases/cairo-$CAIRO_VERSION.tar.xz"
ARG CAIRO_SHA256=a62b9bb42425e844cc3d6ddde043ff39dbabedd1542eba57a2eb79f85889d45a
RUN \
wget $WGET_OPTS -O cairo.tar.xz "$CAIRO_URL" && \
echo "$CAIRO_SHA256 cairo.tar.xz" | sha256sum --status -c - && \
tar $TAR_OPTS cairo.tar.xz && cd cairo-* && \
meson setup build \
-Dbuildtype=release \
-Ddefault_library=static \
-Dtests=disabled \
-Dquartz=disabled \
-Dxcb=disabled \
-Dxlib=disabled \
-Dxlib-xcb=disabled && \
ninja -j$(nproc) -vC build install
# TODO: there is weird "1.90" tag, skip it
# bump: pango /PANGO_VERSION=([\d.]+)/ https://github.com/GNOME/pango.git|/\d+\.\d+\.\d+/|*
# bump: pango after ./hashupdate Dockerfile PANGO $LATEST
# bump: pango link "NEWS" https://gitlab.gnome.org/GNOME/pango/-/blob/main/NEWS?ref_type=heads
ARG PANGO_VERSION=1.54.0
ARG PANGO_URL="https://download.gnome.org/sources/pango/1.54/pango-$PANGO_VERSION.tar.xz"
ARG PANGO_SHA256=8a9eed75021ee734d7fc0fdf3a65c3bba51dfefe4ae51a9b414a60c70b2d1ed8
# TODO: add -Dbuild-testsuite=false when in stable release
# TODO: -Ddefault_library=both currently to not fail building tests
RUN \
wget $WGET_OPTS -O pango.tar.xz "$PANGO_URL" && \
echo "$PANGO_SHA256 pango.tar.xz" | sha256sum --status -c - && \
tar $TAR_OPTS pango.tar.xz && cd pango-* && \
meson setup build \
-Dbuildtype=release \
-Ddefault_library=both \
-Dintrospection=disabled \
-Dgtk_doc=false && \
ninja -j$(nproc) -vC build install
# bump: librsvg /LIBRSVG_VERSION=([\d.]+)/ https://gitlab.gnome.org/GNOME/librsvg.git|^2
# bump: librsvg after ./hashupdate Dockerfile LIBRSVG $LATEST
# bump: librsvg link "NEWS" https://gitlab.gnome.org/GNOME/librsvg/-/blob/master/NEWS
ARG LIBRSVG_VERSION=2.59.2
ARG LIBRSVG_URL="https://download.gnome.org/sources/librsvg/2.59/librsvg-$LIBRSVG_VERSION.tar.xz"
ARG LIBRSVG_SHA256=ecd293fb0cc338c170171bbc7bcfbea6725d041c95f31385dc935409933e4597
RUN \
wget $WGET_OPTS -O librsvg.tar.xz "$LIBRSVG_URL" && \
echo "$LIBRSVG_SHA256 librsvg.tar.xz" | sha256sum --status -c - && \
tar $TAR_OPTS librsvg.tar.xz && cd librsvg-* && \
meson setup build \
-Dbuildtype=release \
-Ddefault_library=static \
-Ddocs=disabled \
-Dintrospection=disabled \
-Dpixbuf=disabled \
-Dpixbuf-loader=disabled \
-Dvala=disabled \
-Dtests=false && \
ninja -j$(nproc) -vC build install
# build after libvmaf
# bump: aom /AOM_VERSION=([\d.]+)/ git:https://aomedia.googlesource.com/aom|*
# bump: aom after ./hashupdate Dockerfile AOM $LATEST
# bump: aom after COMMIT=$(git ls-remote https://aomedia.googlesource.com/aom v$LATEST^{} | awk '{print $1}') && sed -i -E "s/^ARG AOM_COMMIT=.*/ARG AOM_COMMIT=$COMMIT/" Dockerfile
# bump: aom link "CHANGELOG" https://aomedia.googlesource.com/aom/+/refs/tags/v$LATEST/CHANGELOG
ARG AOM_VERSION=3.11.0
ARG AOM_URL="https://aomedia.googlesource.com/aom"
ARG AOM_COMMIT=d6f30ae474dd6c358f26de0a0fc26a0d7340a84c
RUN git clone --depth 1 --branch v$AOM_VERSION "$AOM_URL"
RUN cd aom && test $(git rev-parse HEAD) = $AOM_COMMIT
RUN \
cd aom && \
mkdir build_tmp && cd build_tmp && \
cmake \
-G"Unix Makefiles" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DENABLE_EXAMPLES=NO \
-DENABLE_DOCS=NO \
-DENABLE_TESTS=NO \
-DENABLE_TOOLS=NO \
-DCONFIG_TUNE_VMAF=1 \
-DENABLE_NASM=ON \
-DCMAKE_INSTALL_LIBDIR=lib \
.. && \
make -j$(nproc) install
# bump: libaribb24 /LIBARIBB24_VERSION=([\d.]+)/ https://github.com/nkoriyama/aribb24.git|*
# bump: libaribb24 after ./hashupdate Dockerfile LIBARIBB24 $LATEST
# bump: libaribb24 link "Release notes" https://github.com/nkoriyama/aribb24/releases/tag/$LATEST
ARG LIBARIBB24_VERSION=1.0.3
ARG LIBARIBB24_URL="https://github.com/nkoriyama/aribb24/archive/v$LIBARIBB24_VERSION.tar.gz"
ARG LIBARIBB24_SHA256=f61560738926e57f9173510389634d8c06cabedfa857db4b28fb7704707ff128
RUN \
wget $WGET_OPTS -O libaribb24.tar.gz "$LIBARIBB24_URL" && \
echo "$LIBARIBB24_SHA256 libaribb24.tar.gz" | sha256sum -c - && \
mkdir libaribb24 && \
tar $TAR_OPTS libaribb24.tar.gz -C libaribb24 --strip-components=1 && cd libaribb24 && \
autoreconf -fiv && \
./configure \
--enable-static \
--disable-shared && \
make -j$(nproc) && make install
# bump: libass /LIBASS_VERSION=([\d.]+)/ https://github.com/libass/libass.git|*
# bump: libass after ./hashupdate Dockerfile LIBASS $LATEST
# bump: libass link "Release notes" https://github.com/libass/libass/releases/tag/$LATEST
ARG LIBASS_VERSION=0.17.3
ARG LIBASS_URL="https://github.com/libass/libass/releases/download/$LIBASS_VERSION/libass-$LIBASS_VERSION.tar.gz"
ARG LIBASS_SHA256=da7c348deb6fa6c24507afab2dee7545ba5dd5bbf90a137bfe9e738f7df68537
RUN \
wget $WGET_OPTS -O libass.tar.gz "$LIBASS_URL" && \
echo "$LIBASS_SHA256 libass.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS libass.tar.gz && cd libass-* && \
./configure \
--disable-shared \
--enable-static && \
make -j$(nproc) && make install
# bump: libbluray /LIBBLURAY_VERSION=([\d.]+)/ https://code.videolan.org/videolan/libbluray.git|*
# bump: libbluray after ./hashupdate Dockerfile LIBBLURAY $LATEST
# bump: libbluray link "ChangeLog" https://code.videolan.org/videolan/libbluray/-/blob/master/ChangeLog
ARG LIBBLURAY_VERSION=1.3.4
ARG LIBBLURAY_URL="https://code.videolan.org/videolan/libbluray/-/archive/$LIBBLURAY_VERSION/libbluray-$LIBBLURAY_VERSION.tar.gz"
ARG LIBBLURAY_SHA256=9820df5c3e87777be116ca225ad7ee026a3ff42b2447c7fe641910fb23aad3c2
# TODO: bump config? at least checkout to make commit sticky
ARG LIBUDFREAD_COMMIT=a35513813819efadca82c4b90edbe1407b1b9e05
# dec_init rename is to workaround https://code.videolan.org/videolan/libbluray/-/issues/43
RUN \
wget $WGET_OPTS -O libbluray.tar.gz "$LIBBLURAY_URL" && \
echo "$LIBBLURAY_SHA256 libbluray.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS libbluray.tar.gz && cd libbluray-* && \
sed -i 's/dec_init/libbluray_dec_init/' src/libbluray/disc/* && \
git clone https://code.videolan.org/videolan/libudfread.git contrib/libudfread && \
(cd contrib/libudfread && git checkout --recurse-submodules $LIBUDFREAD_COMMIT) && \
autoreconf -fiv && \
./configure \
--with-pic \
--disable-doxygen-doc \
--disable-doxygen-dot \
--enable-static \
--disable-shared \
--disable-examples \
--disable-bdjava-jar && \
make -j$(nproc) install
# bump: dav1d /DAV1D_VERSION=([\d.]+)/ https://code.videolan.org/videolan/dav1d.git|*
# bump: dav1d after ./hashupdate Dockerfile DAV1D $LATEST
# bump: dav1d link "Release notes" https://code.videolan.org/videolan/dav1d/-/tags/$LATEST
ARG DAV1D_VERSION=1.5.0
ARG DAV1D_URL="https://code.videolan.org/videolan/dav1d/-/archive/$DAV1D_VERSION/dav1d-$DAV1D_VERSION.tar.gz"
ARG DAV1D_SHA256=78b15d9954b513ea92d27f39362535ded2243e1b0924fde39f37a31ebed5f76b
RUN \
wget $WGET_OPTS -O dav1d.tar.gz "$DAV1D_URL" && \
echo "$DAV1D_SHA256 dav1d.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS dav1d.tar.gz && cd dav1d-* && \
meson setup build \
-Dbuildtype=release \
-Ddefault_library=static && \
ninja -j$(nproc) -vC build install
# bump: davs2 /DAVS2_VERSION=([\d.]+)/ https://github.com/pkuvcl/davs2.git|^1
# bump: davs2 after ./hashupdate Dockerfile DAVS2 $LATEST
# bump: davs2 link "Release" https://github.com/pkuvcl/davs2/releases/tag/$LATEST
# bump: davs2 link "Source diff $CURRENT..$LATEST" https://github.com/pkuvcl/davs2/compare/v$CURRENT..v$LATEST
ARG DAVS2_VERSION=1.7
ARG DAVS2_URL="https://github.com/pkuvcl/davs2/archive/refs/tags/$DAVS2_VERSION.tar.gz"
ARG DAVS2_SHA256=b697d0b376a1c7f7eda3a4cc6d29707c8154c4774358303653f0a9727f923cc8
# TODO: seems to be issues with asm on musl
RUN \
wget $WGET_OPTS -O davs2.tar.gz "$DAVS2_URL" && \
echo "$DAVS2_SHA256 davs2.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS davs2.tar.gz && cd davs2-*/build/linux && \
./configure \
--disable-asm \
--enable-pic \
--enable-strip \
--disable-cli && \
make -j$(nproc) install
# bump: fdk-aac /FDK_AAC_VERSION=([\d.]+)/ https://github.com/mstorsjo/fdk-aac.git|*
# bump: fdk-aac after ./hashupdate Dockerfile FDK_AAC $LATEST
# bump: fdk-aac link "ChangeLog" https://github.com/mstorsjo/fdk-aac/blob/master/ChangeLog
# bump: fdk-aac link "Source diff $CURRENT..$LATEST" https://github.com/mstorsjo/fdk-aac/compare/v$CURRENT..v$LATEST
ARG FDK_AAC_VERSION=2.0.3
ARG FDK_AAC_URL="https://github.com/mstorsjo/fdk-aac/archive/v$FDK_AAC_VERSION.tar.gz"
ARG FDK_AAC_SHA256=e25671cd96b10bad896aa42ab91a695a9e573395262baed4e4a2ff178d6a3a78
RUN \
wget $WGET_OPTS -O fdk-aac.tar.gz "$FDK_AAC_URL" && \
echo "$FDK_AAC_SHA256 fdk-aac.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS fdk-aac.tar.gz && cd fdk-aac-* && \
./autogen.sh && \
./configure \
--disable-shared \
--enable-static && \
make -j$(nproc) install
# bump: libgme /LIBGME_COMMIT=([[:xdigit:]]+)/ gitrefs:https://github.com/libgme/game-music-emu.git|re:#^refs/heads/master$#|@commit
# bump: libgme after ./hashupdate Dockerfile LIBGME $LATEST
# bump: libgme link "Source diff $CURRENT..$LATEST" https://github.com/libgme/game-music-emu/compare/$CURRENT..v$LATEST
ARG LIBGME_URL="https://github.com/libgme/game-music-emu.git"
ARG LIBGME_COMMIT=cb2c1ccc7563ed58321cc3b6b8507b9015192b80
RUN \
git clone "$LIBGME_URL" && \
cd game-music-emu && git checkout --recurse-submodules $LIBGME_COMMIT && \
mkdir build && cd build && \
cmake \
-G"Unix Makefiles" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DENABLE_UBSAN=OFF \
.. && \
make -j$(nproc) install
# bump: libgsm /LIBGSM_COMMIT=([[:xdigit:]]+)/ gitrefs:https://github.com/timothytylee/libgsm.git|re:#^refs/heads/master$#|@commit
# bump: libgsm after ./hashupdate Dockerfile LIBGSM $LATEST
# bump: libgsm link "Changelog" https://github.com/timothytylee/libgsm/blob/master/ChangeLog
ARG LIBGSM_URL="https://github.com/timothytylee/libgsm.git"
ARG LIBGSM_COMMIT=98f1708fb5e06a0dfebd58a3b40d610823db9715
RUN \
git clone "$LIBGSM_URL" && \
cd libgsm && git checkout --recurse-submodules $LIBGSM_COMMIT && \
# Makefile is hard to use, hence use specific compile arguments and flags
# no need to build toast cli tool \
rm src/toast* && \
SRC=$(echo src/*.c) && \
gcc ${CFLAGS} -c -ansi -pedantic -s -DNeedFunctionPrototypes=1 -Wall -Wno-comment -DSASR -DWAV49 -DNDEBUG -I./inc ${SRC} && \
ar cr libgsm.a *.o && ranlib libgsm.a && \
mkdir -p /usr/local/include/gsm && \
cp inc/*.h /usr/local/include/gsm && \
cp libgsm.a /usr/local/lib
# bump: kvazaar /KVAZAAR_VERSION=([\d.]+)/ https://github.com/ultravideo/kvazaar.git|^2
# bump: kvazaar after ./hashupdate Dockerfile KVAZAAR $LATEST
# bump: kvazaar link "Release notes" https://github.com/ultravideo/kvazaar/releases/tag/v$LATEST
ARG KVAZAAR_VERSION=2.3.1
ARG KVAZAAR_URL="https://github.com/ultravideo/kvazaar/archive/v$KVAZAAR_VERSION.tar.gz"
ARG KVAZAAR_SHA256=c5a1699d0bd50bc6bdba485b3438a5681a43d7b2c4fd6311a144740bfa59c9cc
RUN \
wget $WGET_OPTS -O kvazaar.tar.gz "$KVAZAAR_URL" && \
echo "$KVAZAAR_SHA256 kvazaar.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS kvazaar.tar.gz && cd kvazaar-* && \
./autogen.sh && \
./configure \
--disable-shared \
--enable-static && \
make -j$(nproc) install
# bump: libmodplug /LIBMODPLUG_VERSION=([\d.]+)/ fetch:https://sourceforge.net/projects/modplug-xmms/files/|/libmodplug-([\d.]+).tar.gz/
# bump: libmodplug after ./hashupdate Dockerfile LIBMODPLUG $LATEST
# bump: libmodplug link "NEWS" https://sourceforge.net/p/modplug-xmms/git/ci/master/tree/libmodplug/NEWS
ARG LIBMODPLUG_VERSION=0.8.9.0
ARG LIBMODPLUG_URL="https://downloads.sourceforge.net/modplug-xmms/libmodplug-$LIBMODPLUG_VERSION.tar.gz"
ARG LIBMODPLUG_SHA256=457ca5a6c179656d66c01505c0d95fafaead4329b9dbaa0f997d00a3508ad9de
RUN \
wget $WGET_OPTS -O libmodplug.tar.gz "$LIBMODPLUG_URL" && \
echo "$LIBMODPLUG_SHA256 libmodplug.tar.gz" | sha256sum -c && \
tar $TAR_OPTS libmodplug.tar.gz && cd libmodplug-* && \
./configure \
--disable-shared \
--enable-static && \
make -j$(nproc) install
# bump: mp3lame /MP3LAME_VERSION=([\d.]+)/ svn:http://svn.code.sf.net/p/lame/svn|/^RELEASE__(.*)$/|/_/./|*
# bump: mp3lame after ./hashupdate Dockerfile MP3LAME $LATEST
# bump: mp3lame link "ChangeLog" http://svn.code.sf.net/p/lame/svn/trunk/lame/ChangeLog
ARG MP3LAME_VERSION=3.100
ARG MP3LAME_URL="https://sourceforge.net/projects/lame/files/lame/$MP3LAME_VERSION/lame-$MP3LAME_VERSION.tar.gz/download"
ARG MP3LAME_SHA256=ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e
RUN \
wget $WGET_OPTS -O lame.tar.gz "$MP3LAME_URL" && \
echo "$MP3LAME_SHA256 lame.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS lame.tar.gz && cd lame-* && \
./configure \
--disable-shared \
--enable-static \
--enable-nasm \
--disable-gtktest \
--disable-cpml \
--disable-frontend && \
make -j$(nproc) install
# bump: lcms2 /LCMS2_VERSION=([\d.]+)/ https://github.com/mm2/Little-CMS.git|^2
# bump: lcms2 after ./hashupdate Dockerfile LCMS2 $LATEST
# bump: lcms2 link "Release" https://github.com/mm2/Little-CMS/releases/tag/lcms$LATEST
ARG LCMS2_VERSION=2.16
ARG LCMS2_URL="https://github.com/mm2/Little-CMS/releases/download/lcms$LCMS2_VERSION/lcms2-$LCMS2_VERSION.tar.gz"
ARG LCMS2_SHA256=d873d34ad8b9b4cea010631f1a6228d2087475e4dc5e763eb81acc23d9d45a51
RUN \
wget $WGET_OPTS -O lcms2.tar.gz "$LCMS2_URL" && \
echo "$LCMS2_SHA256 lcms2.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS lcms2.tar.gz && cd lcms2-* && \
./autogen.sh && \
./configure \
--enable-static \
--disable-shared && \
make -j$(nproc) install
# bump: libmysofa /LIBMYSOFA_VERSION=([\d.]+)/ https://github.com/hoene/libmysofa.git|^1
# bump: libmysofa after ./hashupdate Dockerfile LIBMYSOFA $LATEST
# bump: libmysofa link "Release" https://github.com/hoene/libmysofa/releases/tag/v$LATEST
# bump: libmysofa link "Source diff $CURRENT..$LATEST" https://github.com/hoene/libmysofa/compare/v$CURRENT..v$LATEST
ARG LIBMYSOFA_VERSION=1.3.3
ARG LIBMYSOFA_URL="https://github.com/hoene/libmysofa/archive/refs/tags/v$LIBMYSOFA_VERSION.tar.gz"
ARG LIBMYSOFA_SHA256=a15f7236a2b492f8d8da69f6c71b5bde1ef1bac0ef428b94dfca1cabcb24c84f
RUN \
wget $WGET_OPTS -O libmysofa.tar.gz "$LIBMYSOFA_URL" && \
echo "$LIBMYSOFA_SHA256 libmysofa.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS libmysofa.tar.gz && cd libmysofa-*/build && \
cmake \
-G"Unix Makefiles" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTS=OFF \
.. && \
make -j$(nproc) install
# bump: opencoreamr /OPENCOREAMR_VERSION=([\d.]+)/ fetch:https://sourceforge.net/projects/opencore-amr/files/opencore-amr/|/opencore-amr-([\d.]+).tar.gz/
# bump: opencoreamr after ./hashupdate Dockerfile OPENCOREAMR $LATEST
# bump: opencoreamr link "ChangeLog" https://sourceforge.net/p/opencore-amr/code/ci/master/tree/ChangeLog
ARG OPENCOREAMR_VERSION=0.1.6
ARG OPENCOREAMR_URL="https://sourceforge.net/projects/opencore-amr/files/opencore-amr/opencore-amr-$OPENCOREAMR_VERSION.tar.gz"
ARG OPENCOREAMR_SHA256=483eb4061088e2b34b358e47540b5d495a96cd468e361050fae615b1809dc4a1
RUN \
wget $WGET_OPTS -O opencoreamr.tar.gz "$OPENCOREAMR_URL" && \
echo "$OPENCOREAMR_SHA256 opencoreamr.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS opencoreamr.tar.gz && cd opencore-amr-* && \
./configure \
--enable-static \
--disable-shared && \
make -j$(nproc) install
# bump: openjpeg /OPENJPEG_VERSION=([\d.]+)/ https://github.com/uclouvain/openjpeg.git|*
# bump: openjpeg after ./hashupdate Dockerfile OPENJPEG $LATEST
# bump: openjpeg link "CHANGELOG" https://github.com/uclouvain/openjpeg/blob/master/CHANGELOG.md
ARG OPENJPEG_VERSION=2.5.2
ARG OPENJPEG_URL="https://github.com/uclouvain/openjpeg/archive/v$OPENJPEG_VERSION.tar.gz"
ARG OPENJPEG_SHA256=90e3896fed910c376aaf79cdd98bdfdaf98c6472efd8e1debf0a854938cbda6a
RUN \
wget $WGET_OPTS -O openjpeg.tar.gz "$OPENJPEG_URL" && \
echo "$OPENJPEG_SHA256 openjpeg.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS openjpeg.tar.gz && cd openjpeg-* && \
mkdir build && cd build && \
cmake \
-G"Unix Makefiles" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_PKGCONFIG_FILES=ON \
-DBUILD_CODEC=OFF \
-DWITH_ASTYLE=OFF \
-DBUILD_TESTING=OFF \
.. && \
make -j$(nproc) install
# bump: opus /OPUS_VERSION=([\d.]+)/ https://github.com/xiph/opus.git|^1
# bump: opus after ./hashupdate Dockerfile OPUS $LATEST
# bump: opus link "Release notes" https://github.com/xiph/opus/releases/tag/v$LATEST
# bump: opus link "Source diff $CURRENT..$LATEST" https://github.com/xiph/opus/compare/v$CURRENT..v$LATEST
ARG OPUS_VERSION=1.5.2
ARG OPUS_URL="https://downloads.xiph.org/releases/opus/opus-$OPUS_VERSION.tar.gz"
ARG OPUS_SHA256=65c1d2f78b9f2fb20082c38cbe47c951ad5839345876e46941612ee87f9a7ce1
RUN \
wget $WGET_OPTS -O opus.tar.gz "$OPUS_URL" && \
echo "$OPUS_SHA256 opus.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS opus.tar.gz && cd opus-* && \
./configure \
--disable-shared \
--enable-static \
--disable-extra-programs \
--disable-doc && \
make -j$(nproc) install
# bump: librabbitmq /LIBRABBITMQ_VERSION=([\d.]+)/ https://github.com/alanxz/rabbitmq-c.git|*
# bump: librabbitmq after ./hashupdate Dockerfile LIBRABBITMQ $LATEST
# bump: librabbitmq link "ChangeLog" https://github.com/alanxz/rabbitmq-c/blob/master/ChangeLog.md
ARG LIBRABBITMQ_VERSION=0.15.0
ARG LIBRABBITMQ_URL="https://github.com/alanxz/rabbitmq-c/archive/refs/tags/v$LIBRABBITMQ_VERSION.tar.gz"
ARG LIBRABBITMQ_SHA256=7b652df52c0de4d19ca36c798ed81378cba7a03a0f0c5d498881ae2d79b241c2
RUN \
wget $WGET_OPTS -O rabbitmq-c.tar.gz "$LIBRABBITMQ_URL" && \
echo "$LIBRABBITMQ_SHA256 rabbitmq-c.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS rabbitmq-c.tar.gz && cd rabbitmq-c-* && \
mkdir build && cd build && \
cmake \
-G"Unix Makefiles" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DBUILD_EXAMPLES=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_STATIC_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTS=OFF \
-DBUILD_TOOLS=OFF \
-DBUILD_TOOLS_DOCS=OFF \
-DRUN_SYSTEM_TESTS=OFF \
.. && \
make -j$(nproc) install
# bump: rav1e /RAV1E_VERSION=([\d.]+)/ https://github.com/xiph/rav1e.git|/\d+\./|*
# bump: rav1e after ./hashupdate Dockerfile RAV1E $LATEST
# bump: rav1e link "Release notes" https://github.com/xiph/rav1e/releases/tag/v$LATEST
ARG RAV1E_VERSION=0.7.1
ARG RAV1E_URL="https://github.com/xiph/rav1e/archive/v$RAV1E_VERSION.tar.gz"
ARG RAV1E_SHA256=da7ae0df2b608e539de5d443c096e109442cdfa6c5e9b4014361211cf61d030c
RUN \
wget $WGET_OPTS -O rav1e.tar.gz "$RAV1E_URL" && \
echo "$RAV1E_SHA256 rav1e.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS rav1e.tar.gz && cd rav1e-* && \
# workaround weird cargo problem when on aws (?) weirdly alpine edge seems to work
CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse" \
RUSTFLAGS="-C target-feature=+crt-static" \
cargo cinstall --release
# bump: librtmp /LIBRTMP_COMMIT=([[:xdigit:]]+)/ gitrefs:https://git.ffmpeg.org/rtmpdump.git|re:#^refs/heads/master$#|@commit
# bump: librtmp after ./hashupdate Dockerfile LIBRTMP $LATEST
# bump: librtmp link "Commit diff $CURRENT..$LATEST" https://git.ffmpeg.org/gitweb/rtmpdump.git/commitdiff/$LATEST?ds=sidebyside
ARG LIBRTMP_URL="https://git.ffmpeg.org/rtmpdump.git"
ARG LIBRTMP_COMMIT=6f6bb1353fc84f4cc37138baa99f586750028a01
RUN \
git clone "$LIBRTMP_URL" && cd rtmpdump && \
git checkout --recurse-submodules $LIBRTMP_COMMIT && \
make SYS=posix SHARED=off -j$(nproc) install
# bump: rubberband /RUBBERBAND_VERSION=([\d.]+)/ https://github.com/breakfastquay/rubberband.git|^2
# bump: rubberband after ./hashupdate Dockerfile RUBBERBAND $LATEST
# bump: rubberband link "CHANGELOG" https://github.com/breakfastquay/rubberband/blob/default/CHANGELOG
# bump: rubberband link "Source diff $CURRENT..$LATEST" https://github.com/breakfastquay/rubberband/compare/$CURRENT..$LATEST
ARG RUBBERBAND_VERSION=2.0.2
ARG RUBBERBAND_URL="https://breakfastquay.com/files/releases/rubberband-$RUBBERBAND_VERSION.tar.bz2"
ARG RUBBERBAND_SHA256=b9eac027e797789ae99611c9eaeaf1c3a44cc804f9c8a0441a0d1d26f3d6bdf9
RUN \
wget $WGET_OPTS -O rubberband.tar.bz2 "$RUBBERBAND_URL" && \
echo "$RUBBERBAND_SHA256 rubberband.tar.bz2" | sha256sum -c - && \
tar $TAR_OPTS rubberband.tar.bz2 && cd rubberband-* && \
meson setup build \
-Ddefault_library=static \
-Dfft=fftw \
-Dresampler=libsamplerate && \
ninja -j$(nproc) -vC build install && \
echo "Requires.private: fftw3 samplerate" >> /usr/local/lib/pkgconfig/rubberband.pc
# bump: libshine /LIBSHINE_VERSION=([\d.]+)/ https://github.com/toots/shine.git|*
# bump: libshine after ./hashupdate Dockerfile LIBSHINE $LATEST
# bump: libshine link "CHANGELOG" https://github.com/toots/shine/blob/master/ChangeLog
# bump: libshine link "Source diff $CURRENT..$LATEST" https://github.com/toots/shine/compare/$CURRENT..$LATEST
ARG LIBSHINE_VERSION=3.1.1
ARG LIBSHINE_URL="https://github.com/toots/shine/releases/download/$LIBSHINE_VERSION/shine-$LIBSHINE_VERSION.tar.gz"
ARG LIBSHINE_SHA256=58e61e70128cf73f88635db495bfc17f0dde3ce9c9ac070d505a0cd75b93d384
RUN \
wget $WGET_OPTS -O libshine.tar.gz "$LIBSHINE_URL" && \
echo "$LIBSHINE_SHA256 libshine.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS libshine.tar.gz && cd shine* && \
./configure \
--with-pic \
--enable-static \
--disable-shared \
--disable-fast-install && \
make -j$(nproc) install
# bump: speex /SPEEX_VERSION=([\d.]+)/ https://github.com/xiph/speex.git|*
# bump: speex after ./hashupdate Dockerfile SPEEX $LATEST
# bump: speex link "ChangeLog" https://github.com/xiph/speex//blob/master/ChangeLog
# bump: speex link "Source diff $CURRENT..$LATEST" https://github.com/xiph/speex/compare/$CURRENT..$LATEST
ARG SPEEX_VERSION=1.2.1
ARG SPEEX_URL="https://github.com/xiph/speex/archive/Speex-$SPEEX_VERSION.tar.gz"
ARG SPEEX_SHA256=beaf2642e81a822eaade4d9ebf92e1678f301abfc74a29159c4e721ee70fdce0
RUN \
wget $WGET_OPTS -O speex.tar.gz "$SPEEX_URL" && \
echo "$SPEEX_SHA256 speex.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS speex.tar.gz && cd speex-Speex-* && \
./autogen.sh && \
./configure \
--disable-shared \
--enable-static && \
make -j$(nproc) install
# bump: srt /SRT_VERSION=([\d.]+)/ https://github.com/Haivision/srt.git|^1
# bump: srt after ./hashupdate Dockerfile SRT $LATEST
# bump: srt link "Release notes" https://github.com/Haivision/srt/releases/tag/v$LATEST
ARG SRT_VERSION=1.5.4
ARG SRT_URL="https://github.com/Haivision/srt/archive/v$SRT_VERSION.tar.gz"
ARG SRT_SHA256=d0a8b600fe1b4eaaf6277530e3cfc8f15b8ce4035f16af4a5eb5d4b123640cdd
RUN \
wget $WGET_OPTS -O libsrt.tar.gz "$SRT_URL" && \
echo "$SRT_SHA256 libsrt.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS libsrt.tar.gz && cd srt-* && \
mkdir build && cd build && \
cmake \
-G"Unix Makefiles" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_SHARED=OFF \
-DENABLE_APPS=OFF \
-DENABLE_CXX11=ON \
-DUSE_STATIC_LIBSTDCXX=ON \
-DOPENSSL_USE_STATIC_LIBS=ON \
-DENABLE_LOGGING=OFF \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_INCLUDEDIR=include \
-DCMAKE_INSTALL_BINDIR=bin \
.. && \
make -j$(nproc) && make install
# bump: libssh /LIBSSH_VERSION=([\d.]+)/ https://gitlab.com/libssh/libssh-mirror.git|*
# bump: libssh after ./hashupdate Dockerfile LIBSSH $LATEST
# bump: libssh link "Source diff $CURRENT..$LATEST" https://gitlab.com/libssh/libssh-mirror/-/compare/libssh-$CURRENT...libssh-$LATEST
# bump: libssh link "Release notes" https://gitlab.com/libssh/libssh-mirror/-/tags/libssh-$LATEST
ARG LIBSSH_VERSION=0.11.1
ARG LIBSSH_URL="https://gitlab.com/libssh/libssh-mirror/-/archive/libssh-$LIBSSH_VERSION/libssh-mirror-libssh-$LIBSSH_VERSION.tar.gz"
ARG LIBSSH_SHA256=b43ef9c91b6c3db64e7ba3db101eb89dbe645db63489c19d4f88cf6f84911ec6
# LIBSSH_STATIC=1 is REQUIRED to link statically against libssh.a so add to pkg-config file
RUN \
wget $WGET_OPTS -O libssh.tar.gz "$LIBSSH_URL" && \
echo "$LIBSSH_SHA256 libssh.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS libssh.tar.gz && cd libssh* && \
mkdir build && cd build && \
echo -e 'Requires.private: libssl libcrypto zlib \nLibs.private: -DLIBSSH_STATIC=1 -lssh\nCflags.private: -DLIBSSH_STATIC=1 -I${CMAKE_INSTALL_FULL_INCLUDEDIR}' >> ../libssh.pc.cmake && \
cmake \
-G"Unix Makefiles" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_SYSTEM_ARCH=$(arch) \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DPICKY_DEVELOPER=ON \
-DBUILD_STATIC_LIB=ON \
-DBUILD_SHARED_LIBS=OFF \
-DWITH_GSSAPI=OFF \
-DWITH_BLOWFISH_CIPHER=ON \
-DWITH_SFTP=ON \
-DWITH_SERVER=OFF \
-DWITH_ZLIB=ON \
-DWITH_PCAP=ON \
-DWITH_DEBUG_CRYPTO=OFF \
-DWITH_DEBUG_PACKET=OFF \
-DWITH_DEBUG_CALLTRACE=OFF \
-DUNIT_TESTING=OFF \
-DCLIENT_TESTING=OFF \
-DSERVER_TESTING=OFF \
-DWITH_EXAMPLES=OFF \
-DWITH_INTERNAL_DOC=OFF \
.. && \
# make -j seems to be shaky, libssh.a ends up truncated (used before fully created?)
make install
# bump: svtav1 /SVTAV1_VERSION=([\d.]+)/ https://gitlab.com/AOMediaCodec/SVT-AV1.git|*
# bump: svtav1 after ./hashupdate Dockerfile SVTAV1 $LATEST
# bump: svtav1 link "Release notes" https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/v$LATEST
ARG SVTAV1_VERSION=2.3.0
ARG SVTAV1_URL="https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v$SVTAV1_VERSION/SVT-AV1-v$SVTAV1_VERSION.tar.bz2"
ARG SVTAV1_SHA256=f65358499f572a47d6b076dda73681a8162b02c0b619a551bc2d62ead8ee719a
RUN \
wget $WGET_OPTS -O svtav1.tar.bz2 "$SVTAV1_URL" && \
echo "$SVTAV1_SHA256 svtav1.tar.bz2" | sha256sum -c - && \
tar $TAR_OPTS svtav1.tar.bz2 && cd SVT-AV1-*/Build && \
cmake \
-G"Unix Makefiles" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=OFF \
-DENABLE_AVX512=ON \
-DCMAKE_BUILD_TYPE=Release \
.. && \
make -j$(nproc) install
# has to be before theora
# bump: ogg /OGG_VERSION=([\d.]+)/ https://github.com/xiph/ogg.git|*
# bump: ogg after ./hashupdate Dockerfile OGG $LATEST
# bump: ogg link "CHANGES" https://github.com/xiph/ogg/blob/master/CHANGES
# bump: ogg link "Source diff $CURRENT..$LATEST" https://github.com/xiph/ogg/compare/v$CURRENT..v$LATEST
ARG OGG_VERSION=1.3.5
ARG OGG_URL="https://downloads.xiph.org/releases/ogg/libogg-$OGG_VERSION.tar.gz"
ARG OGG_SHA256=0eb4b4b9420a0f51db142ba3f9c64b333f826532dc0f48c6410ae51f4799b664
RUN \
wget $WGET_OPTS -O libogg.tar.gz "$OGG_URL" && \
echo "$OGG_SHA256 libogg.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS libogg.tar.gz && cd libogg-* && \
./configure \
--disable-shared \
--enable-static && \
make -j$(nproc) install
# bump: theora /THEORA_VERSION=([\d.]+)/ https://github.com/xiph/theora.git|*
# bump: theora after ./hashupdate Dockerfile THEORA $LATEST
# bump: theora link "Release notes" https://github.com/xiph/theora/releases/tag/v$LATEST
# bump: theora link "Source diff $CURRENT..$LATEST" https://github.com/xiph/theora/compare/v$CURRENT..v$LATEST
ARG THEORA_VERSION=1.1.1
ARG THEORA_URL="https://downloads.xiph.org/releases/theora/libtheora-$THEORA_VERSION.tar.bz2"
ARG THEORA_SHA256=b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc
RUN \
wget $WGET_OPTS -O libtheora.tar.bz2 "$THEORA_URL" && \
echo "$THEORA_SHA256 libtheora.tar.bz2" | sha256sum -c - && \
tar $TAR_OPTS libtheora.tar.bz2 && cd libtheora-* && \
# --build=$(arch)-unknown-linux-gnu helps with guessing the correct build. For some reason,
# build script can't guess the build type in arm64 (hardware and emulated) environment.
./configure \
--build=$(arch)-unknown-linux-gnu \
--disable-examples \
--disable-oggtest \
--disable-shared \
--enable-static && \
make -j$(nproc) install
# bump: twolame /TWOLAME_VERSION=([\d.]+)/ https://github.com/njh/twolame.git|*
# bump: twolame after ./hashupdate Dockerfile TWOLAME $LATEST
# bump: twolame link "Source diff $CURRENT..$LATEST" https://github.com/njh/twolame/compare/v$CURRENT..v$LATEST
ARG TWOLAME_VERSION=0.4.0
ARG TWOLAME_URL="https://github.com/njh/twolame/releases/download/$TWOLAME_VERSION/twolame-$TWOLAME_VERSION.tar.gz"
ARG TWOLAME_SHA256=cc35424f6019a88c6f52570b63e1baf50f62963a3eac52a03a800bb070d7c87d
RUN \
wget $WGET_OPTS -O twolame.tar.gz "$TWOLAME_URL" && \
echo "$TWOLAME_SHA256 twolame.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS twolame.tar.gz && cd twolame-* && \
./configure \
--disable-shared \
--enable-static \
--disable-sndfile \
--with-pic && \
make -j$(nproc) install
# bump: uavs3d /UAVS3D_COMMIT=([[:xdigit:]]+)/ gitrefs:https://github.com/uavs3/uavs3d.git|re:#^refs/heads/master$#|@commit
# bump: uavs3d after ./hashupdate Dockerfile UAVS3D $LATEST
# bump: uavs3d link "Source diff $CURRENT..$LATEST" https://github.com/uavs3/uavs3d/compare/$CURRENT..$LATEST
ARG UAVS3D_URL="https://github.com/uavs3/uavs3d.git"
ARG UAVS3D_COMMIT=1fd04917cff50fac72ae23e45f82ca6fd9130bd8
# Removes BIT_DEPTH 10 to be able to build on other platforms. 10 was overkill anyways.
RUN \
git clone "$UAVS3D_URL" && cd uavs3d && \
git checkout --recurse-submodules $UAVS3D_COMMIT && \
mkdir build/linux && cd build/linux && \
cmake \
-G"Unix Makefiles" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
../.. && \
make -j$(nproc) install
# bump: vid.stab /VIDSTAB_VERSION=([\d.]+)/ https://github.com/georgmartius/vid.stab.git|*
# bump: vid.stab after ./hashupdate Dockerfile VIDSTAB $LATEST
# bump: vid.stab link "Changelog" https://github.com/georgmartius/vid.stab/blob/master/Changelog
ARG VIDSTAB_VERSION=1.1.1
ARG VIDSTAB_URL="https://github.com/georgmartius/vid.stab/archive/v$VIDSTAB_VERSION.tar.gz"
ARG VIDSTAB_SHA256=9001b6df73933555e56deac19a0f225aae152abbc0e97dc70034814a1943f3d4
RUN \
wget $WGET_OPTS -O vid.stab.tar.gz "$VIDSTAB_URL" && \
echo "$VIDSTAB_SHA256 vid.stab.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS vid.stab.tar.gz && cd vid.stab-* && \
mkdir build && cd build && \
# This line workarounds the issue that happens when the image builds in emulated (buildx) arm64 environment.
# Since in emulated container the /proc is mounted from the host, the cmake not able to detect CPU features correctly.
sed -i 's/include (FindSSE)/if(CMAKE_SYSTEM_ARCH MATCHES "amd64")\ninclude (FindSSE)\nendif()/' ../CMakeLists.txt && \
cmake \
-G"Unix Makefiles" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_SYSTEM_ARCH=$(arch) \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DUSE_OMP=ON \
.. && \
make -j$(nproc) install
RUN echo "Libs.private: -ldl" >> /usr/local/lib/pkgconfig/vidstab.pc
# bump: vorbis /VORBIS_VERSION=([\d.]+)/ https://github.com/xiph/vorbis.git|*
# bump: vorbis after ./hashupdate Dockerfile VORBIS $LATEST
# bump: vorbis link "CHANGES" https://github.com/xiph/vorbis/blob/master/CHANGES
# bump: vorbis link "Source diff $CURRENT..$LATEST" https://github.com/xiph/vorbis/compare/v$CURRENT..v$LATEST
ARG VORBIS_VERSION=1.3.7
ARG VORBIS_URL="https://downloads.xiph.org/releases/vorbis/libvorbis-$VORBIS_VERSION.tar.gz"
ARG VORBIS_SHA256=0e982409a9c3fc82ee06e08205b1355e5c6aa4c36bca58146ef399621b0ce5ab
RUN \
wget $WGET_OPTS -O libvorbis.tar.gz "$VORBIS_URL" && \
echo "$VORBIS_SHA256 libvorbis.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS libvorbis.tar.gz && cd libvorbis-* && \
./configure \
--disable-shared \
--enable-static \
--disable-oggtest && \
make -j$(nproc) install
# bump: libvpx /VPX_VERSION=([\d.]+)/ https://github.com/webmproject/libvpx.git|*
# bump: libvpx after ./hashupdate Dockerfile VPX $LATEST
# bump: libvpx link "CHANGELOG" https://github.com/webmproject/libvpx/blob/master/CHANGELOG
# bump: libvpx link "Source diff $CURRENT..$LATEST" https://github.com/webmproject/libvpx/compare/v$CURRENT..v$LATEST
ARG VPX_VERSION=1.15.0
ARG VPX_URL="https://github.com/webmproject/libvpx/archive/v$VPX_VERSION.tar.gz"
ARG VPX_SHA256=e935eded7d81631a538bfae703fd1e293aad1c7fd3407ba00440c95105d2011e
RUN \
wget $WGET_OPTS -O libvpx.tar.gz "$VPX_URL" && \
echo "$VPX_SHA256 libvpx.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS libvpx.tar.gz && cd libvpx-* && \
./configure \
--enable-static \
--enable-vp9-highbitdepth \
--disable-shared \
--disable-unit-tests \
--disable-examples && \
make -j$(nproc) install
# bump: libwebp /LIBWEBP_VERSION=([\d.]+)/ https://github.com/webmproject/libwebp.git|^1
# bump: libwebp after ./hashupdate Dockerfile LIBWEBP $LATEST
# bump: libwebp link "Release notes" https://github.com/webmproject/libwebp/releases/tag/v$LATEST
# bump: libwebp link "Source diff $CURRENT..$LATEST" https://github.com/webmproject/libwebp/compare/v$CURRENT..v$LATEST
ARG LIBWEBP_VERSION=1.4.0
ARG LIBWEBP_URL="https://github.com/webmproject/libwebp/archive/v$LIBWEBP_VERSION.tar.gz"
ARG LIBWEBP_SHA256=12af50c45530f0a292d39a88d952637e43fb2d4ab1883c44ae729840f7273381
RUN \
wget $WGET_OPTS -O libwebp.tar.gz "$LIBWEBP_URL" && \
echo "$LIBWEBP_SHA256 libwebp.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS libwebp.tar.gz && cd libwebp-* && \
./autogen.sh && \
./configure \
--disable-shared \
--enable-static \
--with-pic \
--enable-libwebpmux \
--disable-libwebpextras \
--disable-libwebpdemux \
--disable-sdl \
--disable-gl \
--disable-png \
--disable-jpeg \
--disable-tiff \
--disable-gif && \
make -j$(nproc) install
# x264 only have a stable branch no tags and we checkout commit so no hash is needed
# bump: x264 /X264_VERSION=([[:xdigit:]]+)/ gitrefs:https://code.videolan.org/videolan/x264.git|re:#^refs/heads/stable$#|@commit
# bump: x264 after ./hashupdate Dockerfile X264 $LATEST
# bump: x264 link "Source diff $CURRENT..$LATEST" https://code.videolan.org/videolan/x264/-/compare/$CURRENT...$LATEST
ARG X264_URL="https://code.videolan.org/videolan/x264.git"
ARG X264_VERSION=31e19f92f00c7003fa115047ce50978bc98c3a0d
RUN \
git clone "$X264_URL" && cd x264 && \
git checkout --recurse-submodules $X264_VERSION && \
./configure \
--enable-pic \
--enable-static \
--disable-cli \
--disable-lavf \
--disable-swscale && \
make -j$(nproc) install
# bump: x265 /X265_VERSION=([\d.]+)/ https://bitbucket.org/multicoreware/x265_git.git|*
# bump: x265 after ./hashupdate Dockerfile X265 $LATEST
# bump: x265 link "Source diff $CURRENT..$LATEST" https://bitbucket.org/multicoreware/x265_git/branches/compare/$LATEST..$CURRENT#diff
ARG X265_VERSION=4.0
ARG X265_SHA256=75b4d05629e365913de3100b38a459b04e2a217a8f30efaa91b572d8e6d71282
ARG X265_URL="https://bitbucket.org/multicoreware/x265_git/downloads/x265_$X265_VERSION.tar.gz"
# CMAKEFLAGS issue
# https://bitbucket.org/multicoreware/x265_git/issues/620/support-passing-cmake-flags-to-multilibsh
RUN \
wget $WGET_OPTS -O x265_git.tar.bz2 "$X265_URL" && \
echo "$X265_SHA256 x265_git.tar.bz2" | sha256sum -c - && \
tar $TAR_OPTS x265_git.tar.bz2 && cd x265_*/build/linux && \
sed -i '/^cmake / s/$/ -G "Unix Makefiles" ${CMAKEFLAGS}/' ./multilib.sh && \
sed -i 's/ -DENABLE_SHARED=OFF//g' ./multilib.sh && \
MAKEFLAGS="-j$(nproc)" \
CMAKEFLAGS="-DENABLE_SHARED=OFF -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_AGGRESSIVE_CHECKS=ON -DENABLE_NASM=ON -DCMAKE_BUILD_TYPE=Release" \
./multilib.sh && \
make -C 8bit -j$(nproc) install
# bump: xavs2 /XAVS2_VERSION=([\d.]+)/ https://github.com/pkuvcl/xavs2.git|^1
# bump: xavs2 after ./hashupdate Dockerfile XAVS2 $LATEST
# bump: xavs2 link "Release" https://github.com/pkuvcl/xavs2/releases/tag/$LATEST
# bump: xavs2 link "Source diff $CURRENT..$LATEST" https://github.com/pkuvcl/xavs2/compare/v$CURRENT..v$LATEST
ARG XAVS2_VERSION=1.4
ARG XAVS2_URL="https://github.com/pkuvcl/xavs2/archive/refs/tags/$XAVS2_VERSION.tar.gz"
ARG XAVS2_SHA256=1e6d731cd64cb2a8940a0a3fd24f9c2ac3bb39357d802432a47bc20bad52c6ce
# TODO: seems to be issues with asm on musl
RUN \
wget $WGET_OPTS -O xavs2.tar.gz "$XAVS2_URL" && \
echo "$XAVS2_SHA256 xavs2.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS xavs2.tar.gz && cd xavs2-*/build/linux && \
./configure \
--disable-asm \
--enable-pic \
--disable-cli && \
make -j$(nproc) install
# http://websvn.xvid.org/cvs/viewvc.cgi/trunk/xvidcore/build/generic/configure.in?revision=2146&view=markup
# bump: xvid /XVID_VERSION=([\d.]+)/ svn:http://anonymous:@svn.xvid.org|/^release-(.*)$/|/_/./|^1
# bump: xvid after ./hashupdate Dockerfile XVID $LATEST
# add extra CFLAGS that are not enabled by -O3
ARG XVID_VERSION=1.3.7
ARG XVID_URL="https://downloads.xvid.com/downloads/xvidcore-$XVID_VERSION.tar.gz"
ARG XVID_SHA256=abbdcbd39555691dd1c9b4d08f0a031376a3b211652c0d8b3b8aa9be1303ce2d
RUN \
wget $WGET_OPTS -O libxvid.tar.gz "$XVID_URL" && \
echo "$XVID_SHA256 libxvid.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS libxvid.tar.gz && cd xvidcore/build/generic && \
CFLAGS="$CFLAGS -fstrength-reduce -ffast-math" ./configure && \
make -j$(nproc) && make install
# bump: xeve /XEVE_VERSION=([\d.]+)/ https://github.com/mpeg5/xeve.git|*
# bump: xeve after ./hashupdate Dockerfile XEVE $LATEST
# bump: xeve link "CHANGELOG" https://github.com/mpeg5/xeve/releases/tag/v$LATEST
# TODO: better -DARM? possible to build on non arm and intel?
# TODO: report upstream about lib/libxeve.a?
ARG XEVE_VERSION=0.5.1
ARG XEVE_URL="https://github.com/mpeg5/xeve/archive/refs/tags/v$XEVE_VERSION.tar.gz"
ARG XEVE_SHA256=238c95ddd1a63105913d9354045eb329ad9002903a407b5cf1ab16bad324c245
RUN \
wget $WGET_OPTS -O xeve.tar.gz "$XEVE_URL" && \
echo "$XEVE_SHA256 xeve.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS xeve.tar.gz && \
cd xeve-* && \
echo v$XEVE_VERSION > version.txt && \
sed -i 's/mc_filter_bilin/xevem_mc_filter_bilin/' src_main/sse/xevem_mc_sse.c && \
mkdir build && cd build && \
cmake \
-G"Unix Makefiles" \
-DARM="$(if [ $(uname -m) == aarch64 ]; then echo TRUE; else echo FALSE; fi)" \
-DCMAKE_BUILD_TYPE=Release \
.. && \
make -j$(nproc) install && \
ln -s /usr/local/lib/xeve/libxeve.a /usr/local/lib/libxeve.a
# bump: xevd /XEVD_VERSION=([\d.]+)/ https://github.com/mpeg5/xevd.git|*
# bump: xevd after ./hashupdate Dockerfile XEVD $LATEST
# bump: xevd link "CHANGELOG" https://github.com/mpeg5/xevd/releases/tag/v$LATEST
# TODO: better -DARM? possible to build on non arm and intel?
# TODO: report upstream about lib/libxevd.a?
ARG XEVD_VERSION=0.5.0
ARG XEVD_URL="https://github.com/mpeg5/xevd/archive/refs/tags/v$XEVD_VERSION.tar.gz"
ARG XEVD_SHA256=8d55c7ec1a9ad4e70fe91fbe129a1d4dd288bce766f466cba07a29452b3cecd8
RUN \
wget $WGET_OPTS -O xevd.tar.gz "$XEVD_URL" && \
echo "$XEVD_SHA256 xevd.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS xevd.tar.gz && cd xevd-* && \
echo v$XEVD_VERSION > version.txt && \
sed -i 's/mc_filter_bilin/xevdm_mc_filter_bilin/' src_main/sse/xevdm_mc_sse.c && \
mkdir build && cd build && \
cmake \
-G"Unix Makefiles" \
-DARM="$(if [ $(uname -m) == aarch64 ]; then echo TRUE; else echo FALSE; fi)" \
-DCMAKE_BUILD_TYPE=Release \
.. && \
make -j$(nproc) install && \
ln -s /usr/local/lib/xevd/libxevd.a /usr/local/lib/libxevd.a
# bump: zimg /ZIMG_VERSION=([\d.]+)/ https://github.com/sekrit-twc/zimg.git|*
# bump: zimg after ./hashupdate Dockerfile ZIMG $LATEST
# bump: zimg link "ChangeLog" https://github.com/sekrit-twc/zimg/blob/master/ChangeLog
ARG ZIMG_VERSION=3.0.5
ARG ZIMG_URL="https://github.com/sekrit-twc/zimg/archive/release-$ZIMG_VERSION.tar.gz"
ARG ZIMG_SHA256=a9a0226bf85e0d83c41a8ebe4e3e690e1348682f6a2a7838f1b8cbff1b799bcf
RUN \
wget $WGET_OPTS -O zimg.tar.gz "$ZIMG_URL" && \
echo "$ZIMG_SHA256 zimg.tar.gz" | sha256sum -c - && \
tar $TAR_OPTS zimg.tar.gz && cd zimg-* && \
./autogen.sh && \
./configure \
--disable-shared \
--enable-static && \
make -j$(nproc) install
# bump: libjxl /LIBJXL_VERSION=([\d.]+)/ https://github.com/libjxl/libjxl.git|^0
# bump: libjxl after ./hashupdate Dockerfile LIBJXL $LATEST
# bump: libjxl link "Changelog" https://github.com/libjxl/libjxl/blob/main/CHANGELOG.md
# use bundled highway library as its static build is not available in alpine
ARG LIBJXL_VERSION=0.11.0
ARG LIBJXL_URL="https://github.com/libjxl/libjxl/archive/refs/tags/v${LIBJXL_VERSION}.tar.gz"
ARG LIBJXL_SHA256=7ce4ec8bb37a435a73ac18c4c9ff56c2dc6c98892bf3f53a328e3eca42efb9cf
RUN \
wget $WGET_OPTS -O libjxl.tar.gz "$LIBJXL_URL" && \