@@ -169,7 +169,7 @@ library_exists() {
169
169
}
170
170
171
171
build_done () {
172
- echo " $2 " > " $PACKAGES /$1 .done"
172
+ echo " $2 " > " $PACKAGES /$1 .done"
173
173
}
174
174
175
175
verify_binary_type () {
311
311
312
312
if build " giflib" " 5.2.1" ; then
313
313
download " https://netcologne.dl.sourceforge.net/project/giflib/giflib-5.2.1.tar.gz"
314
- if [[ " $OSTYPE " == " darwin" * ]]; then
315
- download " https://sourceforge.net/p/giflib/bugs/_discuss/thread/4e811ad29b/c323/attachment/Makefile.patch"
316
- execute patch -p0 --forward " ${PACKAGES} /giflib-5.2.1/Makefile" " ${PACKAGES} /Makefile.patch" || true
317
- fi
314
+ if [[ " $OSTYPE " == " darwin" * ]]; then
315
+ download " https://sourceforge.net/p/giflib/bugs/_discuss/thread/4e811ad29b/c323/attachment/Makefile.patch"
316
+ execute patch -p0 --forward " ${PACKAGES} /giflib-5.2.1/Makefile" " ${PACKAGES} /Makefile.patch" || true
317
+ fi
318
318
cd " ${PACKAGES} " /giflib-5.2.1 || exit
319
319
# multicore build disabled for this library
320
320
execute make
@@ -417,16 +417,16 @@ else
417
417
build_done " nettle" " 3.8.1"
418
418
fi
419
419
420
- if [[ ! $ARCH == ' arm64' ]]; then
421
- if build " gnutls" " 3.7.9" ; then
422
- download " https://www.gnupg.org/ftp/gcrypt/gnutls/v3.7/gnutls-3.7.9.tar.xz"
423
- execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static --disable-doc --disable-tools --disable-cxx --disable-tests --disable-gtk-doc-html --disable-libdane --disable-nls --enable-local-libopts --disable-guile --with-included-libtasn1 --with-included-unistring --without-p11-kit CPPFLAGS=" ${CFLAGS} " LDFLAGS=" ${LDFLAGS} "
424
- execute make -j $MJOBS
425
- execute make install
426
- build_done " gnutls" " 3.7.9"
420
+ if [[ ! $ARCH == ' arm64' ]]; then
421
+ if build " gnutls" " 3.7.9" ; then
422
+ download " https://www.gnupg.org/ftp/gcrypt/gnutls/v3.7/gnutls-3.7.9.tar.xz"
423
+ execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static --disable-doc --disable-tools --disable-cxx --disable-tests --disable-gtk-doc-html --disable-libdane --disable-nls --enable-local-libopts --disable-guile --with-included-libtasn1 --with-included-unistring --without-p11-kit CPPFLAGS=" ${CFLAGS} " LDFLAGS=" ${LDFLAGS} "
424
+ execute make -j $MJOBS
425
+ execute make install
426
+ build_done " gnutls" " 3.7.9"
427
+ fi
428
+ # CONFIGURE_OPTIONS+=("--enable-gmp" "--enable-gnutls")
427
429
fi
428
- # CONFIGURE_OPTIONS+=("--enable-gmp" "--enable-gnutls")
429
- fi
430
430
fi
431
431
432
432
if build " cmake" " 3.25.1" ; then
@@ -450,27 +450,27 @@ if command_exists "python3"; then
450
450
if ! command_exists ${r} ; then
451
451
execute pip3 install ${r} --quiet --upgrade --no-cache-dir --disable-pip-version-check
452
452
fi
453
- export PATH=$PATH :~ /Library/Python/3.9/bin
453
+ export PATH=$PATH :~ /Library/Python/3.9/bin
454
454
done
455
455
fi
456
456
if command_exists " meson" ; then
457
457
if build " dav1d" " 1.1.0" ; then
458
458
download " https://code.videolan.org/videolan/dav1d/-/archive/1.1.0/dav1d-1.1.0.tar.gz"
459
459
make_dir build
460
-
460
+
461
461
CFLAGSBACKUP=$CFLAGS
462
462
if $MACOS_M1 ; then
463
463
export CFLAGS=" -arch arm64"
464
464
fi
465
-
465
+
466
466
execute meson build --prefix=" ${WORKSPACE} " --buildtype=release --default-library=static --libdir=" ${WORKSPACE} " /lib
467
467
execute ninja -C build
468
468
execute ninja -C build install
469
-
469
+
470
470
if $MACOS_M1 ; then
471
471
export CFLAGS=$CFLAGSBACKUP
472
472
fi
473
-
473
+
474
474
build_done " dav1d" " 1.1.0"
475
475
fi
476
476
CONFIGURE_OPTIONS+=(" --enable-libdav1d" )
@@ -487,7 +487,7 @@ if ! $MACOS_M1; then
487
487
execute make install
488
488
execute cp SvtAv1Enc.pc " ${WORKSPACE} /lib/pkgconfig/"
489
489
execute cp SvtAv1Dec.pc " ${WORKSPACE} /lib/pkgconfig/"
490
- build_done " svtav1" " 1.4.1" ;
490
+ build_done " svtav1" " 1.4.1"
491
491
fi
492
492
CONFIGURE_OPTIONS+=(" --enable-libsvtav1" )
493
493
fi
@@ -658,59 +658,59 @@ CONFIGURE_OPTIONS+=("--enable-libzimg")
658
658
659
659
if command_exists " python3" ; then
660
660
661
- if command_exists " meson" ; then
661
+ if command_exists " meson" ; then
662
662
663
- if build " lv2" " 1.18.10" ; then
664
- download " https://lv2plug.in/spec/lv2-1.18.10.tar.xz" " lv2-1.18.10.tar.xz"
665
- execute meson build --prefix=" ${WORKSPACE} " --buildtype=release --default-library=static --libdir=" ${WORKSPACE} " /lib
666
- execute ninja -C build
667
- execute ninja -C build install
668
- build_done " lv2" " 1.18.10"
669
- fi
670
- if build " waflib" " b600c92" ; then
671
- download " https://gitlab.com/drobilla/autowaf/-/archive/b600c928b221a001faeab7bd92786d0b25714bc8/autowaf-b600c928b221a001faeab7bd92786d0b25714bc8.tar.gz" " autowaf.tar.gz"
672
- build_done " waflib" " b600c92"
673
- fi
674
- if build " serd" " 0.30.16" ; then
675
- download " https://gitlab.com/drobilla/serd/-/archive/v0.30.16/serd-v0.30.16.tar.gz" " serd-v0.30.16.tar.gz"
676
- execute meson build --prefix=" ${WORKSPACE} " --buildtype=release --default-library=static --libdir=" ${WORKSPACE} " /lib
677
- execute ninja -C build
678
- execute ninja -C build install
679
- build_done " serd" " 0.30.16"
680
- fi
681
- if build " pcre" " 8.45" ; then
682
- download " https://altushost-swe.dl.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.tar.gz" " pcre-8.45.tar.gz"
683
- execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static
684
- execute make -j $MJOBS
685
- execute make install
686
- build_done " pcre" " 8.45"
687
- fi
688
- if build " sord" " 0.16.14" ; then
689
- download " https://gitlab.com/drobilla/sord/-/archive/v0.16.14/sord-v0.16.14.tar.gz" " sord-v0.16.14.tar.gz"
690
- execute meson build --prefix=" ${WORKSPACE} " --buildtype=release --default-library=static --libdir=" ${WORKSPACE} " /lib
691
- execute ninja -C build
692
- execute ninja -C build install
693
- build_done " sord" " 0.16.14"
694
- fi
695
- if build " sratom" " 0.6.14" ; then
696
- download " https://gitlab.com/lv2/sratom/-/archive/v0.6.14/sratom-v0.6.14.tar.gz" " sratom-v0.6.14.tar.gz"
697
- execute meson build --prefix=" ${WORKSPACE} " --buildtype=release --default-library=static --libdir=" ${WORKSPACE} " /lib
698
- execute ninja -C build
699
- execute ninja -C build install
700
- build_done " sratom" " 0.6.14"
701
- fi
702
- if build " lilv" " 0.24.20" ; then
703
- download " https://gitlab.com/lv2/lilv/-/archive/v0.24.20/lilv-v0.24.20.tar.gz" " lilv-v0.24.20.tar.gz"
704
- execute meson build --prefix=" ${WORKSPACE} " --buildtype=release --default-library=static --libdir=" ${WORKSPACE} " /lib
705
- execute ninja -C build
706
- execute ninja -C build install
707
- build_done " lilv" " 0.24.20"
708
- fi
709
- CFLAGS+=" -I$WORKSPACE /include/lilv-0"
663
+ if build " lv2" " 1.18.10" ; then
664
+ download " https://lv2plug.in/spec/lv2-1.18.10.tar.xz" " lv2-1.18.10.tar.xz"
665
+ execute meson build --prefix=" ${WORKSPACE} " --buildtype=release --default-library=static --libdir=" ${WORKSPACE} " /lib
666
+ execute ninja -C build
667
+ execute ninja -C build install
668
+ build_done " lv2" " 1.18.10"
669
+ fi
670
+ if build " waflib" " b600c92" ; then
671
+ download " https://gitlab.com/drobilla/autowaf/-/archive/b600c928b221a001faeab7bd92786d0b25714bc8/autowaf-b600c928b221a001faeab7bd92786d0b25714bc8.tar.gz" " autowaf.tar.gz"
672
+ build_done " waflib" " b600c92"
673
+ fi
674
+ if build " serd" " 0.30.16" ; then
675
+ download " https://gitlab.com/drobilla/serd/-/archive/v0.30.16/serd-v0.30.16.tar.gz" " serd-v0.30.16.tar.gz"
676
+ execute meson build --prefix=" ${WORKSPACE} " --buildtype=release --default-library=static --libdir=" ${WORKSPACE} " /lib
677
+ execute ninja -C build
678
+ execute ninja -C build install
679
+ build_done " serd" " 0.30.16"
680
+ fi
681
+ if build " pcre" " 8.45" ; then
682
+ download " https://altushost-swe.dl.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.tar.gz" " pcre-8.45.tar.gz"
683
+ execute ./configure --prefix=" ${WORKSPACE} " --disable-shared --enable-static
684
+ execute make -j $MJOBS
685
+ execute make install
686
+ build_done " pcre" " 8.45"
687
+ fi
688
+ if build " sord" " 0.16.14" ; then
689
+ download " https://gitlab.com/drobilla/sord/-/archive/v0.16.14/sord-v0.16.14.tar.gz" " sord-v0.16.14.tar.gz"
690
+ execute meson build --prefix=" ${WORKSPACE} " --buildtype=release --default-library=static --libdir=" ${WORKSPACE} " /lib
691
+ execute ninja -C build
692
+ execute ninja -C build install
693
+ build_done " sord" " 0.16.14"
694
+ fi
695
+ if build " sratom" " 0.6.14" ; then
696
+ download " https://gitlab.com/lv2/sratom/-/archive/v0.6.14/sratom-v0.6.14.tar.gz" " sratom-v0.6.14.tar.gz"
697
+ execute meson build --prefix=" ${WORKSPACE} " --buildtype=release --default-library=static --libdir=" ${WORKSPACE} " /lib
698
+ execute ninja -C build
699
+ execute ninja -C build install
700
+ build_done " sratom" " 0.6.14"
701
+ fi
702
+ if build " lilv" " 0.24.20" ; then
703
+ download " https://gitlab.com/lv2/lilv/-/archive/v0.24.20/lilv-v0.24.20.tar.gz" " lilv-v0.24.20.tar.gz"
704
+ execute meson build --prefix=" ${WORKSPACE} " --buildtype=release --default-library=static --libdir=" ${WORKSPACE} " /lib
705
+ execute ninja -C build
706
+ execute ninja -C build install
707
+ build_done " lilv" " 0.24.20"
708
+ fi
709
+ CFLAGS+=" -I$WORKSPACE /include/lilv-0"
710
710
711
- CONFIGURE_OPTIONS+=(" --enable-lv2" )
711
+ CONFIGURE_OPTIONS+=(" --enable-lv2" )
712
712
713
- fi
713
+ fi
714
714
fi
715
715
716
716
if build " opencore" " 0.1.6" ; then
@@ -766,15 +766,15 @@ if build "libtheora" "1.1.1"; then
766
766
sed " s/-fforce-addr//g" configure > configure.patched
767
767
chmod +x configure.patched
768
768
mv configure.patched configure
769
-
769
+
770
770
if ! $MACOS_M1 ; then
771
771
# #BEGIN CONFIG.GUESS PATCH -- Updating config.guess file. Which allowed me to compile on aarch64 (ARMv8) [linux kernel 4.9 Ubuntu 20.04]
772
772
rm config.guess
773
773
curl -L --silent -o " config.guess" " https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.guess"
774
774
chmod +x config.guess
775
775
# #END OF CONFIG.GUESS PATCH
776
776
fi
777
-
777
+
778
778
execute ./configure --prefix=" ${WORKSPACE} " --with-ogg-libraries=" ${WORKSPACE} " /lib --with-ogg-includes=" ${WORKSPACE} " /include/ --with-vorbis-libraries=" ${WORKSPACE} " /lib --with-vorbis-includes=" ${WORKSPACE} " /include/ --enable-static --disable-shared --disable-oggtest --disable-vorbistest --disable-examples --disable-asm --disable-spec
779
779
execute make -j $MJOBS
780
780
execute make install
0 commit comments