├── .gitattributes ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE.md └── workflows │ └── main.yml ├── .gitignore ├── LICENSE ├── README.md ├── additional_headers ├── DeckLinkAPI.h ├── DeckLinkAPIVersion.h ├── DeckLinkAPI_i.c ├── d3dkmthk.h ├── d3dukmdt.h └── ladspa.h ├── cross_compiler.py ├── mingw_toolchain_script ├── mingw_toolchain_script.py └── patches │ ├── 0001-binutils-remove_provide_qualifiers_from_ctor_and_dtor_list.patch │ ├── 0001-gcc_6_3_0_weak_refs_x86_64.patch │ ├── 0001-gcc_7_1_0_weak_refs_x86_64.patch │ ├── 0001-workaround-for-isystem-flag.patch │ ├── 0002-dxgi-Add-missing-dxgi-1.2-structs-and-interfaces.patch │ ├── 0003-add-32-bit-defs-for-schannel-security.patch │ ├── 0004-d311-add-missing-d3d11-feature-enum.patch │ ├── 0005-dxgi-add-dxgi1_3.patch │ ├── 0006-d3d11-add-d3d11_2.patch │ ├── 0007-d3d11-add-d3d11_3.patch │ ├── 0008-bessel_complex.patch │ ├── 0009-processor_format.patch │ ├── 0010-d3d11-Add-missing-d3d11-1.1-structs-and-interfaces.patch │ ├── 0140-gcc-7-Enable-std-experimental-filesystem.patch │ ├── binutils.patch │ └── isl.patch ├── packages ├── dependencies │ ├── a52dec.py │ ├── amf_headers.py │ ├── angle.py │ ├── avisynth_plus_headers.py │ ├── boost.py │ ├── brotli.py │ ├── bzip2.py │ ├── cmark.py │ ├── cppunit.py │ ├── crossc.py │ ├── davs2.py │ ├── decklink_headers.py │ ├── dlfcn-win32.py │ ├── expat.py │ ├── fdk_aac.py │ ├── ffmpeg_depends.py │ ├── ffmpeg_depends_extra.py │ ├── ffmpeg_depends_min.py │ ├── ffmpeg_depends_nonfree.py │ ├── fftw.py │ ├── flite.py │ ├── fontconfig.py │ ├── freetype.py │ ├── freetype_lib-with-harfbuzz.py │ ├── freetype_lib.py │ ├── frei0r.py │ ├── gettext.py │ ├── giflib.py │ ├── glad.py │ ├── glib2.py │ ├── glslang.py │ ├── gmp.py │ ├── gnutls.py │ ├── graphengine.py │ ├── harfbuzz.py │ ├── harfbuzz_lib-with-freetype.py │ ├── harfbuzz_lib.py │ ├── highway.py │ ├── iconv.py │ ├── intel_quicksync_mfx.py │ ├── json-c.py │ ├── kvazaar.py │ ├── lcms2.py │ ├── lensfun.py │ ├── leptonica.py │ ├── libaom.py │ ├── libarchive.py │ ├── libass.py │ ├── libbluray.py │ ├── libbs2b.py │ ├── libcaca.py │ ├── libcdio-paranoia.py │ ├── libcdio.py │ ├── libdav1d.py │ ├── libdl.py │ ├── libdovi.py │ ├── libdvdcss.py │ ├── libdvdnav.py │ ├── libdvdread.py │ ├── libebur128.py │ ├── libelf.py │ ├── libepoxy.py │ ├── libffi.py │ ├── libffmpeg.py │ ├── libffmpeg_extra.py │ ├── libfile.py │ ├── libfile_local.py │ ├── libflac.py │ ├── libfribidi.py │ ├── libgme_game_music_emu.py │ ├── libgsm.py │ ├── libilbc.py │ ├── libjpeg-turbo.py │ ├── libjxl.py │ ├── liblame.py │ ├── libmodplug.py │ ├── libmpv.py │ ├── libmysofa.py │ ├── libnettle.py │ ├── libogg.py │ ├── libopenh264.py │ ├── libopenjpeg.py │ ├── libopus.py │ ├── libopusenc.py │ ├── libplacebo.py │ ├── libpng.py │ ├── libpsl.py │ ├── libressl.py │ ├── libsamplerate.py │ ├── libsnappy.py │ ├── libsndfile.py │ ├── libsoxr.py │ ├── libspeex.py │ ├── libspeexdsp.py │ ├── libssh2.py │ ├── libtheora.py │ ├── libtiff.py │ ├── libvorbis.py │ ├── libvpx.py │ ├── libwebp.py │ ├── libx264.py │ ├── libx265.py │ ├── libx265_multibit.py │ ├── libx265_multibit_10.py │ ├── libx265_multibit_12.py │ ├── libxml2.py │ ├── libzimg.py │ ├── libzip.py │ ├── luajit.py │ ├── lzma.py │ ├── lzo.py │ ├── mingw-libgnurx.py │ ├── mujs.py │ ├── nv-codec-headers.py │ ├── openal.py │ ├── opencl_headers.py │ ├── opencl_icd.py │ ├── opencore-amr.py │ ├── openh264.py │ ├── openmpt.py │ ├── opusfile.py │ ├── pcre2.py │ ├── pkg-config.py │ ├── python3_libs.py │ ├── qt6.py │ ├── rav1e.py │ ├── readline.py │ ├── rtmpdump.py │ ├── rubberband.py │ ├── sdl2.py │ ├── shaderc.py │ ├── spirv-cross.py │ ├── spirv-headers.py │ ├── spirv-tools.py │ ├── sqlite3.py │ ├── srt.py │ ├── svt_av1.py │ ├── svt_hevc.py │ ├── svt_vp9.py │ ├── tesseract.py │ ├── twolame.py │ ├── uchardet.py │ ├── unbound.py │ ├── vamp_plugin.py │ ├── vapoursynth_libs.py │ ├── vidstab.py │ ├── vo-amrwbenc.py │ ├── vulkan-d3dheaders.py │ ├── vulkan_headers.py │ ├── vulkan_loader.py │ ├── wavpack.py │ ├── xavs.py │ ├── xavs2.py │ ├── xvidcore.py │ ├── xz.py │ ├── zlib.py │ └── zvbi.py ├── products │ ├── _disabled │ │ ├── amarok.py │ │ ├── clementine.py │ │ ├── filezilla.py │ │ ├── gdb.py │ │ ├── mediainfo.py │ │ ├── mediainfo_dll.py │ │ ├── mpd.py │ │ ├── mpv_gui_qt5.py │ │ ├── patch.py │ │ ├── vlc.py │ │ └── youtube-dl.py │ ├── aom.py │ ├── aria2.py │ ├── cuetools.py │ ├── curl.py │ ├── dav1d.py │ ├── ffmpeg.py │ ├── ffmpeg_extra.py │ ├── ffmpeg_min.py │ ├── ffmpeg_shared.py │ ├── ffmpeg_shared_extra.py │ ├── ffmpeg_shared_min.py │ ├── flac.py │ ├── lame.py │ ├── mkvtoolnix.py │ ├── mp4box.py │ ├── mpv.py │ ├── mpv.py.2 │ ├── mpv.py.bak │ ├── opus-tools.py │ ├── opus.py │ ├── scxvid.py │ ├── sox.py │ ├── vorbis-tools.py │ ├── vpx.py │ ├── w2x.py │ ├── webp.py │ ├── wget.py │ ├── x264.py │ ├── x265.py │ ├── yt-dlp.py │ └── yt-dlp.py.bak └── variables.py ├── patches ├── 196f295.diff ├── angle │ ├── 0002-Cross-compile-hacks.patch │ ├── 0003-rename-sprintf_s.patch │ ├── 0004-string_utils-cpp.patch │ ├── angle-0002-install-fixed.patch │ └── angle-0003-add-option-for-targeting-cpu-architecture.patch ├── aria2 │ ├── aria2_timegm_workaround.patch │ └── fix-openssl-api-version-logic-for-libressl-2.7.x.patch ├── avisynthplus │ └── fix-version.patch ├── bzip2 │ ├── bzip2-1.0.6-gcc8.patch │ └── bzip2_cross_compile.diff ├── cppunit │ └── Add-define-guard-for-NOMINMAX.patch ├── curl │ ├── 0001-fix-build-with-libressl.patch │ └── 0001-search-exedir-for-bundle.patch ├── ff-fix-bug.patch ├── ffmpeg │ └── 0001-ffmpeg-vp9-use-superframe-split-bsf.patch ├── ffpatch.diff ├── filezilla │ └── 0001-remove-32bit-fzshellext.patch ├── flac │ ├── 0001-mingw-fix.patch │ └── 01.patch ├── flite │ └── flite_64.diff ├── fontconfig │ ├── 0001-fontconfig-remove-tests.patch │ ├── 0001-mingwcompat-remove-tests.patch │ ├── 0002-fontconfig-add-default-windows-path.patch │ ├── fontconfig-0001-fix-missing-bracket.patch │ └── fontconfig-git-utimes.patch ├── freetype2 │ ├── 0001-Enable-table-validation-modules.patch │ ├── 0002-Enable-subpixel-rendering.patch │ └── 0003-Enable-infinality-subpixel-hinting.patch ├── fribidi │ └── 0001-mingwcompat-remove-doc-tests.patch ├── giflib │ ├── CMakeLists.txt │ └── giflib-add-cmakelists.patch ├── glib2 │ ├── 0001-Revert-tests-W32-ugly-fix-for-sscanf-format.patch │ ├── 0001-Use-CreateFile-on-Win32-to-make-sure-g_unlink-always.patch │ ├── 0001-disable-some-tests-when-static.patch │ ├── 0001-win32-Make-the-static-build-work-with-MinGW-when-pos.patch │ ├── 0004-glib-prefer-constructors-over-DllMain.patch │ ├── 0017-GSocket-Fix-race-conditions-on-Win32-if-multiple-thr.patch │ ├── 0027-no_sys_if_nametoindex.patch │ ├── 0028-inode_directory.patch │ ├── glib-2-without-tests.diff │ ├── revert-warn-glib-compile-schemas.patch │ └── use-pkgconfig-file-for-intl.patch ├── gnutls │ ├── 0001-gnutls-3.5.11-arpainet_pkgconfig.patch │ ├── gnutls-3.6.5-use-nettle34.patch │ └── rename-inet_pton_for_srt.diff ├── gsm │ ├── gsm-1.0.16.patch │ └── gsm-1.0.16_Makefile.patch ├── kvazaar │ └── 0001-mingw-workaround.patch ├── lame │ ├── 0007-revert-posix-code.patch │ └── lame-3.99.5.patch ├── lensfun │ └── 0001-fix-mingw-building.patch ├── libarchive │ ├── 0001-libarchive-3.3.2.bcrypt.patch │ └── 0001-libarchive-mingw-workaround.patch ├── libbluray │ └── libbluray_git_remove_strtok_s.patch ├── libcaca │ └── libcaca-0.99.beta19.patch ├── libfile │ └── file-win32.patch ├── libgnurx │ ├── libgnurx-1-build-static-lib.patch │ └── mingw-libgnurx-static.patch ├── libjpeg-turbo │ ├── 0001-libjpeg-turbo-git-mingw-compat.patch │ └── 0002-libjpeg-turbo-git-libmng-compat.patch ├── libjxl │ └── 0001-Fix-building-on-MinGW.patch ├── libpng │ ├── libpng-1.6.38-apng.patch │ └── libpng-1.6.39-apng.patch ├── libsndfile │ ├── 0001-more-elegant-and-foolproof-autogen-fallback.all.patch │ └── 0003-fix-source-searches.mingw.patch ├── libxml2 │ └── 0001-libxml2-2.9.4-add_prog_test_toggle.patch ├── libzip │ └── 0001-Fix-building-statically-on-mingw64.patch ├── mediainfo │ ├── libmediainfo-1-fixes.patch │ └── libzen-1-fixes.patch ├── mfx │ └── mfx-0001-mingwcompat-disable-va.patch ├── mkvtoolnix │ └── mkvtoolnix_get_rid_of_platformsupport.patch ├── modplug │ └── 0001-modplug-mingw-workaround.patch ├── mpv │ ├── 0001-change-icons.patch │ ├── 0001-disable-shader-optimization-due-to-crashes.patch │ ├── 0001-resolve-naming-collision-with-xavs2.patch │ ├── mpv_fixed_strncpy.patch │ └── ádd-lib-prefix.patch ├── mujs │ ├── mujs-0001-fix-building-with-mingw.patch │ └── mujs-0002-fix-install-with-mingw.patch ├── openal │ ├── 0001-mingwfixes.patch │ ├── 0001-versioned-w32-dll.mingw.patch │ ├── 0002-w32ize-portaudio-loading.mingw.patch │ ├── 0003-openal-not-32.mingw.patch │ ├── 0004-disable-OSS-windows.patch │ └── openal-soft-privlibs.patch ├── opencl │ ├── 0001-OpenCL-git-prefix.patch │ ├── 0002-OpenCL-git-header.patch │ ├── 0003-cfgmgr32-workaround.diff │ └── 1.patch ├── openh264 │ ├── 0001-openh264-static-only.patch │ └── 0001-remove-fma3-call.patch ├── openjpeg2 │ └── use-PkgConfig-for-third-party-libraries.patch ├── opus │ ├── opus-1.1.2_strip_declspec.patch │ └── opus_git_strip_declspec.patch ├── pcre2 │ └── 0001-pcre2-iswild.patch ├── python │ └── pyconfig.h-36-hypot.patch ├── qt5 │ ├── 0001-Add-profile-for-cross-compilation-with-mingw-w64-modified-2.patch │ ├── 0001-Don-t-require-windows.h-when-using-native-Linux-gcc.patch │ ├── 0002-Handle-win64-in-dumpcpp-and-MetaObjectGenerator-read.patch │ ├── 0005-Make-sure-.pc-files-are-installed-correctly.patch │ ├── 0006-Don-t-add-resource-files-to-LIBS-parameter.patch │ ├── 0007-Prevent-debug-library-names-in-pkg-config-files.patch │ ├── 0013-Fix-linking-against-static-pcre.patch │ └── 0016-Rename-qtmain-to-qt5main.patch ├── readline.patch ├── rtmpdump │ └── 0001-Add-support-for-LibreSSL.patch ├── sdl2 │ ├── 0001-SDL2-2.0.5.xinput.diff │ └── superseded_0001-SDL2_hg.xinput_state_ex.patch ├── shaderc │ ├── gcc9-cast-error-workaround.patch │ └── shaderc-0001-add-script-for-cloning-dependencies.patch ├── snappy │ └── 0001-snappy-remove-tests-and-shared.patch ├── tesseract │ └── lzma_workaround.diff ├── tesseract_patch.diff ├── test.patch ├── theora │ └── theora_remove_rint_1.2.0alpha1.patch ├── tiff1.patch ├── twolame │ └── 0001-twolame-mingw-workaround.patch ├── vamp │ └── vamp-plugin-sdk-2.7.1.patch ├── vapoursynth │ ├── vapoursynth-0001-statically-link.patch │ ├── vapoursynth-0002-api.patch │ └── vapoursynth-0003-windows-header.patch ├── vorbis-tools │ └── vorbis_tools_odd_locale.patch ├── vpx │ └── vpx_160_semaphore.patch ├── vulkan │ ├── 0001-fix-cross-compiling.patch │ ├── 0001-mingw-workarounds.patch │ └── test.patch ├── wget │ ├── 0001-remove-RAND_screen-which-doesn-t-exist-on-mingw.patch │ ├── 0001-wget-look-for-ca-bundle.trust.crt-in-exe-path-by-def.patch │ ├── wget.timegm.patch │ └── wget_1.19.1.18_strip_version.patch ├── wxwidgets │ └── 0001-wxWidgets-c++11-PR2222.patch ├── x265 │ └── 0001-Remove_exports.patch ├── zlib │ └── 0001-mingw-workarounds.patch └── zvbi │ ├── 0001-zvbi-0.2.35_win32.patch │ └── 0002-zvbi-0.2.35_ioctl.patch └── tools ├── README.md ├── check_versions.py ├── highway.py ├── hs ├── libs ├── __init__.py ├── htmllistparse │ ├── __init__.py │ └── htmllistparse.py └── htmllistparse_LICENSE ├── merge.py ├── setup.cfg ├── split.py └── which_have_gitset.py /.gitattributes: -------------------------------------------------------------------------------- 1 | sources/* linguist-vendored 2 | additional_headers/* linguist-vendored 3 | patches/* linguist-vendored 4 | mingw_build_scripts/* linguist-vendored 5 | 6 | * text=auto 7 | *.py text eol=lf 8 | *.patch text eol=lf 9 | *.diff text eol=lf 10 | *.sh text eol=lf 11 | *.txt text eol=lf 12 | *.md text eol=lf 13 | *.gz -text -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | custom: 'https://www.azirevpn.com/ref/1OxiItOD6E' 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Please note, this script is not tested on all GNU/Linux variants. 2 | 3 | Please read the README.md before opening a new Issue. -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Ubuntu Build 2 | 3 | on: 4 | push: 5 | pull_request: 6 | 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - name: Install build essentials 12 | run: sudo apt-get update && sudo apt-get install -y build-essential 13 | - name: Install CMake 14 | run: sudo apt-get install -y cmake 15 | - name: Install Ninja 16 | run: sudo apt-get install -y ninja-build 17 | - name: Install Meson 18 | run: sudo apt-get install -y meson 19 | - name: Install Pip 20 | run: sudo apt-get install -y python3-pip 21 | - name: Install Python3 22 | run: sudo apt-get install -y python3-dev 23 | - name: Install Cargo 24 | run: curl https://sh.rustup.rs -sSf | sh -s -- -y && source $HOME/.cargo/env 25 | - name: Clone repository 26 | uses: actions/checkout@v2 27 | - name: Run cross_compile.py script 28 | run: cd ${{ github.repository }} && ./cross_compile.py 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/ 2 | workdir/ 3 | cross_compiler.yaml 4 | tools/_deps_split 5 | tools/_prods_split 6 | tools/merged_deps.py 7 | tools/merged_prods.py 8 | __pycache__/ 9 | *.py[cod] 10 | *$py.class -------------------------------------------------------------------------------- /mingw_toolchain_script/patches/0001-gcc_6_3_0_weak_refs_x86_64.patch: -------------------------------------------------------------------------------- 1 | From c287a5942edd1a0b9d444f43ecc9be2a50cd8bb0 Mon Sep 17 00:00:00 2001 2 | From: Hagen 3 | Date: Thu, 9 Mar 2017 10:42:19 +0100 4 | Subject: [PATCH] disable weak refs in x86_64 5 | 6 | --- 7 | libstdc++-v3/config/os/mingw32-w64/os_defines.h | 2 ++ 8 | 1 file changed, 2 insertions(+) 9 | 10 | diff --git a/libstdc++-v3/config/os/mingw32-w64/os_defines.h b/libstdc++-v3/config/os/mingw32-w64/os_defines.h 11 | index 1f46103..ab62906 100644 12 | --- a/libstdc++-v3/config/os/mingw32-w64/os_defines.h 13 | +++ b/libstdc++-v3/config/os/mingw32-w64/os_defines.h 14 | @@ -76,6 +76,8 @@ 15 | 16 | #ifdef __x86_64__ 17 | #define _GLIBCXX_LLP64 1 18 | +// See https://github.com/Alexpux/MINGW-packages/issues/1580 19 | +#define _GLIBCXX_USE_WEAK_REF 0 20 | #endif 21 | 22 | // Enable use of GetModuleHandleEx (requires Windows XP/2003) in 23 | -------------------------------------------------------------------------------- /mingw_toolchain_script/patches/0001-gcc_7_1_0_weak_refs_x86_64.patch: -------------------------------------------------------------------------------- 1 | diff -Nur a/os_defines.h b/os_defines.h 2 | --- a/libstdc++-v3/config/os/mingw32-w64/os_defines.h 2017-05-15 21:11:04.539087395 +0200 3 | +++ b/libstdc++-v3/config/os/mingw32-w64/os_defines.h 2017-05-15 21:11:15.924292947 +0200 4 | @@ -76,6 +76,8 @@ 5 | 6 | #ifdef __x86_64__ 7 | #define _GLIBCXX_LLP64 1 8 | +// See https://github.com/Alexpux/MINGW-packages/issues/1580 9 | +#define _GLIBCXX_USE_WEAK_REF 0 10 | #endif 11 | 12 | // Enable use of GetModuleHandleEx (requires Windows XP/2003) in 13 | -------------------------------------------------------------------------------- /mingw_toolchain_script/patches/0001-workaround-for-isystem-flag.patch: -------------------------------------------------------------------------------- 1 | From 01001c820ce946be2a5e35737165cf2ac7753055 Mon Sep 17 00:00:00 2001 2 | From: shinchiro 3 | Date: Mon, 21 Dec 2015 00:10:15 +0800 4 | Subject: [PATCH] Workaround for -isystem flag messing up include order 5 | 6 | --- 7 | mingw-w64-headers/crt/float.h | 9 +++++++++ 8 | 1 file changed, 9 insertions(+) 9 | 10 | diff --git a/mingw-w64-headers/crt/float.h b/mingw-w64-headers/crt/float.h 11 | index 5874f4e..4e56b90 100644 12 | --- a/mingw-w64-headers/crt/float.h 13 | +++ b/mingw-w64-headers/crt/float.h 14 | @@ -105,6 +105,15 @@ 15 | #define DBL_MAX_10_EXP __DBL_MAX_10_EXP__ 16 | #define LDBL_MAX_10_EXP __LDBL_MAX_10_EXP__ 17 | 18 | + /* The difference between 1 and the least value greater than 1 that is 19 | + representable in the given floating point type, b**1-p. */ 20 | + #undef FLT_EPSILON 21 | + #undef DBL_EPSILON 22 | + #undef LDBL_EPSILON 23 | + #define FLT_EPSILON __FLT_EPSILON__ 24 | + #define DBL_EPSILON __DBL_EPSILON__ 25 | + #define LDBL_EPSILON __LDBL_EPSILON__ 26 | + 27 | /* Addition rounds to 0: zero, 1: nearest, 2: +inf, 3: -inf, -1: unknown. */ 28 | /* ??? This is supposed to change with calls to fesetround in . */ 29 | #undef FLT_ROUNDS 30 | -- 31 | 2.6.3 32 | 33 | -------------------------------------------------------------------------------- /mingw_toolchain_script/patches/0008-bessel_complex.patch: -------------------------------------------------------------------------------- 1 | From 556ba2e45435717a4502e6c77b7af1e5daee8936 Mon Sep 17 00:00:00 2001 2 | From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B8=CC=86=20=D0=9F?= 3 | =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= 4 | Date: Sun, 9 Oct 2016 17:33:44 +0300 5 | Subject: [PATCH] Allow to use bessel and complex functions without undefining 6 | __STRICT_ANSI__ 7 | 8 | --- 9 | mingw-w64-headers/crt/math.h | 2 +- 10 | 1 file changed, 1 insertion(+), 1 deletion(-) 11 | 12 | diff --git a/mingw-w64-headers/crt/math.h b/mingw-w64-headers/crt/math.h 13 | index b06ca79..d3617d0 100644 14 | --- a/mingw-w64-headers/crt/math.h 15 | +++ b/mingw-w64-headers/crt/math.h 16 | @@ -263,7 +263,7 @@ extern "C" { 17 | #define EDOM 33 18 | #define ERANGE 34 19 | 20 | -#ifndef __STRICT_ANSI__ 21 | +#if !defined(__STRICT_ANSI__) || defined(_POSIX_C_SOURCE) || defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) 22 | 23 | #ifndef _COMPLEX_DEFINED 24 | #define _COMPLEX_DEFINED 25 | -- 26 | 2.9.0 27 | 28 | -------------------------------------------------------------------------------- /mingw_toolchain_script/patches/binutils.patch: -------------------------------------------------------------------------------- 1 | diff '--color=auto' -Nur binutils-2.38_orig/Makefile.in binutils-2.38/Makefile.in 2 | --- binutils-2.38_orig/Makefile.in 2022-02-09 13:04:43.000000000 +0100 3 | +++ binutils-2.38/Makefile.in 2022-03-01 08:50:29.076480930 +0100 4 | @@ -365,7 +365,7 @@ 5 | CC_FOR_BUILD = @CC_FOR_BUILD@ 6 | CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ 7 | CPP_FOR_BUILD = @CPP_FOR_BUILD@ 8 | -CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@ 9 | +CPPFLAGS_FOR_BUILD = -O3 10 | CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@ 11 | CXX_FOR_BUILD = @CXX_FOR_BUILD@ 12 | DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@ 13 | diff '--color=auto' -Nur binutils-2.38_orig/Makefile.tpl binutils-2.38/Makefile.tpl 14 | --- binutils-2.38_orig/Makefile.tpl 2022-01-22 13:14:07.000000000 +0100 15 | +++ binutils-2.38/Makefile.tpl 2022-03-01 08:50:49.126783339 +0100 16 | @@ -368,7 +368,7 @@ 17 | CC_FOR_BUILD = @CC_FOR_BUILD@ 18 | CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ 19 | CPP_FOR_BUILD = @CPP_FOR_BUILD@ 20 | -CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@ 21 | +CPPFLAGS_FOR_BUILD = -O3 22 | CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@ 23 | CXX_FOR_BUILD = @CXX_FOR_BUILD@ 24 | DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@ 25 | -------------------------------------------------------------------------------- /packages/dependencies/a52dec.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33' }, ], }, 5 | { 'url' : 'https://gstreamer.freedesktop.org/src/mirror/a52dec-0.7.4.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33' }, ], }, 6 | ], 7 | 'configure_options' : '{autoconf_prefix_options} CFLAGS=-std=gnu89', 8 | 'run_post_patch' : [ 9 | 'rm configure', 10 | ], 11 | 'build_options' : 'bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=', 12 | 'install_options' : 'bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=', 13 | 'update_check' : { 'url' : 'http://liba52.sourceforge.net/', 'type' : 'httpregex', 'regex' : r'released<\/a>' }, 14 | '_info' : { 'version' : '0.7.4', 'fancy_name' : 'a52dec' }, 15 | } -------------------------------------------------------------------------------- /packages/dependencies/amf_headers.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/GPUOpen-LibrariesAndSDKs/AMF', 4 | 'rename_folder' : 'amd_media_framework_headers', 5 | 'depth_git': 1, 6 | 'needs_configure' : False, 7 | 'needs_make' : False, 8 | 'needs_make_install' : False, 9 | 'run_post_patch' : [ 10 | 'if [ ! -f "already_done" ] ; then if [ ! -d "{target_prefix}/include/AMF" ]; then mkdir -p "{target_prefix}/include/AMF" ; fi ; fi', 11 | 'if [ ! -f "already_done" ] ; then pwd ; fi', 12 | 'if [ ! -f "already_done" ] ; then cp -av "amf/public/include/." "{target_prefix}/include/AMF" ; fi', 13 | 'if [ ! -f "already_done" ] ; then touch "already_done" ; fi', 14 | ], 15 | '_info' : { 'version' : None, 'fancy_name' : 'AMF (headers)' }, 16 | } -------------------------------------------------------------------------------- /packages/dependencies/avisynth_plus_headers.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/AviSynth/AviSynthPlus', 4 | 'source_subfolder' : '_build', 5 | 'patches' : [ 6 | ( 'avisynthplus/fix-version.patch', '-p1', '..' ), 7 | ], 8 | 'conf_system' : 'cmake', 9 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DHEADERS_ONLY:bool=on ', 10 | '_info' : { 'version' : 'git (master)', 'fancy_name' : 'Avisynth+ (Headers only)' }, 11 | } -------------------------------------------------------------------------------- /packages/dependencies/brotli.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/google/brotli', 4 | # 'depth_git': 0, 5 | 'conf_system' : 'cmake', 6 | 'build_system' : 'ninja', 7 | 'source_subfolder' : 'build', 8 | 'configure_options' : 9 | '.. {cmake_prefix_options} ' 10 | '-DCMAKE_INSTALL_PREFIX={target_prefix} ' 11 | '-DBUILD_SHARED_LIBS=false ' 12 | '-DBROTLI_EMSCRIPTEN=false ' 13 | , 14 | 'update_check' : { 'type' : 'git', }, 15 | '_info' : { 'version' : None, 'fancy_name' : 'brotli' }, 16 | } -------------------------------------------------------------------------------- /packages/dependencies/cmark.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/commonmark/cmark.git', 4 | 'conf_system' : 'cmake', 5 | 'source_subfolder' : '_build', 6 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DCMARK_STATIC=ON -DCMARK_SHARED=OFF -DCMARK_TESTS=OFF', #CMARK_STATIC_DEFINE 7 | '_info' : { 'version' : None, 'fancy_name' : 'cmark' }, 8 | } -------------------------------------------------------------------------------- /packages/dependencies/cppunit.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'git://anongit.freedesktop.org/git/libreoffice/cppunit', 4 | 'configure_options': '{autoconf_prefix_options}', 5 | '_info' : { 'version' : None, 'fancy_name' : 'cppunit' }, 6 | } -------------------------------------------------------------------------------- /packages/dependencies/crossc.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/rossy/crossc.git', 4 | 'cpu_count' : '1', 5 | 'recursive_git' : True, 6 | 'needs_configure' : False, 7 | 'build_options' : '{make_prefix_options} static', 8 | 'install_options' : '{make_prefix_options} prefix={target_prefix} install-static', 9 | 'run_post_patch' : [ 10 | 'git submodule update --remote --recursive', 11 | 'rm -vf {target_prefix}/lib/pkgconfig/crossc.pc', 12 | ], 13 | 'run_post_install' : [ 14 | "rm -vf {target_prefix}/lib/libcrossc.dll.a", # we only want static, somehow this still gets installed tho. 15 | ], 16 | '_info' : { 'version' : None, 'fancy_name' : 'crossc' }, 17 | } -------------------------------------------------------------------------------- /packages/dependencies/davs2.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/pkuvcl/davs2.git', 4 | 'source_subfolder' : 'build/linux', 5 | 'configure_options' : '{autoconf_prefix_options} --cross-prefix={cross_prefix_bare} --disable-cli --disable-win32thread', 6 | 'install_target' : 'install-lib-static', 7 | '_info' : { 'version' : None, 'fancy_name' : 'davs2' }, 8 | } -------------------------------------------------------------------------------- /packages/dependencies/decklink_headers.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'none', 3 | 'folder_name' : 'decklink_headers', 4 | 'run_post_patch' : [ 5 | 'if [ ! -f "already_done" ] ; then wget https://raw.githubusercontent.com/DeadSix27/python_cross_compile_script/master/additional_headers/DeckLinkAPI.h ; fi', 6 | 'if [ ! -f "already_done" ] ; then wget https://raw.githubusercontent.com/DeadSix27/python_cross_compile_script/master/additional_headers/DeckLinkAPI_i.c ; fi', 7 | 'if [ ! -f "already_done" ] ; then wget https://raw.githubusercontent.com/DeadSix27/python_cross_compile_script/master/additional_headers/DeckLinkAPIVersion.h ; fi', 8 | 'if [ ! -f "already_done" ] ; then cp -fv "DeckLinkAPI.h" "{target_prefix}/include/DeckLinkAPI.h" ; fi', 9 | 'if [ ! -f "already_done" ] ; then cp -fv "DeckLinkAPI_i.c" "{target_prefix}/include/DeckLinkAPI_i.c" ; fi', 10 | 'if [ ! -f "already_done" ] ; then cp -fv "DeckLinkAPIVersion.h" "{target_prefix}/include/DeckLinkAPIVersion.h" ; fi', 11 | 'if [ ! -f "already_done" ] ; then touch "already_done" ; fi', 12 | ], 13 | 'needs_make' : False, 14 | 'needs_make_install' : False, 15 | 'needs_configure' : False, 16 | '_info' : { 'version' : '10.11.2', 'fancy_name' : 'Decklink SDK Headers' }, 17 | } -------------------------------------------------------------------------------- /packages/dependencies/dlfcn-win32.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/dlfcn-win32/dlfcn-win32.git', 4 | 'conf_system' : 'cmake', 5 | 'source_subfolder' : '_build', 6 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=0 -DBUILD_TESTS=0', 7 | '_info' : { 'version' : None, 'fancy_name' : 'dlfcn win32' }, 8 | } -------------------------------------------------------------------------------- /packages/dependencies/expat.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2', 'hashes' : [ { 'type' : 'sha256', 'sum' : '6f0e6e01f7b30025fa05c85fdad1e5d0ec7fd35d9f61b22f34998de11969ff67' }, ], }, 5 | # { 'url' : 'https://fossies.org/linux/www/expat-2.4.1.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'cf032d0dba9b928636548e32b327a2d66b1aab63c4f4a13dd132c2d1d2f2fb6a' }, ], }, 6 | ], 7 | #'custom_cflag' : '-O3', 8 | 'conf_system' : 'cmake', 9 | 'source_subfolder' : '_build', 10 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Release -DEXPAT_BUILD_EXAMPLES=OFF -DEXPAT_SHARED_LIBS=OFF -DEXPAT_BUILD_DOCS=OFF -DEXPAT_BUILD_TESTS=OFF -DEXPAT_BUILD_TOOLS=OFF -DEXPAT_LARGE_SIZE=ON', 11 | 'update_check' : { 'url' : 'https://github.com/libexpat/libexpat/releases', 'type' : 'githubreleases', 'name_or_tag' : 'name' }, 12 | '_info' : { 'version' : '2.5.0', 'fancy_name' : 'expat' }, 13 | } -------------------------------------------------------------------------------- /packages/dependencies/fdk_aac.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'run_post_patch' : [ 4 | 'autoreconf -fiv', 5 | ], 6 | 'url' : 'https://github.com/mstorsjo/fdk-aac.git', 7 | # Note does not like to be compiled without optimisations: error: inlining failed in call to always_inline 'void fft_4(FIXP_DBL*)': indirect function call with a yet undetermined callee 8 | # So make sure to empty the cflags or enable optimisations when your global c(xx)flags are defaulting to -0g/0: 9 | # 'custom_cflag': '', 10 | 'configure_options' : '{autoconf_prefix_options}', 11 | '_info' : { 'version' : None, 'fancy_name' : 'fdk-aac' }, 12 | } -------------------------------------------------------------------------------- /packages/dependencies/ffmpeg_depends.py: -------------------------------------------------------------------------------- 1 | { 2 | 'is_dep_inheriter' : True, 3 | 'depends_on' : [ 4 | 'bzip2', 5 | 'zlib', 6 | 'lzma', 7 | 'fontconfig', 8 | 'freetype', 9 | 'libbluray', 10 | 'libcdio', 11 | 'vapoursynth_libs', 12 | 'rtmpdump', 13 | 'libcaca', 14 | 'iconv', 15 | 'libzimg', 16 | 'libx264', 17 | 'openh264', 18 | 'libx265_multibit', 19 | 'kvazaar', 20 | 'libvpx', 21 | 'libdav1d', 22 | 'libaom', 23 | 'xvidcore', 24 | 'libopus', 25 | 'liblame', 26 | 'libogg', 27 | 'libvorbis', 28 | 'libtheora', 29 | 'libspeex', 30 | 'libsoxr', 31 | 'rubberband', 32 | 'libass', 33 | 'tesseract', 34 | # 'lensfun', 35 | 'libwebp', 36 | 'avisynth_plus_headers', 37 | 'nv-codec-headers', 38 | 'intel_quicksync_mfx', 39 | 'amf_headers', 40 | ], 41 | } -------------------------------------------------------------------------------- /packages/dependencies/ffmpeg_depends_extra.py: -------------------------------------------------------------------------------- 1 | #type:ignore 2 | { 3 | 'is_dep_inheriter' : True, 4 | 'depends_on' : [ 5 | 'davs2', 6 | 'fftw', 7 | #'flite',#todo fix this shit 8 | 'frei0r', 9 | 'libbs2b', 10 | 'davs2', 11 | 'libgme_game_music_emu', 12 | 'libgsm', 13 | 'libilbc', 14 | 'libmodplug', 15 | 'libmysofa', 16 | 'libsnappy', 17 | 'opencore-amr', 18 | 'lensfun', 19 | 'openmpt', 20 | 'srt', 21 | 'twolame', 22 | 'vidstab', 23 | 'kvazaar', 24 | 'vo-amrwbenc', 25 | 'wavpack', 26 | 'xavs', 27 | 'xavs2', 28 | 'zvbi' 29 | ], 30 | } -------------------------------------------------------------------------------- /packages/dependencies/ffmpeg_depends_min.py: -------------------------------------------------------------------------------- 1 | #type:ignore 2 | { 3 | 'is_dep_inheriter' : True, 4 | 'depends_on' : [ 5 | 'avisynth_plus_headers', 6 | 'bzip2', 7 | 'fontconfig', 8 | 'freetype', 9 | 'iconv', 10 | 'libaom', 11 | 'libass', 12 | 'libbluray', 13 | 'libcaca', 14 | 'libcdio', 15 | 'libdav1d', 16 | 'libjxl', 17 | 'liblame', 18 | 'libogg', 19 | 'libopenjpeg', 20 | 'libopus', 21 | 'libplacebo', 22 | 'libressl', 23 | 'libsoxr', 24 | 'libspeex', 25 | 'libtheora', 26 | 'libvorbis', 27 | 'libvpx', 28 | 'libwebp', 29 | 'libx264', 30 | 'libx265_multibit', 31 | 'libzimg', 32 | 'lzma', 33 | 'nv-codec-headers', 34 | 'intel_quicksync_mfx', 35 | 'amf_headers', 36 | 'openh264', 37 | 'openal', 38 | 'opencl_icd', 39 | 'rtmpdump', 40 | 'rav1e', 41 | 'rubberband', 42 | 'shaderc', 43 | 'svt_av1', 44 | 'tesseract', 45 | 'vapoursynth_libs', 46 | 'vulkan_loader', 47 | 'xvidcore', 48 | 'zlib', 49 | 'openal', 50 | ], 51 | } -------------------------------------------------------------------------------- /packages/dependencies/ffmpeg_depends_nonfree.py: -------------------------------------------------------------------------------- 1 | #type: ignore 2 | { 3 | 'is_dep_inheriter' : True, 4 | 'depends_on' : [ 5 | 'decklink_headers', 6 | 'fdk_aac' 7 | ], 8 | } -------------------------------------------------------------------------------- /packages/dependencies/fftw.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'http://ftp.fftw.org/fftw-3.3.10.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467' }, ], }, 5 | { 'url' : 'https://fossies.org/linux/misc/fftw-3.3.10.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467' }, ], }, 6 | ], 7 | #'custom_cflag' : '-O3 -DWITH_OUR_MALLOC', 8 | 'cflag_addition': '-DWITH_OUR_MALLOC', 9 | 'conf_system' : 'cmake', 10 | 'source_subfolder' : '_build', 11 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Release ' 12 | '-DBUILD_TESTS=OFF ' 13 | '-DENABLE_THREADS=ON ' 14 | '-DENABLE_FLOAT=OFF ' 15 | '-DENABLE_LONG_DOUBLE=OFF ' 16 | '-DENABLE_QUAD_PRECISION=OFF ' 17 | '-DENABLE_SSE=ON ' 18 | '-DENABLE_SSE2=ON ' 19 | '-DENABLE_AVX=ON ' 20 | '-DENABLE_AVX2=ON ' 21 | , 22 | 'regex_replace': { 23 | 'post_patch': [ 24 | { 25 | 0: r'fftw\${{PREC_SUFFIX}}\.pc', 26 | 1: r'fftw3${{PREC_SUFFIX}}.pc', 27 | 'in_file': '../CMakeLists.txt' 28 | }, 29 | ], 30 | }, 31 | 'update_check' : { 'url' : 'ftp://ftp.fftw.org/pub/fftw/', 'type' : 'ftpindex', 'regex' : r'fftw-(?P[\d.]+)\.tar\.gz' }, 32 | '_info' : { 'version' : '3.3.10', 'fancy_name' : 'fftw' }, 33 | } -------------------------------------------------------------------------------- /packages/dependencies/flite.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'http://www.festvox.org/flite/packed/flite-2.1/flite-2.1-release.tar.bz2', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'c73c3f6a2ea764977d6eaf0a287722d1e2066b4697088c552e342c790f3d2b85' }, ], }, 5 | { 'url' : 'https://fossies.org/linux/misc/flite-2.1-release.tar.bz2', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'c73c3f6a2ea764977d6eaf0a287722d1e2066b4697088c552e342c790f3d2b85' }, ], }, 6 | ], 7 | 'patches' : [ 8 | ('flite/flite_64.diff', '-p0'), 9 | ], 10 | 'configure_options' : '{autoconf_prefix_options}', 11 | 'cpu_count' : '1', 12 | 'needs_make_install' : False, 13 | 'regex_replace': { 14 | 'post_patch': [ 15 | { 16 | 0: r'tools main', 17 | 1: r'tools', 18 | 'in_file': 'Makefile' 19 | } 20 | ] 21 | }, 22 | 'do_not_git_update': True, 23 | 'run_post_patch' : [ 24 | 'sed -i.bak "s|i386-mingw32-|{cross_prefix_bare}|" configure', 25 | 'sed -i "s|-DWIN32 -shared|-DWIN64 -static|" configure', 26 | ], 27 | 'run_post_build' : [ 28 | 'mkdir -pv "{target_prefix}/include/flite"', 29 | 'cp -fv include/* "{target_prefix}/include/flite"', 30 | 'cp -fv ./build/{bit_name}-mingw32/lib/*.a "{target_prefix}/lib"', 31 | ], 32 | # 'update_check' : { 'url' : 'http://www.speech.cs.cmu.edu/flite/packed/', 'type' : 'httpindex', 'regex' : r'flite-(?P[\d.]+)\/' }, 33 | '_info' : { 'version' : '2.1', 'fancy_name' : 'flite' }, 34 | } -------------------------------------------------------------------------------- /packages/dependencies/freetype.py: -------------------------------------------------------------------------------- 1 | { 2 | 'is_dep_inheriter' : True, 3 | 'depends_on' : [ 'zlib', 'bzip2', 'libpng', 'freetype_lib', 'harfbuzz_lib-with-freetype', ], # 'freetype_lib-with-harfbuzz' ], 4 | } -------------------------------------------------------------------------------- /packages/dependencies/freetype_lib-with-harfbuzz.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://download.savannah.gnu.org/releases/freetype/freetype-2.13.0.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '5ee23abd047636c24b2d43c6625dcafc66661d1aca64dec9e0d05df29592624c' }, ], }, 5 | { 'url' : 'https://sourceforge.net/projects/freetype/files/freetype2/2.13.0/freetype-2.13.0.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '5ee23abd047636c24b2d43c6625dcafc66661d1aca64dec9e0d05df29592624c' }, ], }, 6 | { 'url' : 'https://fossies.org/linux/misc/freetype-2.13.0.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '5ee23abd047636c24b2d43c6625dcafc66661d1aca64dec9e0d05df29592624c' }, ], }, 7 | ], 8 | #'custom_cflag' : '-O3', 9 | 'folder_name' : 'freetype-with-harfbuzz', 10 | 'rename_folder' : 'freetype-with-harfbuzz', 11 | 'configure_options' : '{autoconf_prefix_options} --build=x86_64-linux-gnu --with-zlib={target_prefix} --with-zlib --without-png --with-harfbuzz=yes', 12 | 'run_post_install' : [ 13 | 'sed -i.bak \'s/Libs: -L${{libdir}} -lfreetype.*/Libs: -L${{libdir}} -lfreetype -lbz2 -lharfbuzz/\' "{pkg_config_path}/freetype2.pc"', 14 | ], 15 | 'update_check' : { 'url' : 'https://sourceforge.net/projects/freetype/files/freetype2/', 'type' : 'sourceforge', }, 16 | '_info' : { 'version' : '2.13.0', 'fancy_name' : 'freetype2' }, 17 | } -------------------------------------------------------------------------------- /packages/dependencies/freetype_lib.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://download.savannah.gnu.org/releases/freetype/freetype-2.13.0.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '5ee23abd047636c24b2d43c6625dcafc66661d1aca64dec9e0d05df29592624c' }, ], }, 5 | { 'url' : 'https://sourceforge.net/projects/freetype/files/freetype2/2.13.0/freetype-2.13.0.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '5ee23abd047636c24b2d43c6625dcafc66661d1aca64dec9e0d05df29592624c' }, ], }, 6 | { 'url' : 'https://fossies.org/linux/misc/freetype-2.13.0.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '5ee23abd047636c24b2d43c6625dcafc66661d1aca64dec9e0d05df29592624c' }, ], }, 7 | ], 8 | #'custom_cflag' : '-O3', 9 | 'configure_options' : '{autoconf_prefix_options} --build=x86_64-linux-gnu --with-zlib={target_prefix} --with-zlib --without-png --with-harfbuzz=no', # TODO get rid of hardcoded build variable 10 | 'update_check' : { 'url' : 'https://sourceforge.net/projects/freetype/files/freetype2/', 'type' : 'sourceforge', }, 11 | '_info' : { 'version' : '2.13.0', 'fancy_name' : 'freetype2' }, 12 | } -------------------------------------------------------------------------------- /packages/dependencies/frei0r.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://files.dyne.org/frei0r/frei0r-plugins-1.8.0.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '45a28655caf057227b442b800ca3899e93490515c81e212d219fdf4a7613f5c4' }, ], }, 5 | { 'url' : 'https://cdn.netbsd.org/pub/pkgsrc/distfiles/frei0r-plugins-1.8.0.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '45a28655caf057227b442b800ca3899e93490515c81e212d219fdf4a7613f5c4' }, ], }, 6 | ], 7 | 'depends_on' : [ 'dlfcn-win32', ], 8 | 'conf_system' : 'cmake', 9 | 'configure_options' : '. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DWITHOUT_OPENCV=YES', 10 | # 'run_post_patch' : [ 11 | # 'sed -i.bak "s/find_package (Cairo)//g" CMakeLists.txt', 12 | # ], 13 | 'update_check' : { 'url' : 'https://files.dyne.org/frei0r/releases/', 'type' : 'httpindex', 'regex' : r'frei0r-plugins-(?P[\d.]+)\.tar\.gz' }, 14 | '_info' : { 'version' : '1.8.0', 'fancy_name' : 'frei0r-plugins' }, 15 | } -------------------------------------------------------------------------------- /packages/dependencies/gettext.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://ftp.gnu.org/pub/gnu/gettext/gettext-0.21.1.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '50dbc8f39797950aa2c98e939947c527e5ac9ebd2c1b99dd7b06ba33a6767ae6' }, ], }, 5 | { 'url' : 'https://fossies.org/linux/misc/gettext-0.21.1.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '50dbc8f39797950aa2c98e939947c527e5ac9ebd2c1b99dd7b06ba33a6767ae6' }, ], }, 6 | ], 7 | 'configure_options' : '{autoconf_prefix_options} CPPFLAGS=-DLIBXML_STATIC', 8 | 9 | 'regex_replace': { 10 | 'post_patch': [ 11 | { 12 | 0: r'SUBDIRS = gnulib-local gettext-runtime libtextstyle gettext-tools', 13 | 1: r'SUBDIRS = gnulib-local gettext-runtime libtextstyle', 14 | 'in_file': 'Makefile.am' 15 | }, 16 | { 17 | 0: r'gettext-runtime libtextstyle gettext-tools', 18 | 1: r'gettext-runtime libtextstyle', 19 | 'in_file': 'configure.ac' 20 | }, 21 | ], 22 | }, 23 | 24 | 'run_post_regexreplace' : [ 25 | 'autoreconf -fiv', 26 | ], 27 | 28 | 'depends_on' : [ 'iconv' ], 29 | #'custom_cflag' : '-O3', 30 | 'update_check' : { 'url' : 'https://ftp.gnu.org/pub/gnu/gettext/?C=M;O=D', 'type' : 'httpindex', 'regex' : r'gettext-(?P[\d.]+)\.tar\.xz' }, 31 | '_info' : { 'version' : '0.21.1', 'fancy_name' : 'gettext' }, 32 | } -------------------------------------------------------------------------------- /packages/dependencies/giflib.py: -------------------------------------------------------------------------------- 1 | { 2 | 3 | # I am totally uninterested in supporting Windows, so that's not persuasive. 4 | # - Eric S. Raymond (Programmer working on GIFLIB) - 2019-03-18 (https://sourceforge.net/p/giflib/feature-requests/6/#64a5) 5 | 'repo_type' : 'archive', 6 | 'conf_system' : 'cmake', 7 | 'download_locations' : [ 8 | # { 'url' : 'https://sourceforge.net/projects/giflib/files/giflib-5.2.1.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '251a85b3bac687974f360d3796048c20ded3bf0bd69e0d1cfd1db23d013f89ed' }, ], }, 9 | { 'url' : 'https://fossies.org/linux/misc/giflib-5.2.1.tar.bz2' , 'hashes' : [ { 'type' : 'sha256', 'sum' : '26cb5bdda7957f8c8fba45d1899936d81e0af04c0754bbba50fbe2ad6234bb01' }, ], }, 10 | ], 11 | # 'patches' : [ 12 | # ( 'giflib/giflib-add-cmakelists.patch', '-p1', '..' ), # thanks to https://sourceforge.net/p/giflib/feature-requests/6/ 13 | # ], 14 | 'copy_over' : [ 15 | '{project_root}/patches/giflib/CMakeLists.txt' 16 | ], 17 | 'source_subfolder' : '_build', 18 | 'configure_options' : 19 | '.. {cmake_prefix_options} -DBUILD_STATIC_LIBS=1 -DCMAKE_INSTALL_PREFIX={target_prefix}' 20 | , 21 | 'update_check' : { 'url' : 'https://sourceforge.net/projects/giflib/files/', 'type' : 'sourceforge', 'regex' : r'giflib-(?P[\d.]+)\.tar\.bz2' }, 22 | '_info' : { 'version' : '5.1.9', 'fancy_name' : 'giflib' }, 23 | } -------------------------------------------------------------------------------- /packages/dependencies/glad.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url': "https://github.com/Dav1dde/glad", 4 | 'conf_system' : 'cmake', 5 | 'configure_options' : '. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix}', 6 | '_info' : { 'version' : 'git (master)', 'fancy_name' : 'glad' }, 7 | } -------------------------------------------------------------------------------- /packages/dependencies/glslang.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'rename_folder' : 'glslang', 4 | 'url' : 'https://github.com/KhronosGroup/glslang.git', 5 | 'depth_git': 0, 6 | # 'branch': '12.0.0', 7 | 'branch': 'main', 8 | 'patches' : [ 9 | ( 'https://github.com/KhronosGroup/glslang/pull/3144.patch', '-p1', '..' ), # Include header in Common.h #3144 10 | ], 11 | 'conf_system' : 'cmake', 12 | 'source_subfolder' : '_build', 13 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Release', 14 | '_info' : { 'version' : None, 'fancy_name' : 'glslang' }, 15 | } -------------------------------------------------------------------------------- /packages/dependencies/gmp.py: -------------------------------------------------------------------------------- 1 | { 2 | #export CC_FOR_BUILD=/usr/bin/gcc idk if we need this anymore, compiles fine without. 3 | #export CPP_FOR_BUILD=usr/bin/cpp 4 | #generic_configure "ABI=$bits_target" 5 | 'repo_type' : 'archive', 6 | 'custom_cflag' : '-O3', 7 | 'download_locations' : [ 8 | { 'url' : 'https://gmplib.org/download/gmp/gmp-6.2.1.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2' }, ], }, 9 | { 'url' : 'https://fossies.org/linux/misc/gmp-6.2.1.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2' }, ], }, 10 | ], 11 | 'configure_options' : '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static', 12 | 'update_check' : { 'url' : 'https://gmplib.org/download/gmp/', 'type' : 'httpindex', 'regex' : r'gmp-(?P[\d.]+)\.tar\.xz' }, 13 | '_info' : { 'version' : '6.2.1', 'fancy_name' : 'gmp' }, 14 | } -------------------------------------------------------------------------------- /packages/dependencies/graphengine.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/sekrit-twc/graphengine/', 4 | #'branch' : 'd0f9cdebd34b0cb032f79357660bd0f6f23069ee', # '3aae2066e5b8df328866ba7e8636d8901f42e8e7', 5 | 'configure_options' : '{autoconf_prefix_options}', 6 | '_info' : { 'version' : None, 'fancy_name' : 'graphengine' }, 7 | } -------------------------------------------------------------------------------- /packages/dependencies/harfbuzz.py: -------------------------------------------------------------------------------- 1 | { 2 | 'is_dep_inheriter' : True, 3 | 'depends_on' : [ 'bzip2', 'freetype_lib', 'harfbuzz_lib-with-freetype', ], 4 | } -------------------------------------------------------------------------------- /packages/dependencies/highway.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/google/highway.git', 4 | # 'depth_git': 0, 5 | 'conf_system' : 'cmake', 6 | 'build_system' : 'ninja', 7 | 'source_subfolder' : 'build', 8 | 'env_exports' : { # 2020.06.19 9 | 'CFLAGS' : ' -Wa,-muse-unaligned-vector-move {original_cflags}', 10 | 'CXXFLAGS' : ' -Wa,-muse-unaligned-vector-move {original_cflags}', 11 | 'CPPFLAGS' : ' -Wa,-muse-unaligned-vector-move {original_cflags}', 12 | }, 13 | 'configure_options' : 14 | '.. {cmake_prefix_options} ' 15 | '-DCMAKE_INSTALL_PREFIX={target_prefix} ' 16 | '-DBUILD_SHARED_LIBS=false ' 17 | '-DCMAKE_BUILD_TYPE=Release ' 18 | '-DBUILD_TESTING=OFF ' 19 | '-DHWY_CMAKE_ARM7=OFF ' 20 | '-DCMAKE_GNUtoMS=OFF ' 21 | '-DHWY_ENABLE_EXAMPLES=OFF ' 22 | '-DHWY_ENABLE_CONTRIB=OFF ' 23 | '-DHWY_ENABLE_INSTALL=ON ' 24 | '-DHWY_WARNINGS_ARE_ERRORS=OFF ' 25 | , 26 | 'update_check' : { 'type' : 'git', }, 27 | '_info' : { 'version' : None, 'fancy_name' : 'highway' }, 28 | } -------------------------------------------------------------------------------- /packages/dependencies/iconv.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.17.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '8f74213b56238c85a50a5329f77e06198771e70dd9a739779f4c02f65d971313' }, ], }, 5 | { 'url' : 'https://fossies.org/linux/misc/libiconv-1.17.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '8f74213b56238c85a50a5329f77e06198771e70dd9a739779f4c02f65d971313' }, ], }, 6 | ], 7 | 'custom_cflag' : '-O2', 8 | # CFLAGS=-O2 9 | 'configure_options' : '{autoconf_prefix_options} --disable-nls --enable-extra-encodings', 10 | 'update_check' : { 'url' : 'https://ftp.gnu.org/pub/gnu/libiconv/?C=M;O=D', 'type' : 'httpindex', 'regex' : r'libiconv-(?P[\d.]+)\.tar\.gz' }, 11 | '_info' : { 'version' : '1.17', 'fancy_name' : 'libiconv' }, 12 | } -------------------------------------------------------------------------------- /packages/dependencies/intel_quicksync_mfx.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'do_not_bootstrap' : True, 4 | 'run_post_patch' : [ 5 | 'autoreconf -fiv', 6 | ], 7 | 'url' : 'https://github.com/lu-zero/mfx_dispatch.git', 8 | 'configure_options' : '{autoconf_prefix_options} --without-libva_drm --without-libva_x11', 9 | '_info' : { 'version' : None, 'fancy_name' : 'intel_quicksync_mfx' }, 10 | } -------------------------------------------------------------------------------- /packages/dependencies/json-c.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/json-c/json-c.git', 4 | 'depth_git': 0, 5 | # 'branch': 'json-c-0.15-20200726', 6 | 'conf_system' : 'cmake', 7 | #'custom_cflag' : '-O3', 8 | 'configure_options' : '. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DENABLE_RDRAND=ON -DENABLE_THREADING=ON -DDISABLE_WERROR=ON', 9 | '_info' : { 'version' : None, 'fancy_name' : 'json-c' }, 10 | } -------------------------------------------------------------------------------- /packages/dependencies/kvazaar.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/ultravideo/kvazaar.git', 4 | 'configure_options' : '{autoconf_prefix_options}', 5 | #'custom_cflag' : '-O3', 6 | 'patches' : [ 7 | ( 'kvazaar/0001-mingw-workaround.patch', '-p1' ), 8 | ], 9 | '_info' : { 'version' : None, 'fancy_name' : 'kvazaar' }, 10 | } -------------------------------------------------------------------------------- /packages/dependencies/lcms2.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/mm2/Little-CMS.git', 4 | #'custom_cflag' : '-O3', 5 | 'configure_options' : '{autoconf_prefix_options}', 6 | '_info' : { 'version' : None, 'fancy_name' : 'Little-CMS2' }, 7 | } -------------------------------------------------------------------------------- /packages/dependencies/lensfun.py: -------------------------------------------------------------------------------- 1 | 2 | #type:ignore 3 | { 4 | 'repo_type' : 'git', 5 | 'url' : 'https://github.com/lensfun/lensfun', 6 | 'do_not_git_update': True, 7 | 'conf_system' : 'cmake', 8 | 'source_subfolder' : '_build', 9 | 'run_post_patch' : [ 10 | 'sed -i.bak \'s/GLIB2_INCLUDE_DIRS/GLIB2_STATIC_INCLUDE_DIRS/\' "../CMakeLists.txt"', 11 | 'sed -i.bak \'s/GLIB2_LIBRARIES/GLIB2_STATIC_LIBRARIES/\' "../CMakeLists.txt"', 12 | 'sed -i.bak \'s/Libs: -L${{libdir}} -llensfun.*/Libs: -L${{libdir}} -llensfun -lstdc++/\' "../libs/lensfun/lensfun.pc.cmake"', 13 | ], 14 | 'patches':[ 15 | ('lensfun/0001-fix-mingw-building.patch', '-p1', '..'), 16 | ], 17 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DCMAKE_INSTALL_DATAROOTDIR={target_prefix}/share -DBUILD_DOC=0 -DBUILD_STATIC=1 -DBUILD_SHARED_LIBS=0 -DBUILD_TESTS=0 -DBUILD_LENSTOOL=0', 18 | 'depends_on': [ 'libpng','glib2' ], 19 | '_info' : { 'version' : None, 'fancy_name' : 'lensfun (library)' }, 20 | } -------------------------------------------------------------------------------- /packages/dependencies/leptonica.py: -------------------------------------------------------------------------------- 1 | #type: ignore 2 | { 3 | 'repo_type' : 'git', 4 | 'url' : 'https://github.com/DanBloomberg/leptonica.git', 5 | 'conf_system' : 'cmake', 6 | 'source_subfolder' : '_build', 7 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DSW_BUILD=0 -DBUILD_PROG=0 -DBUILD_SHARED_LIBS=0 -DSTATIC=1 -DLIBRARY_TYPE=STATIC -DCMAKE_BUILD_TYPE=Release', 8 | 'cflag_addition': '-DOPJ_STATIC', 9 | 'run_post_patch' : [ 10 | 'sed -i.bak \'s/Libs: -L${{libdir}} -l@leptonica_NAME@/Libs: -L${{libdir}} -l@leptonica_NAME@-@leptonica_VERSION@/\' ../lept.pc.cmake', 11 | ], 12 | 'run_post_install' : [ 13 | 'mv -v "{pkg_config_path}/lept_Release.pc" "{pkg_config_path}/lept.pc"', 14 | 'sed -i.bak \'s/Libs: -L${{libdir}} /Requires: libtiff-4 libpng libopenjp2 libjpeg libwebp\\nRequires.private: libtiff-4 libpng libopenjp2 libjpeg libwebp\\nLibs: -L${{libdir}} /\' "{pkg_config_path}/lept.pc"', 15 | 'sed -i \'s/Libs: -L${{libdir}} -lleptonica-\(.*\)$/Libs: -L${{libdir}} -lleptonica-\\1 -lgif/\' "{pkg_config_path}/lept.pc"', 16 | ], 17 | 'depends_on' : [ 'zlib', 'libopenjpeg', 'libpng', 'libwebp', 'dlfcn-win32', 'libjpeg-turbo', 'giflib', 'libtiff', ], 18 | '_info' : { 'version' : None, 'fancy_name' : 'tesseract' }, 19 | } -------------------------------------------------------------------------------- /packages/dependencies/libaom.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://aomedia.googlesource.com/aom', 4 | 'depth_git': 0, 5 | # 'branch': 'v3.1.2', 6 | 'conf_system' : 'cmake', 7 | 'source_subfolder' : 'build', 8 | 'configure_options' : 9 | '.. {cmake_prefix_options} ' 10 | '-DCMAKE_INSTALL_PREFIX={target_prefix} ' 11 | '-DBUILD_SHARED_LIBS=0 ' 12 | '-DENABLE_DOCS=0 ' 13 | '-DENABLE_TESTS=0 ' 14 | '-DENABLE_TOOLS=0 ' 15 | '-DENABLE_CCACHE=1 ' 16 | '-DCONFIG_LPF_MASK=1 ' 17 | '-DENABLE_EXAMPLES=0 ' 18 | '-DENABLE_TESTDATA=0 ' 19 | '-DCONFIG_AV1_DECODER=1 ' 20 | '-DCONFIG_AV1_ENCODER=1 ' 21 | '-DCONFIG_PIC=1 ' 22 | '-DCONFIG_SPATIAL_RESAMPLING=1 ' 23 | '-DENABLE_NASM=off ' # YASM is preferred (default) 24 | '-DCONFIG_STATIC=1 ' 25 | '-DCONFIG_SHARED=0' 26 | , 27 | 'depends_on' : [ 'libxml2' ], 28 | 'update_check' : { 'type' : 'git', }, 29 | '_info' : { 'version' : None, 'fancy_name' : 'libaom' }, 30 | } -------------------------------------------------------------------------------- /packages/dependencies/libass.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/libass/libass.git', 4 | 'configure_options' : '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static --enable-silent-rules --enable-fontconfig', 5 | 'env_exports' : { # 2020.06.19 6 | 'CFLAGS' : ' -DFRIBIDI_LIB_STATIC {original_cflags}', 7 | 'CXXFLAGS' : ' -DFRIBIDI_LIB_STATIC {original_cflags}', 8 | 'CPPFLAGS' : ' -DFRIBIDI_LIB_STATIC {original_cflags}', # 2020.06.20 per https://github.com/fribidi/fribidi/issues/146#issuecomment-646991416 9 | 'LDFLAGS' : ' -DFRIBIDI_LIB_STATIC {original_cflags}', 10 | }, 11 | 'run_post_install': [ 12 | 'sed -i.bak \'s/-lass -lm/-lass -lfribidi -lfreetype -lexpat -lm/\' "{pkg_config_path}/libass.pc"', #-lfontconfig # 2018.12.13 13 | ], 14 | 'depends_on' : [ 'expat', 'fontconfig', 'iconv', 'libfribidi'], 15 | 'update_check' : { 'type' : 'git', }, 16 | '_info' : { 'version' : 'git (master)', 'fancy_name' : 'libass' }, 17 | } -------------------------------------------------------------------------------- /packages/dependencies/libbluray.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'recursive_git' : True, 4 | 'url' : 'https://code.videolan.org/videolan/libbluray', 5 | 'configure_options' : '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static --disable-examples --disable-doxygen-doc --disable-bdjava-jar --enable-udf', #--without-libxml2 --without-fontconfig .. optional.. I guess 6 | 'patches' : [ 7 | ('libbluray/libbluray_git_remove_strtok_s.patch', '-p1'), 8 | ], 9 | #'run_post_install' : [ 10 | # 'sed -i.bak \'s/-lbluray.*$/-lbluray -lfreetype -lexpat -lz -lbz2 -lxml2 -lws2_32 -lgdi32 -liconv/\' "{pkg_config_path}/libbluray.pc"', # fix undefined reference to `xmlStrEqual' and co 11 | #], 12 | 'depends_on' : [ 13 | 'freetype', 'libcdio-paranoia' 14 | ], 15 | '_info' : { 'version' : None, 'fancy_name' : 'libbluray' }, 16 | } -------------------------------------------------------------------------------- /packages/dependencies/libcaca.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/cacalabs/libcaca.git', 4 | 'branch': 'main', 5 | #'custom_cflag' : '-O3', 6 | 'run_post_configure' : [ 7 | 'sed -i.bak "s/int vsnprintf/int vnsprintf_disabled/" "caca/string.c"', 8 | 'sed -i.bak "s/int vsnprintf/int vnsprintf_disabled/" "caca/figfont.c"', 9 | 'sed -i.bak "s/__declspec(dllexport)//g" cxx/caca++.h', 10 | 'sed -i.bak "s/__declspec(dllexport)//g" caca/caca.h', 11 | 'sed -i.bak "s/__declspec(dllexport)//g" caca/caca0.h', 12 | 'sed -i.bak "s/__declspec(dllimport)//g" caca/caca.h', 13 | 'sed -i.bak "s/__declspec(dllimport)//g" caca/caca0.h', 14 | ], 15 | 'run_post_install' : [ 16 | "sed -i.bak 's/-lcaca *$/-lcaca -lz/' \"{pkg_config_path}/caca.pc\"", 17 | ], 18 | 'configure_options' : '{autoconf_prefix_options} --libdir={target_prefix}/lib --disable-cxx --disable-csharp --disable-java --disable-python --disable-ruby --disable-imlib2 --disable-doc --disable-examples', 19 | '_info' : { 'version' : None, 'fancy_name' : 'libcaca' }, 20 | } -------------------------------------------------------------------------------- /packages/dependencies/libcdio-paranoia.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/rocky/libcdio-paranoia.git', 4 | 'configure_options' : '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static', 5 | #'custom_cflag' : '-O3', 6 | 'depends_on' : [ 7 | 'libcdio', 8 | ], 9 | '_info' : { 'version' : None, 'fancy_name' : 'libcdio-paranoia' }, 10 | } -------------------------------------------------------------------------------- /packages/dependencies/libcdio.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://git.savannah.gnu.org/git/libcdio.git', 4 | #'custom_cflag' : '-O3', 5 | 'configure_options' : '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static --disable-cddb --enable-cpp-progs', # --enable-maintainer-mode 6 | 'run_post_patch' : [ 7 | 'touch doc/version.texi', # took me far to long to come up with and find this workaround 8 | 'touch src/cd-info.1 src/cd-drive.1 src/iso-read.1 src/iso-info.1 src/cd-read.1', # ..... 9 | #'if [ ! -f "configure" ] ; then ./autogen.sh ; fi', 10 | #'make -C doc stamp-vti', # idk why it needs this... odd thing: https://lists.gnu.org/archive/html/libcdio-devel/2016-03/msg00007.html 11 | ], 12 | '_info' : { 'version' : None, 'fancy_name' : 'libcdio' }, 13 | } -------------------------------------------------------------------------------- /packages/dependencies/libdav1d.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://code.videolan.org/videolan/dav1d.git', 4 | 'conf_system' : 'meson', 5 | 'build_system' : 'ninja', 6 | 'rename_folder' : 'libdav1d_git', 7 | 'source_subfolder' : 'build', 8 | 'regex_replace': { #hacky but works, so who cares, for some reason libdav1d thinks we have POSIX_MEMALIGN.. maybe mingw or gcc bug, .. so we'll just force it to not define that we have it so it doesn't use it. 9 | 'post_patch': [ 10 | { 11 | 0: r'cdata.set\(\'HAVE_POSIX_MEMALIGN\', 1\)', 12 | 1: 'cdata.set(\'HAVE_ALIGNED_MALLOC\', 1)', 13 | 'in_file': '../meson.build' 14 | }, 15 | { 16 | 0: r'cdata.set\(\'HAVE_ALIGNED_MALLOC\', 1\)', 17 | 1: 'cdata.set(\'HAVE_ALIGNED_MALLOC\', 1)', 18 | 'in_file': '../meson.build' 19 | }, 20 | ], 21 | }, 22 | 'configure_options' : 23 | '--prefix={target_prefix} ' 24 | '--libdir={target_prefix}/lib ' 25 | '--default-library=static ' 26 | '--buildtype=plain ' 27 | '--backend=ninja ' 28 | '-Denable_tests=false ' 29 | '-Denable_tools=false ' 30 | '--buildtype=release ' 31 | '--cross-file={meson_env_file} ./ ..' 32 | , 33 | '_info' : { 'version' : None, 'fancy_name' : 'dav1d (library)' }, 34 | } -------------------------------------------------------------------------------- /packages/dependencies/libdl.py: -------------------------------------------------------------------------------- 1 | # Alias for dlfcn-win32 2 | { 3 | 'is_dep_inheriter' : True, 4 | 'depends_on' : [ 5 | 'dlfcn-win32', 6 | ] 7 | } -------------------------------------------------------------------------------- /packages/dependencies/libdovi.py: -------------------------------------------------------------------------------- 1 | #type: ignore 2 | { 3 | 'repo_type' : 'git', 4 | 'url' : 'https://github.com/quietvoid/dovi_tool.git', 5 | 'depth_git': 1, 6 | 'branch': "main", 7 | 'needs_configure' : False, 8 | 'needs_make_install' : False, 9 | 'build_system' : 'rust', 10 | 'cpu_count': '', 11 | 'build_options' : 12 | 'cinstall ' 13 | '--manifest-path ./dolby_vision/Cargo.toml ' 14 | '--prefix {target_prefix} ' 15 | '--target x86_64-pc-windows-gnu ' 16 | '--release ' 17 | '--library-type staticlib' 18 | , 19 | '_info' : { 'version' : None, 'fancy_name' : 'libdovi' }, 20 | } -------------------------------------------------------------------------------- /packages/dependencies/libdvdcss.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://code.videolan.org/videolan/libdvdcss.git', 4 | 'configure_options' : '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static --disable-doc', 5 | 'run_post_patch' : [ 6 | 'autoreconf -fiv', 7 | ], 8 | '_info' : { 'version' : None, 'fancy_name' : 'libdvdcss' }, 9 | } -------------------------------------------------------------------------------- /packages/dependencies/libdvdnav.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://code.videolan.org/videolan/libdvdnav.git', 4 | 'configure_options' : '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static --with-libdvdcss', 5 | 'depends_on' : [ 6 | 'libdvdread', 7 | ], 8 | 'run_post_patch' : [ 9 | 'autoreconf -fiv', 10 | ], 11 | '_info' : { 'version' : None, 'fancy_name' : 'libdvdnav' }, 12 | } -------------------------------------------------------------------------------- /packages/dependencies/libdvdread.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://code.videolan.org/videolan/libdvdread.git', 4 | 'configure_options' : '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static --with-libdvdcss', 5 | 'depends_on' : [ 6 | 'libdvdcss', 7 | ], 8 | 'run_post_patch' : [ 9 | 'autoreconf -fiv', 10 | ], 11 | 'run_post_install' : [ 12 | 'sed -i.bak \'s/-ldvdread/-ldvdread -ldvdcss/\' "{pkg_config_path}/dvdread.pc"', # fix undefined reference to `dvdcss_close' 13 | ], 14 | '_info' : { 'version' : None, 'fancy_name' : 'libdvdread' }, 15 | } -------------------------------------------------------------------------------- /packages/dependencies/libebur128.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/jiixyj/libebur128.git', 4 | 'configure_options' : '. {cmake_prefix_options} -DENABLE_INTERNAL_QUEUE_H:BOOL=ON -DCMAKE_AR={cross_prefix_full}ar', #not sure why it cries about AR 5 | 'conf_system' : 'cmake', 6 | 'run_post_patch' : [ 7 | 'sed -i.bak \'s/ SHARED / STATIC /\' ebur128/CMakeLists.txt', 8 | ], 9 | '_info' : { 'version' : None, 'fancy_name' : 'libebur128' }, 10 | } -------------------------------------------------------------------------------- /packages/dependencies/libepoxy.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/anholt/libepoxy.git', 4 | 'conf_system' : 'meson', 5 | 'build_system' : 'ninja', 6 | 'source_subfolder' : 'build', 7 | 'configure_options' : 8 | '--prefix={target_prefix} ' 9 | '--libdir={target_prefix}/lib ' 10 | '--default-library=static ' 11 | '--buildtype=plain ' 12 | '--backend=ninja ' 13 | '--buildtype=release ' 14 | '-Dtests=false ' 15 | '-Ddocs=false ' 16 | '--cross-file={meson_env_file} ./ ..' 17 | , 18 | 'patches' : [ 19 | # ( 'https://github.com/anholt/libepoxy/pull/265.patch', '-p1', '..' ), 20 | ( 'https://github.com/anholt/libepoxy/pull/266.patch', '-p1', '..' ), 21 | ], 22 | '_info' : { 'version' : None, 'fancy_name' : 'libepoxy' }, 23 | } -------------------------------------------------------------------------------- /packages/dependencies/libffi.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | #'custom_cflag' : '-O3', 4 | 'url': 'https://github.com/libffi/libffi.git', 5 | 'configure_options': '{autoconf_prefix_options} --disable-doc', 6 | '_info' : { 'version' : '3.3', 'fancy_name' : 'libffi' }, 7 | } -------------------------------------------------------------------------------- /packages/dependencies/libffmpeg.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | # 'depth_git': 1, 4 | # 'do_not_git_update': True, 5 | 'url' : 'git://git.ffmpeg.org/ffmpeg.git', 6 | 'rename_folder' : 'libffmpeg_git', 7 | 'configure_options' : '--sysroot={target_sub_prefix} !VAR(ffmpeg_config)VAR! !VAR(ffmpeg_nonfree)VAR! --prefix={target_prefix} --disable-sdl2 --disable-shared --enable-static --disable-doc --disable-programs --disable-doc --disable-programs --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages', 8 | 'depends_on' : [ 'ffmpeg_depends_min', 'ffmpeg_depends_nonfree', ], 9 | # 'regex_replace': { 10 | # 'post_install': [ 11 | # { 12 | # 0: r'-lOpenCL', 13 | # 1: r'-l:libOpenCL.dll.a', 14 | # 'in_file': '{pkg_config_path}/libavfilter.pc', 15 | # }, 16 | # { 17 | # 0: r'-lOpenCL', 18 | # 1: r'-l:libOpenCL.dll.a', 19 | # 'in_file': '{pkg_config_path}/libavutil.pc', 20 | # }, 21 | # ] 22 | # }, 23 | 'env_exports' : { 24 | 'OPENAL_LIBS' : '-lOpenAL32 -lstdc++ -lwinmm -lole32', 25 | }, 26 | '_info' : { 'version' : None, 'fancy_name' : 'FFmpeg (library)' }, 27 | } -------------------------------------------------------------------------------- /packages/dependencies/libffmpeg_extra.py: -------------------------------------------------------------------------------- 1 | #type: ignore 2 | { 3 | 'repo_type' : 'git', 4 | 'depth_git': 0, 5 | 'url' : 'git://git.ffmpeg.org/ffmpeg.git', 6 | 'rename_folder' : 'libffmpeg_extra_git', 7 | 'configure_options' : '--sysroot={target_sub_prefix} !VAR(ffmpeg_config)VAR! !VAR(ffmpeg_extra_config)VAR! !VAR(ffmpeg_nonfree)VAR! --prefix={target_prefix} --disable-sdl2 --disable-shared --enable-static --disable-doc --disable-programs --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages', 8 | 'depends_on' : [ 'ffmpeg_depends_min', 'ffmpeg_depends_extra', 'ffmpeg_depends_nonfree', ], 9 | 10 | # 'do_not_git_update': True, 11 | # 'regex_replace': { 12 | # 'post_install': [ 13 | # { 14 | # 0: r'-lOpenCL', 15 | # 1: r'-l:libOpenCL.dll.a', 16 | # 'in_file': '{pkg_config_path}/libavfilter.pc', 17 | # }, 18 | # { 19 | # 0: r'-lOpenCL', 20 | # 1: r'-l:libOpenCL.dll.a', 21 | # 'in_file': '{pkg_config_path}/libavutil.pc', 22 | # }, 23 | # ] 24 | # }, 25 | 'env_exports' : { 26 | 'OPENAL_LIBS' : '-lOpenAL32 -lstdc++ -lwinmm -lole32', 27 | }, 28 | '_info' : { 'version' : None, 'fancy_name' : 'FFmpeg (library, extra)' }, 29 | } -------------------------------------------------------------------------------- /packages/dependencies/libfile.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/file/file.git', 4 | # 'branch' : '24c9c086cd7c55b7b0a003a145b32466468e2608', 5 | 'rename_folder' : 'libfile.git', 6 | 'patches' : [ 7 | ( 'libfile/file-win32.patch', '-p1' ), 8 | ], 9 | 'configure_options' : '{autoconf_prefix_options} --enable-fsect-man5', 10 | 'depends_on' : [ 'mingw-libgnurx' ], # ,'libfile_local' ], 11 | 'env_exports' : { 'TARGET_CFLAGS' : '{original_cflags}' }, 12 | 'run_post_patch' : [ 13 | 'sed -i.bak "s/#ifdef FIONREAD/#ifdef __linux__ /" src/seccomp.c', 14 | 'sed -i.bak "s/#ifdef FIONREAD/#ifdef __linux__ /" src/compress.c', 15 | 'autoreconf -fiv' 16 | ], 17 | 'flipped_path' : True, 18 | 'update_check' : { 'type' : 'git', }, 19 | '_info' : { 'version' : None, 'fancy_name' : 'file' }, 20 | } -------------------------------------------------------------------------------- /packages/dependencies/libfile_local.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | # 'branch' : '24c9c086cd7c55b7b0a003a145b32466468e2608', 4 | 'url' : 'https://github.com/file/file.git', 5 | 'rename_folder' : 'libfile_local.git', 6 | 'configure_options' : '--prefix={target_prefix} --disable-shared --enable-static --enable-fsect-man5', 7 | 'needs_make' : False, 8 | 'env_exports' : { 'TARGET_CFLAGS' : '{original_cflags}' }, 9 | 'run_post_patch' : [ 'autoreconf -fiv' ], 10 | 'update_check' : { 'type' : 'git', }, 11 | '_info' : { 'version' : None, 'fancy_name' : 'libfile (bootstrap)' }, 12 | } -------------------------------------------------------------------------------- /packages/dependencies/libflac.py: -------------------------------------------------------------------------------- 1 | { 2 | # "_already_built": True, 3 | 'repo_type' : 'git', 4 | 'url' : 'https://github.com/xiph/flac.git', 5 | 'conf_system' : 'cmake', 6 | 'source_subfolder' : '_build', 7 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=OFF -DBUILD_PROGRAMS=OFF -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DINSTALL_MANPAGES=OFF -DVERSION=1.3.3 -DCMAKE_BUILD_TYPE=Release', 8 | 'patches': [ 9 | # ('flac/0001-mingw-fix.patch', '-p1', '..'), 10 | #('flac/01.patch', '-p1', '..'), 11 | ], 12 | # 'env_exports' : { 13 | # 'LIBS' : '-lssp', 14 | # }, 15 | #'custom_cflag' : '-O3', 16 | 'regex_replace': { 17 | 'post_patch': [ 18 | { 19 | 0: r'add_subdirectory\("microbench"\)', 20 | 'in_file': '../CMakeLists.txt' 21 | }, 22 | # { 23 | # 0: r'add_definitions\(-DHAVE_CONFIG_H\)', 24 | # 1: r'add_definitions\(-DHAVE_CONFIG_H -D_FORTIFY_SOURCE=0\)', 25 | # 'in_file': '../src/CMakeLists.txt' 26 | # }, 27 | ], 28 | }, 29 | 'depends_on' : [ 30 | 'libogg', 31 | ], 32 | '_info' : { 'version' : None, 'fancy_name' : 'flac (library)' }, 33 | } -------------------------------------------------------------------------------- /packages/dependencies/libfribidi.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/fribidi/fribidi.git', 4 | #'depth_git': 0, 5 | #'branch': '85eb863a42bcf8636d1d865625ebfc3b4eb36577', # 2020.06.19 after 85eb863a42bcf8636d1d865625ebfc3b4eb36577 fribidi builds but ffmpeg can't find it 6 | 'conf_system' : 'meson', 7 | 'build_system' : 'ninja', 8 | 'source_subfolder' : 'build', 9 | 'env_exports' : { # 2020.06.19 10 | 'CFLAGS' : ' -DFRIBIDI_LIB_STATIC {original_cflags}', 11 | 'CXXFLAGS' : ' -DFRIBIDI_LIB_STATIC {original_cflags}', 12 | 'CPPFLAGS' : ' -DFRIBIDI_LIB_STATIC {original_cflags}', # 2020.06.20 per https://github.com/fribidi/fribidi/issues/146#issuecomment-646991416 13 | 'LDFLAGS' : ' -DFRIBIDI_LIB_STATIC {original_cflags}', 14 | }, 15 | 'configure_options' : 16 | '--prefix={target_prefix} ' 17 | '--libdir={target_prefix}/lib ' 18 | '--default-library=static ' 19 | '--buildtype=plain ' 20 | '--backend=ninja ' 21 | '-Ddocs=false ' 22 | '-Dbin=false ' 23 | '-Dtests=false ' # 2020.07.07 per MABS 24 | #'-DFRIBIDI_LIB_STATIC=true ' # 2020.06.23 comment it out 25 | '--buildtype=release ' 26 | '--cross-file={meson_env_file} ./ ..' 27 | , 28 | 'update_check' : { 'type' : 'git', }, 29 | '_info' : { 'version' : 'git (master)', 'fancy_name' : 'libfribidi' }, 30 | } -------------------------------------------------------------------------------- /packages/dependencies/libgme_game_music_emu.py: -------------------------------------------------------------------------------- 1 | #type: ignore 2 | { 3 | 'repo_type' : 'git', 4 | 'depth_git': 0, 5 | 'url' : 'https://bitbucket.org/mpyne/game-music-emu.git', 6 | # 'branch' : '97527b20a40e6a8ddc272e0c503fea254a0b8eb2', 7 | 'conf_system' : 'cmake', 8 | 'configure_options' : '. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=OFF -DENABLE_UBSAN=OFF', 9 | 'regex_replace': { 10 | 'post_patch': [ 11 | { 12 | 0: r'add_subdirectory\(player EXCLUDE_FROM_ALL\)', 13 | 'in_file': 'CMakeLists.txt' 14 | }, 15 | { 16 | 0: r'add_subdirectory\(demo EXCLUDE_FROM_ALL\)', 17 | 'in_file': 'CMakeLists.txt' 18 | } 19 | 20 | ], 21 | 22 | }, 23 | '_info' : { 'version' : None, 'fancy_name' : 'game-music-emu' }, 24 | } -------------------------------------------------------------------------------- /packages/dependencies/libgsm.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://www.quut.com/gsm/gsm-1.0.22.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'f0072e91f6bb85a878b2f6dbf4a0b7c850c4deb8049d554c65340b3bf69df0ac' }, ], }, 5 | ], 6 | 'folder_name' : 'gsm-1.0-pl22', 7 | 'patches' : [ 8 | ('gsm/gsm-1.0.16.patch', '-p0'), 9 | ('gsm/gsm-1.0.16_Makefile.patch', '-p0'), # toast fails. so lets just patch it out of the makefile.. 10 | ], 11 | 'needs_configure' : False, 12 | 'needs_make_install' : False, 13 | 'run_post_build' : [ 14 | 'cp -fv lib/libgsm.a {target_prefix}/lib', 15 | 'mkdir -pv {target_prefix}/include/gsm', 16 | 'cp -fv inc/gsm.h {target_prefix}/include/gsm', 17 | ], 18 | #'cpu_count' : '1', 19 | 'build_options' : '{make_prefix_options} INSTALL_ROOT={target_prefix}', 20 | 'update_check' : { 'url' : 'http://www.quut.com/gsm', 'type' : 'httpregex', 'regex' : r'sourcecode<\/a>' }, 21 | '_info' : { 'version' : '1.0.22', 'fancy_name' : 'gsm' }, 22 | } -------------------------------------------------------------------------------- /packages/dependencies/libilbc.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/dekkers/libilbc.git', 4 | 'branch': 'main', 5 | 'conf_system' : 'cmake', 6 | 'recursive_git': True, 7 | 'source_subfolder' : '_build', 8 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Release', 9 | '_info' : { 'version' : None, 'fancy_name' : 'libilbc' }, 10 | } -------------------------------------------------------------------------------- /packages/dependencies/libjpeg-turbo.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/libjpeg-turbo/libjpeg-turbo.git', 4 | 'branch': 'main', 5 | #'custom_cflag' : '-O3', 6 | 'conf_system' : 'cmake', 7 | 'configure_options' : '. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DENABLE_STATIC=ON -DENABLE_SHARED=OFF -DCMAKE_BUILD_TYPE=Release', 8 | 'patches' : [ 9 | { 'file': 'libjpeg-turbo/0001-libjpeg-turbo-git-mingw-compat.patch', 'cmd': 'patch -p1 <'}, 10 | ('libjpeg-turbo/0002-libjpeg-turbo-git-libmng-compat.patch', '-p1'), 11 | ], 12 | '_info' : { 'version' : None, 'fancy_name' : 'libjpeg-turbo' }, 13 | } -------------------------------------------------------------------------------- /packages/dependencies/liblame.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://sourceforge.net/projects/lame/files/lame/3.100/lame-3.100.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e' }, ], }, 5 | { 'url' : 'https://fossies.org/linux/misc/lame-3.100.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e' }, ], }, 6 | ], 7 | 'configure_options' : '{autoconf_prefix_options} --enable-nasm --disable-frontend', 8 | 'update_check' : { 'url' : 'https://sourceforge.net/projects/lame/files/lame/', 'type' : 'sourceforge', }, 9 | '_info' : { 'version' : '3.100', 'fancy_name' : 'LAME (library)' }, 10 | } -------------------------------------------------------------------------------- /packages/dependencies/libmodplug.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url': 'https://github.com/Konstanty/libmodplug.git', 4 | 'conf_system' : 'cmake', 5 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix}', 6 | 'source_subfolder': '_build', 7 | # 'patches': [ 8 | # ('modplug/0001-modplug-mingw-workaround.patch', '-p1', '..'), # to avoid setting -DLIBMODPLUG_STATIC 9 | # ], 10 | 'regex_replace': { 11 | 'post_patch': [ 12 | { 13 | # Will they ever realise that WIN32 is True on MinGW as well where we need pkg-config files and so on? 14 | # Use MSVC or a combination of MINGW/WINDOWS/WIN32 15 | 0: r'if \(NOT WIN32\)', 16 | 1: r'if (NOT MSVC)', 17 | 'in_file': '../CMakeLists.txt' 18 | }, 19 | ], 20 | }, 21 | '_info' : { 'version' : 'git (master)', 'fancy_name' : 'libmodplug' }, 22 | } -------------------------------------------------------------------------------- /packages/dependencies/libmysofa.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/hoene/libmysofa', 4 | 'branch' : 'main', 5 | 'source_subfolder' : '_build', 6 | 'conf_system' : 'cmake', 7 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS:bool=off -DBUILD_TESTS=no', 8 | '_info' : { 'version' : None, 'fancy_name' : 'libmysofa' }, 9 | } -------------------------------------------------------------------------------- /packages/dependencies/libnettle.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://ftp.gnu.org/gnu/nettle/nettle-3.8.1.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '364f3e2b77cd7dcde83fd7c45219c834e54b0c75e428b6f894a23d12dd41cbfe' }, ], }, 5 | { 'url' : 'https://fossies.org/linux/privat/nettle-3.8.1.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '364f3e2b77cd7dcde83fd7c45219c834e54b0c75e428b6f894a23d12dd41cbfe' }, ], }, 6 | ], 7 | 'configure_options' : '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static --disable-openssl --disable-mini-gmp', 8 | #'custom_cflag' : '-O3', 9 | 'depends_on' : [ 10 | 'gmp', 11 | ], 12 | 'update_check' : { 'url' : 'https://ftp.gnu.org/gnu/nettle/?C=M;O=D', 'type' : 'httpindex', 'regex' : r'nettle-(?P[\d.]+)\.tar\.gz' }, 13 | '_info' : { 'version' : '3.8.1', 'fancy_name' : 'nettle' }, 14 | } -------------------------------------------------------------------------------- /packages/dependencies/libogg.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/xiph/ogg.git', 4 | 'conf_system' : 'cmake', 5 | #'custom_cflag' : '-O3', 6 | 'source_subfolder' : '_build', 7 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Release', 8 | '_info' : { 'version' : None, 'fancy_name' : 'ogg' }, 9 | } -------------------------------------------------------------------------------- /packages/dependencies/libopenh264.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/cisco/openh264.git', 4 | 'patches' : [ 5 | ('openh264/0001-remove-fma3-call.patch','-p1'), 6 | ], 7 | #'custom_cflag' : '-O3', 8 | 'needs_configure' : False, 9 | 'build_options' : '{make_prefix_options} OS=mingw_nt ARCH={bit_name} ASM=yasm', 10 | 'install_options' : '{make_prefix_options} OS=mingw_nt', 11 | 'install_target' : 'install-static', 12 | '_info' : { 'version' : None, 'fancy_name' : 'openh264' }, 13 | } -------------------------------------------------------------------------------- /packages/dependencies/libopenjpeg.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/uclouvain/openjpeg.git', 4 | 'conf_system' : 'cmake', 5 | #'custom_cflag' : '-O3', 6 | 'source_subfolder' : '_build', 7 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS:bool=off', 8 | 'depends_on' : [ 9 | 'zlib', 'libpng', 'libtiff', 'lcms2' 10 | ], 11 | # 'patches' : [ 12 | # ( 'openjpeg2/use-PkgConfig-for-third-party-libraries.patch', '-p1', '..' ), 13 | # ], 14 | '_info' : { 'version' : None, 'fancy_name' : 'openjpeg' }, 15 | } -------------------------------------------------------------------------------- /packages/dependencies/libopus.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/xiph/opus.git', 4 | 'depth_git': 0, 5 | 'strip_cflags': ['-ffast-math', ], 6 | 'conf_system' : 'cmake', 7 | #'custom_cflag' : '-O3', 8 | 'source_subfolder' : '_build', 9 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DOPUS_X86_MAY_HAVE_SSE=1 -DOPUS_X86_MAY_HAVE_SSE2=1 -DOPUS_X86_MAY_HAVE_SSE4_1=1 -DOPUS_X86_MAY_HAVE_AVX=1 -DOPUS_X86_PRESUME_SSE=1 -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=0 -DBUILD_TESTING=0 -DOPUS_CUSTOM_MODES=1 -DOPUS_BUILD_PROGRAMS=0 -DOPUS_INSTALL_PKG_CONFIG_MODULE=1', 10 | 'patches' : [ 11 | # ('https://github.com/DeadSix27/opus/commit/505d0cf2dc259b94c7d3b52b2df676cb02d38923.patch', '-p1', '..'), 12 | # ('https://github.com/DeadSix27/opus/commit/17361170bdf8db1a86172fee24ed99512c1d0f68.patch', '-p1', '..'), 13 | # ('opus/opus_git_strip_declspec.patch', '-p1'), 14 | ], 15 | 'regex_replace': { 16 | 'post_install': [ 17 | { 18 | 0: r'^(Libs: -L).+ (-lopus)([\n\r\s]+)?$', 19 | 1: r'\1${{libdir}} \2 -lssp\3', 20 | 'in_file': '{pkg_config_path}/opus.pc' 21 | }, 22 | ], 23 | }, 24 | '_info' : { 'version' : None, 'fancy_name' : 'opus' }, 25 | } -------------------------------------------------------------------------------- /packages/dependencies/libopusenc.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/xiph/libopusenc.git', 4 | 'depth_git': 0, 5 | #'custom_cflag' : '-O3', 6 | 'configure_options' : '{autoconf_prefix_options}', 7 | 'depends_on' : [ 8 | 'libopus', 9 | ], 10 | '_info' : { 'version' : None, 'fancy_name' : 'libopusenc' }, 11 | } -------------------------------------------------------------------------------- /packages/dependencies/libpng.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://sourceforge.net/projects/libpng/files/libpng16/1.6.39/libpng-1.6.39.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '1f4696ce70b4ee5f85f1e1623dc1229b210029fa4b7aee573df3e2ba7b036937' }, ], }, 5 | { 'url' : 'https://fossies.org/linux/misc/libpng-1.6.39.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '1f4696ce70b4ee5f85f1e1623dc1229b210029fa4b7aee573df3e2ba7b036937' }, ], }, 6 | ], 7 | # 'custom_cflag' : '-fno-asynchronous-unwind-tables', 8 | 'conf_system' : 'cmake', 9 | #'custom_cflag' : '-O3', 10 | 'configure_options' : '. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DPNG_TESTS=OFF -DPNG_SHARED=OFF -DPNG_STATIC=ON', 11 | 'patches' : [ 12 | ('libpng/libpng-1.6.39-apng.patch', '-p1'), 13 | ], 14 | 'depends_on' : [ 'zlib', ], 15 | 'update_check' : { 'url' : 'https://sourceforge.net/projects/libpng/files/libpng16/', 'type' : 'sourceforge', }, 16 | '_info' : { 'version' : '1.6.39', 'fancy_name' : 'libpng' }, 17 | } -------------------------------------------------------------------------------- /packages/dependencies/libpsl.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/rockdaboot/libpsl.git', 4 | 'configure_options' : '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static --disable-runtime', 5 | '_info' : { 'version' : None, 'fancy_name' : 'libpsl' }, 6 | } -------------------------------------------------------------------------------- /packages/dependencies/libressl.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/libressl-portable/portable.git', 4 | 'folder_name' : 'libressl_git', 5 | 'depth_git': 0, 6 | # 'branch': 'v3.7.0', 7 | 'configure_options' : '{autoconf_prefix_options} --disable-hardening', 8 | # 'patches' : [ 9 | # ( 'https://raw.githubusercontent.com/shinchiro/mpv-winbuild-cmake/master/packages/libressl-0001-ignore-compiling-test-and-man-module.patch', '-p1' ), 10 | # ( 'https://raw.githubusercontent.com/shinchiro/mpv-winbuild-cmake/master/packages/libressl-0002-tls-revert-Add-tls-tls_keypair.c-commit.patch', '-p1' ), 11 | # ( 'https://raw.githubusercontent.com/DeadSix27/misc_patches/master/libressl/libressl-0001-rename-timegm-for-mingw-compat.patch', '-p1' ), 12 | # ], 13 | '_info' : { 'version' : None, 'fancy_name' : 'libressl' }, 14 | } -------------------------------------------------------------------------------- /packages/dependencies/libsamplerate.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/erikd/libsamplerate.git', 4 | 'conf_system' : 'cmake', 5 | #'custom_cflag' : '-O3', 6 | 'source_subfolder' : '_build', 7 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DLIBSAMPLERATE_EXAMPLES=OFF -DLIBSAMPLERATE_TESTS=OFF -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Release', 8 | 'depends_on' : ['libflac', 'fftw', 'libopus',], 9 | '_info' : { 'version' : None, 'fancy_name' : 'libsamplerate' }, 10 | } -------------------------------------------------------------------------------- /packages/dependencies/libsnappy.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/google/snappy.git', 4 | 'depth_git': 0, 5 | 'branch' : '1.1.10', 6 | 'conf_system' : 'cmake', 7 | 'configure_options' : '. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=OFF -DSNAPPY_BUILD_BENCHMARKS=OFF -DSNAPPY_REQUIRE_AVX2=ON -DSNAPPY_REQUIRE_AVX=ON -DBUILD_BINARY=OFF -DSNAPPY_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release', 8 | 'run_post_install' : [ 9 | 'rm -vf {target_prefix}/lib/libsnappy.dll.a', 10 | ], 11 | '_info' : { 'version' : None, 'fancy_name' : 'libsnappy' }, 12 | } -------------------------------------------------------------------------------- /packages/dependencies/libsndfile.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/erikd/libsndfile.git', 4 | 'conf_system' : 'cmake', 5 | 'source_subfolder' : '_build', 6 | #'custom_cflag' : '-O3', 7 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=OFF -DBUILD_PROGRAMS=OFF -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DENABLE_BOW_DOCS=OFF -DENABLE_STATIC_RUNTIME=ON -DCMAKE_BUILD_TYPE=Release', 8 | 'depends_on' : [ 'libogg', 'libvorbis', 'libflac', 'libsamplerate', 'libopus', 'libspeex' ], 9 | # 'run_post_install' : [ # -lspeex 10 | # 'sed -i.bak \'s/Libs: -L${{libdir}} -lsndfile/Libs: -L${{libdir}} -lsndfile -lopus -lFLAC -lvorbis -lvorbisenc -logg/\' "{pkg_config_path}/sndfile.pc"', # -lssp 11 | # ], 12 | 13 | 'env_exports' : { # 2020.06.19 14 | 'CFLAGS' : ' -DFLAC__NO_DLL {original_cflags}', 15 | 'CXXFLAGS' : ' -DFLAC__NO_DLL {original_cflags}', 16 | 'CPPFLAGS' : ' -DFLAC__NO_DLL {original_cflags}', # 2020.06.20 per https://github.com/fribidi/fribidi/issues/146#issuecomment-646991416 17 | 'LDFLAGS' : ' -DFLAC__NO_DLL {original_cflags}', 18 | }, 19 | 20 | 'regex_replace': { 21 | 'post_install': [ 22 | { 23 | 0: r'^Requires:([\n\r\s]+)?$', 24 | 1: r'Requires: opus flac vorbis vorbisenc ogg speex\1', 25 | 'in_file': '{pkg_config_path}/sndfile.pc' 26 | }, 27 | ], 28 | }, 29 | 30 | '_info' : { 'version' : None, 'fancy_name' : 'libsndfile' }, 31 | } -------------------------------------------------------------------------------- /packages/dependencies/libsoxr.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://download.videolan.org/contrib/soxr/soxr-0.1.3-Source.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'b111c15fdc8c029989330ff559184198c161100a59312f5dc19ddeb9b5a15889' }, ], }, 5 | { 'url' : 'https://sourceforge.net/projects/soxr/files/soxr-0.1.3-Source.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'b111c15fdc8c029989330ff559184198c161100a59312f5dc19ddeb9b5a15889' }, ], }, 6 | ], 7 | 'conf_system' : 'cmake', 8 | 'configure_options' : '. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DCMAKE_BUILD_TYPE=Release -DWITH_LSR_BINDINGS:bool=ON -DBUILD_LSR_TESTS:bool=OFF -DBUILD_EXAMPLES:bool=OFF -DBUILD_SHARED_LIBS:bool=off -DBUILD_TESTS:BOOL=OFF -DCMAKE_AR={cross_prefix_full}ar', #not sure why it cries about AR 9 | 'update_check' : { 'url' : 'https://sourceforge.net/projects/soxr/files/', 'type' : 'sourceforge', 'regex' : r'soxr-(?P[\d.]+)-Source\.tar\.xz' }, 10 | '_info' : { 'version' : '0.1.3', 'fancy_name' : 'soxr' }, 11 | } -------------------------------------------------------------------------------- /packages/dependencies/libspeex.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', #"LDFLAGS=-lwinmm" 3 | 'url' : 'https://github.com/xiph/speex.git', 4 | 'configure_options' : '{autoconf_prefix_options}', 5 | #'custom_cflag' : '-O3', 6 | 'depends_on' : [ 'libogg', 'libspeexdsp', ], 7 | '_info' : { 'version' : None, 'fancy_name' : 'speex' }, 8 | } -------------------------------------------------------------------------------- /packages/dependencies/libspeexdsp.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/xiph/speexdsp.git', 4 | 'run_post_patch' : [ 'autoreconf -fiv', ], 5 | #'custom_cflag' : '-O3', 6 | 'configure_options' : '{autoconf_prefix_options}', 7 | '_info' : { 'version' : None, 'fancy_name' : 'speexdsp' }, 8 | } -------------------------------------------------------------------------------- /packages/dependencies/libssh2.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/libssh2/libssh2.git', 4 | 'configure_options' : '{autoconf_prefix_options} --disable-examples-build ', 5 | 'depends_on' : [ 6 | 'zlib', #'libressl' 7 | ], 8 | 'env_exports' : { 9 | 'LIBS' : '-lcrypt32' # Otherwise: libcrypto.a(e_capi.o):e_capi.c:(.text+0x476d): undefined reference to `__imp_CertFreeCertificateContext' 10 | }, 11 | '_info' : { 'version' : None, 'fancy_name' : 'libssh2' }, 12 | } -------------------------------------------------------------------------------- /packages/dependencies/libtheora.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/xiph/theora.git', 4 | 'patches' : [ 5 | ('theora/theora_remove_rint_1.2.0alpha1.patch', '-p1'), 6 | ], 7 | 'configure_options' : '{autoconf_prefix_options} --disable-doc --disable-spec --disable-oggtest --disable-vorbistest --disable-examples', 8 | '_info' : { 'version' : None, 'fancy_name' : 'theora' }, 9 | } -------------------------------------------------------------------------------- /packages/dependencies/libtiff.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://download.osgeo.org/libtiff/tiff-4.5.0.tar.xz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'dafac979c5e7b6c650025569c5a4e720995ba5f17bc17e6276d1f12427be267c' }, ], }, 5 | { 'url' : 'https://fossies.org/linux/misc/tiff-4.5.0.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'dafac979c5e7b6c650025569c5a4e720995ba5f17bc17e6276d1f12427be267c' }, ], }, 6 | ], 7 | #'custom_cflag' : '-O3', 8 | 'conf_system' : 'cmake', 9 | 'source_subfolder' : '_build', 10 | 'configure_options' : '.. {cmake_prefix_options} -Dtiff-tools=OFF -Dtiff-docs=OFF -Dtiff-contrib=OFF -Dtiff-tests=OFF -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Release', 11 | 'patches' : [ 12 | # ('tiff1.patch', '-p1', ".."), 13 | ], 14 | 'regex_replace': { 15 | 'post_install': [ 16 | { 17 | 0: r'Libs: -L[^\n]+', 18 | 1: r'Libs: -L${{libdir}} -ltiff -lwebp -llzma -ljpeg -lz', 19 | 'in_file': '{pkg_config_path}/libtiff-4.pc' 20 | } 21 | ] 22 | }, 23 | 'depends_on' : [ 24 | 'zlib', 'libjpeg-turbo', 'libwebp' 25 | ], 26 | 'update_check' : { 'url' : 'https://download.osgeo.org/libtiff/?C=M;O=D', 'type' : 'httpindex', 'regex' : r'tiff-(?P[\d.]+)\.tar\.gz' }, 27 | '_info' : { 'version' : '4.5.0', 'fancy_name' : 'libtiff' }, 28 | } -------------------------------------------------------------------------------- /packages/dependencies/libvorbis.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/xiph/vorbis.git', 4 | 'conf_system' : 'cmake', 5 | 'source_subfolder' : '_build', 6 | # 'patches' : [ 7 | # ('https://github.com/xiph/vorbis/pull/62.patch', '-p1', '..'), # temporary; I submitted that patch, I assume it'll get merged soon. 8 | # ], 9 | #'custom_cflag' : '-O3', 10 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Release', 11 | 'regex_replace': { 12 | 'post_install': [ 13 | # { 14 | # 0: r'Libs: -L${{libdir}} -lvorbisenc[^\n]+', 15 | # 1: r'Libs: -L${{libdir}} -lvorbisenc -lvorbis -logg', 16 | # 'in_file': '{pkg_config_path}/vorbisenc.pc' 17 | # }, 18 | # { 19 | # 0: r'Libs: -L${{libdir}} -lvorbis[^\n]+', 20 | # 1: r'Libs: -L${{libdir}} -lvorbis -logg', 21 | # 'in_file': '{pkg_config_path}/vorbis.pc' 22 | # } 23 | { 24 | 0: r'Requires\.private:', 25 | 1: r'Requires:', 26 | 'in_file': '{pkg_config_path}/vorbisenc.pc' 27 | }, 28 | { 29 | 0: r'Requires\.private:', 30 | 1: r'Requires:', 31 | 'in_file': '{pkg_config_path}/vorbis.pc' 32 | }, 33 | ] 34 | }, 35 | 'depends_on': ['libogg',], 36 | '_info' : { 'version' : None, 'fancy_name' : 'vorbis' }, 37 | } -------------------------------------------------------------------------------- /packages/dependencies/libvpx.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://chromium.googlesource.com/webm/libvpx', 4 | 'branch': 'main', 5 | 'configure_options' : 6 | '--target={bit_name2}-{bit_name_win}-gcc ' 7 | '--prefix={target_prefix} --disable-shared ' 8 | '--enable-static --enable-webm-io --enable-libyuv --enable-vp9 ' 9 | '--enable-vp8 --enable-runtime-cpu-detect --enable-postproc ' 10 | '--enable-vp9-highbitdepth --enable-vp9-postproc --enable-coefficient-range-checking --enable-postproc-visualizer ' 11 | '--enable-error-concealment --enable-better-hw-compatibility ' 12 | '--enable-multi-res-encoding --enable-vp9-temporal-denoising ' 13 | '--disable-tools --disable-docs --disable-examples --disable-install-docs --disable-unit-tests --disable-decode-perf-tests --disable-encode-perf-tests --as=yasm' 14 | , 15 | #'custom_cflag' : '-O3', 16 | 'env_exports' : { 17 | 'CROSS' : '{cross_prefix_bare}', 18 | }, 19 | 'cflag_addition' : '-fno-asynchronous-unwind-tables', 20 | 'patches' : [ 21 | ( 'vpx/vpx_160_semaphore.patch', '-p1' ), 22 | ], 23 | '_info' : { 'version' : None, 'fancy_name' : 'libvpx' }, 24 | } -------------------------------------------------------------------------------- /packages/dependencies/libx264.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://code.videolan.org/videolan/x264.git', 4 | 'rename_folder' : 'libx264_git', 5 | 'configure_options' : '--host={target_host} --prefix={target_prefix} --enable-static --cross-prefix={cross_prefix_bare} --enable-strip --disable-lavf --disable-cli', 6 | '_info' : { 'version' : None, 'fancy_name' : 'x264 (library)' }, 7 | } -------------------------------------------------------------------------------- /packages/dependencies/libx265.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'mercurial', 3 | 'url' : 'http://hg.videolan.org/x265/', 4 | 'rename_folder' : 'libx265_hg', 5 | 'source_subfolder' : '_build', 6 | 'configure_options' : 7 | '../source {cmake_prefix_options} ' 8 | '-DCMAKE_INSTALL_PREFIX={target_prefix} ' 9 | '-DENABLE_ASSEMBLY=ON ' 10 | '-DENABLE_CLI:BOOL=OFF ' 11 | '-DENABLE_SHARED=OFF ' 12 | '-DCMAKE_AR={cross_prefix_full}ar' 13 | , 14 | 'conf_system' : 'cmake', 15 | 'depends_on' : [ 'libxml2' ], 16 | 'run_post_install' : [ 17 | 'sed -i.bak \'s|-lmingwex||g\' "{pkg_config_path}/x265.pc"', 18 | ], 19 | '_info' : { 'version' : None, 'fancy_name' : 'x265 (library)' }, 20 | } -------------------------------------------------------------------------------- /packages/dependencies/libx265_multibit.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'mercurial', 3 | 'url' : 'http://hg.videolan.org/x265/', 4 | 'rename_folder' : 'libx265_hg_multibit', 5 | 'source_subfolder' : '_build', 6 | 'configure_options' : 7 | '../source {cmake_prefix_options} ' 8 | '-DCMAKE_AR={cross_prefix_full}ar ' 9 | '-DENABLE_ASSEMBLY=ON ' 10 | '-DENABLE_SHARED=OFF ' 11 | '-DENABLE_CLI:BOOL=OFF ' 12 | '-DEXTRA_LIB="x265_main10.a;x265_main12.a" ' 13 | '-DEXTRA_LINK_FLAGS="-L{offtree_prefix}/libx265_10bit/lib;-L{offtree_prefix}/libx265_12bit/lib" ' 14 | '-DLINKED_10BIT=ON ' 15 | '-DLINKED_12BIT=ON ' 16 | '-DCMAKE_INSTALL_PREFIX={target_prefix}' 17 | , 18 | 'conf_system' : 'cmake', 19 | 'run_post_build' : [ 20 | 'mv -fv libx265.a libx265_main.a', 21 | 'cp -fv {offtree_prefix}/libx265_10bit/lib/libx265_main10.a libx265_main10.a', 22 | 'cp -fv {offtree_prefix}/libx265_12bit/lib/libx265_main12.a libx265_main12.a', 23 | "\"{cross_prefix_full}ar\" -M <[\d.]+)\.tar\.gz' }, 12 | '_info' : { 'version' : '2.10', 'fancy_name' : 'lzo' }, 13 | } -------------------------------------------------------------------------------- /packages/dependencies/mingw-libgnurx.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'folder_name' : 'mingw-libgnurx-2.5.1', 4 | 'download_locations' : [ 5 | { 'url' : 'https://sourceforge.net/projects/mingw/files/Other/UserContributed/regex/mingw-regex-2.5.1/mingw-libgnurx-2.5.1-src.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '7147b7f806ec3d007843b38e19f42a5b7c65894a57ffc297a76b0dcd5f675d76' }, ], }, 6 | ], 7 | 'configure_options' : '{autoconf_prefix_options}', # --disable-shared --enable-static --enable-fsect-man5 8 | 'cpu_count' : '1', #... 9 | 'needs_make' : False, 10 | 'needs_make_install' : False, 11 | 'run_post_configure' : [ 12 | 'make -f Makefile.mingw-cross-env -j 1 TARGET={target_host} bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= install-static' 13 | #'{cross_prefix_bare}ranlib libregex.a' 14 | #'make -f "Makefile.mingw-cross-env" libgnurx.a V=1' 15 | ], 16 | 'patches' : [ 17 | ( 'libgnurx/mingw-libgnurx-static.patch', '-p1' ), 18 | ( 'libgnurx/libgnurx-1-build-static-lib.patch', '-p1' ), 19 | ], 20 | 'update_check' : { 'url' : 'https://sourceforge.net/projects/mingw/files/Other/UserContributed/regex/', 'type' : 'sourceforge', 'regex' : r'mingw-regex-(?P[\d.]+)', }, 21 | '_info' : { 'version' : '2.5.1', 'fancy_name' : 'mingw-libgnurx' }, 22 | } -------------------------------------------------------------------------------- /packages/dependencies/nv-codec-headers.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/FFmpeg/nv-codec-headers.git', 4 | 'needs_configure' : False, 5 | 'build_options' : 'PREFIX={target_prefix}', 6 | 'install_options' : 'PREFIX={target_prefix}', 7 | '_info' : { 'version' : None, 'fancy_name' : 'nVidia (headers)' }, 8 | } -------------------------------------------------------------------------------- /packages/dependencies/opencl_headers.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/KhronosGroup/OpenCL-Headers.git', 4 | 'run_post_patch' : [ 5 | 'if [ ! -f "already_ran_make_install" ] ; then if [ ! -d "{target_prefix}/include/CL" ] ; then mkdir "{target_prefix}/include/CL" ; fi ; fi', 6 | 'if [ ! -f "already_ran_make_install" ] ; then cp -rfv CL/*.h "{target_prefix}/include/CL/" ; fi', 7 | 'if [ ! -f "already_ran_make_install" ] ; then touch already_ran_make_install ; fi', 8 | ], 9 | 'branch': 'main', 10 | 'needs_make' : False, 11 | 'needs_make_install' : False, 12 | 'needs_configure' : False, 13 | '_info' : { 'version' : None, 'fancy_name' : 'OpenCL Headers' }, 14 | } -------------------------------------------------------------------------------- /packages/dependencies/opencl_icd.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/KhronosGroup/OpenCL-ICD-Loader.git', 4 | # 'needs_make_install' : False, 5 | 'source_subfolder': '_build', 6 | 'conf_system' : 'cmake', 7 | 'branch': 'main', 8 | 'configure_options' : '.. {cmake_prefix_options} -DOPENCL_ICD_LOADER_HEADERS_DIR={target_prefix}/include -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=ON -DCMAKE_STATIC_LIBRARY_PREFIX="" ', 9 | #-DBUILD_SHARED_LIBS=ON 10 | # -DOPENCL_ICD_LOADER_REQUIRE_WDK=OFF 11 | 'depends_on' : [ 'opencl_headers' ], 12 | # 'run_post_build' : [ 13 | # 'if [ ! -f "already_ran_make_install" ] ; then cp -vf "libOpenCL.dll.a" "{target_prefix}/lib/libOpenCL.dll.a" ; fi', 14 | # 'if [ ! -f "already_ran_make_install" ] ; then touch already_ran_make_install ; fi', 15 | # ], 16 | 'patches' : [ 17 | # ('opencl/0001-OpenCL-git-prefix.patch', '-p1', '..'), 18 | # ('opencl/0002-OpenCL-git-header.patch', '-p1', '..'), 19 | # ('opencl/0001-win32_crosscompile_fixes.patch', '-p1', '..'), 20 | # ('opencl/1.patch', '-p1', '..'), 21 | ], 22 | '_info' : { 'version' : None, 'fancy_name' : 'OpenCL ICD' }, 23 | } -------------------------------------------------------------------------------- /packages/dependencies/opencore-amr.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://sourceforge.net/projects/opencore-amr/files/opencore-amr/opencore-amr-0.1.6.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '483eb4061088e2b34b358e47540b5d495a96cd468e361050fae615b1809dc4a1' }, ], }, 5 | { 'url' : 'https://sourceforge.mirrorservice.org/o/op/opencore-amr/opencore-amr/opencore-amr-0.1.6.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '483eb4061088e2b34b358e47540b5d495a96cd468e361050fae615b1809dc4a1' }, ], }, 6 | ], 7 | 'configure_options' : '{autoconf_prefix_options}', 8 | 'update_check' : { 'url' : 'https://sourceforge.net/projects/opencore-amr/files/opencore-amr/', 'type' : 'sourceforge', 'regex' : r'opencore-amr-(?P[\d.]+)\.tar\.gz' }, 9 | '_info' : { 'version' : '0.1.6', 'fancy_name' : 'opencore-amr' }, 10 | } -------------------------------------------------------------------------------- /packages/dependencies/openh264.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/cisco/openh264.git', 4 | 'conf_system' : 'meson', 5 | 'build_system' : 'ninja', 6 | 'source_subfolder' : '_build', 7 | # 'patches' : [ 8 | # ( 'openh264/0001-openh264-static-only.patch', '-p1', ".." ), 9 | # ], 10 | 'configure_options' : 11 | '--prefix={target_prefix} ' 12 | '--libdir={target_prefix}/lib ' 13 | '--default-library=static ' 14 | '--buildtype=plain ' 15 | '--backend=ninja ' 16 | '-Dtests=disabled ' 17 | '--buildtype=release ' 18 | '--cross-file={meson_env_file} ./ ..' 19 | , 20 | 'regex_replace': { 21 | 'post_install': [ 22 | { 23 | 0: r'-lm\n', 24 | 1: r'-lm -lstdc++\n', 25 | 'in_file': '{pkg_config_path}/openh264.pc' 26 | }, 27 | ] 28 | }, 29 | '_info' : { 'version' : None, 'fancy_name' : 'openh264' }, 30 | } -------------------------------------------------------------------------------- /packages/dependencies/opusfile.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/xiph/opusfile.git', 4 | 'depth_git': 0, 5 | #'custom_cflag' : '-O3', 6 | 'configure_options' : '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static', 7 | 'depends_on' : [ 8 | # 'libressl', 9 | 'libopus', 'libogg' 10 | ], 11 | '_info' : { 'version' : None, 'fancy_name' : 'opusfile' }, 12 | } -------------------------------------------------------------------------------- /packages/dependencies/pcre2.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.42/pcre2-10.42.tar.bz2', 'hashes' : [ { 'type' : 'sha256', 'sum' : '8d36cd8cb6ea2a4c2bb358ff6411b0c788633a2a45dabbf1aeb4b701d1b5e840' }, ], }, 5 | { 'url' : 'https://fossies.org/linux/misc/pcre2-10.42.tar.bz2 ', 'hashes' : [ { 'type' : 'sha256', 'sum' : '8d36cd8cb6ea2a4c2bb358ff6411b0c788633a2a45dabbf1aeb4b701d1b5e840' }, ], }, 6 | ], 7 | 'conf_system' : 'cmake', 8 | 'patches' : [ 9 | ('pcre2/0001-pcre2-iswild.patch', '-p1'), 10 | ], 11 | 'configure_options' : '. {cmake_prefix_options} ' 12 | '-DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DPCRE2_BUILD_TESTS=OFF ' 13 | '-DPCRE2_BUILD_PCRE2_8=ON -DPCRE2_BUILD_PCRE2_16=ON -DPCRE2_BUILD_PCRE2_32=ON -DPCRE2_NEWLINE=ANYCRLF ' 14 | '-DPCRE2_SUPPORT_UNICODE=ON -DPCRE2_SUPPORT_JIT=ON' 15 | , 16 | 'depends_on' : [ 17 | 'bzip2', 'zlib', 18 | ], 19 | 'update_check' : { 'url' : 'https://github.com/PCRE2Project/pcre2/releases', 'type' : 'githubreleases', 'name_or_tag' : 'name' }, 20 | '_info' : { 'version' : '10.42', 'fancy_name' : 'pcre2' }, 21 | } -------------------------------------------------------------------------------- /packages/dependencies/pkg-config.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591' }, ], }, 5 | { 'url' : 'https://fossies.org/linux/misc/pkg-config-0.29.2.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591' }, ], }, 6 | ], 7 | 'env_exports' : { 'PKG_CONFIG_PATH' : '{local_pkg_config_path}', 'PATH' : '{local_path}' }, 8 | 'build_options' : 'V=1', 9 | 'configure_options' : '--prefix={target_sub_prefix} --disable-shared --enable-static', 10 | 'update_check' : { 'url' : 'https://pkg-config.freedesktop.org/releases/?C=M;O=D', 'type' : 'httpindex', 'regex' : r'pkg-config-(?P[\d.]+)\.tar\.gz' }, 11 | '_info' : { 'version' : '0.29.2', 'fancy_name' : 'pkg-config' }, 12 | } -------------------------------------------------------------------------------- /packages/dependencies/python3_libs.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/DeadSix27/python_mingw_libs.git', 4 | 'needs_configure' : False, 5 | 'needs_make_install' : False, 6 | 'build_options' : 'PREFIX={target_prefix} PYTHON_VERSION=3.11.2 GENDEF={mingw_binpath}/gendef DLLTOOL={mingw_binpath}/{cross_prefix_bare}dlltool', 7 | '_info' : { 'version' : '3.11.2', 'fancy_name' : 'Python (library-only)' }, 8 | } -------------------------------------------------------------------------------- /packages/dependencies/rav1e.py: -------------------------------------------------------------------------------- 1 | #type: ignore 2 | { 3 | 'repo_type' : 'git', 4 | 'url' : 'https://github.com/xiph/rav1e', 5 | 'depth_git': 1, 6 | 'needs_configure' : False, 7 | 'needs_make_install' : False, 8 | 'build_system' : 'rust', 9 | 'cpu_count': '', 10 | 'build_options' : 11 | 'cinstall -v ' 12 | # '--manifest-path ./dolby_vision/Cargo.toml ' 13 | '--prefix {target_prefix} ' 14 | '--library-type staticlib ' 15 | '--crt-static ' 16 | '--target {rust_target} ' 17 | '--release ' 18 | , 19 | 'env_exports' : { 20 | "CC": "gcc", 21 | "CXX": "g++", 22 | "PKG_CONFIG_LIBDIR": "", 23 | "PKG_CONFIG_PATH": "", 24 | "TARGET_CC": "{cross_prefix_bare}gcc", 25 | "TARGET_LD": "{cross_prefix_bare}ld", 26 | "TARGET_CXX": "{cross_prefix_bare}g++", 27 | "CROSS_COMPILE": "1", 28 | }, 29 | '_info' : { 'version' : None, 'fancy_name' : 'rav1e' }, 30 | } -------------------------------------------------------------------------------- /packages/dependencies/readline.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'depth_git': 0, 4 | 'url' : 'https://git.savannah.gnu.org/git/readline.git', 5 | 'branch': 'readline-8.2', 6 | 'patches': [ 7 | # ('https://aur.archlinux.org/cgit/aur.git/plain/fix_signal.diff?h=mingw-w64-readline', '-p1'), 8 | ('readline.patch','-p1'), 9 | ], 10 | 'configure_options': '{autoconf_prefix_options} --enable-multibyte --without-purify --with-curses', 11 | '_info' : { 'version' : None, 'fancy_name' : 'cppunit' }, 12 | } -------------------------------------------------------------------------------- /packages/dependencies/rtmpdump.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://git.ffmpeg.org/rtmpdump.git', 4 | 'needs_configure' : False, 5 | 'patches': [ 6 | ( 'rtmpdump/0001-Add-support-for-LibreSSL.patch', '-p1' ) 7 | ], 8 | # 'install_options' : 'SYS=mingw CRYPTO=GNUTLS LIB_GNUTLS="!CMD(pkg-config --libs --static gnutls)CMD!" OPT=-O3 CROSS_COMPILE={cross_prefix_bare} SHARED=no prefix={target_prefix}', 9 | # 'build_options' : 'SYS=mingw CRYPTO=GNUTLS LIB_GNUTLS="!CMD(pkg-config --libs --static gnutls)CMD!" OPT=-O3 CROSS_COMPILE={cross_prefix_bare} SHARED=no prefix={target_prefix}', 10 | 11 | 'install_options' : 'SYS=mingw CRYPTO=OPENSSL LIB_OPENSSL="!CMD(pkg-config --libs --static libssl)CMD! -lz" OPT=-O3 CROSS_COMPILE={cross_prefix_bare} SHARED=no prefix={target_prefix}', 12 | 'build_options' : 'SYS=mingw CRYPTO=OPENSSL LIB_OPENSSL="!CMD(pkg-config --libs --static libssl)CMD! -lz" OPT=-O3 CROSS_COMPILE={cross_prefix_bare} SHARED=no prefix={target_prefix}', 13 | 14 | #'run_post_install' :( 15 | # 'sed -i.bak \'s/-lrtmp -lz/-lrtmp -lwinmm -lz/\' "{pkg_config_path}/librtmp.pc"', 16 | #), 17 | #'custom_cflag' : '-O3', 18 | 'depends_on' : [ 19 | 'libressl', 20 | 'zlib', 21 | ], 22 | '_info' : { 'version' : None, 'fancy_name' : 'rtmpdump' }, 23 | } -------------------------------------------------------------------------------- /packages/dependencies/sdl2.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/libsdl-org/SDL', 4 | 'depth_git': 0, 5 | 'branch': 'SDL2', 6 | 'env_exports' : { 7 | 'DXSDK_DIR' : '{target_prefix}/include', 8 | }, 9 | 10 | # 'do_not_git_update': True, 11 | 'conf_system' : 'cmake', 12 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=OFF -DSDL_SHARED=OFF', 13 | 'source_subfolder': '_build', 14 | 'regex_replace': { 15 | 'post_patch': [ 16 | # { 17 | # 0: r'if\(NOT WINDOWS OR CYGWIN\)', 18 | # 1: r'if(NOT MSVC OR CYGWIN)', 19 | # 'in_file': '../CMakeLists.txt' # why "WINDOWS", why not "MSVC"... 20 | # }, 21 | # { 22 | # 0: r'if\(NOT \(WINDOWS OR CYGWIN\)\)', 23 | # 1: r'if(NOT (MSVC OR CYGWIN))', 24 | # 'in_file': '../CMakeLists.txt' 25 | # }, 26 | { 27 | 0: r'if\(NOT WINDOWS OR CYGWIN OR MINGW\)', 28 | 1: r'if(NOT APPLE)', 29 | 'in_file': '../CMakeLists.txt' 30 | }, 31 | { 32 | 0: r'if\(NOT \(WINDOWS OR CYGWIN OR MINGW\)\)', 33 | 1: r'if(NOT APPLE)', 34 | 'in_file': '../CMakeLists.txt' 35 | }, 36 | 37 | ], 38 | }, 39 | '_info' : { 'version' : None, 'fancy_name' : 'SDL2' }, 40 | } -------------------------------------------------------------------------------- /packages/dependencies/spirv-cross.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'rename_folder' : 'spirv-cross', 4 | 'url' : 'https://github.com/KhronosGroup/SPIRV-Cross.git', 5 | 'depth_git': 0, 6 | 'branch': 'main', 7 | 'conf_system' : 'cmake', 8 | 'source_subfolder' : '_build', 9 | 'configure_options' : 10 | '.. {cmake_prefix_options} ' 11 | '-DCMAKE_INSTALL_PREFIX={target_prefix} ' 12 | # '-DSPIRV_CROSS_SHARED=OFF ' 13 | '-DSPIRV_CROSS_SHARED=ON ' 14 | '-DSPIRV_CROSS_CLI=OFF ' 15 | '-DSPIRV_CROSS_ENABLE_TESTS=OFF' 16 | , 17 | 'patches' : [ 18 | ( 'https://raw.githubusercontent.com/shinchiro/mpv-winbuild-cmake/master/packages/spirv-cross-0001-static-linking-hacks.patch', '-p1', '..' ), 19 | ], 20 | 'run_post_install' : [ 21 | # "echo 'prefix={target_prefix}\nexec_prefix=${{prefix}}\nlibdir=${{exec_prefix}}/lib\nincludedir=${{prefix}}/include/spirv_cross\nName: spirv-cross-c-shared\nDescription: C API for SPIRV-Cross\nVersion:\nLibs: -L${{libdir}} -lspirv-cross-c -lspirv-cross-cpp -lspirv-cross-reflect -lspirv-cross-glsl -lspirv-cross-hlsl -lspirv-cross-msl -lspirv-cross-core -lstdc++\nCflags: -I${{includedir}}' > {target_prefix}/lib/pkgconfig/spirv-cross.pc", 22 | "cp -rv {target_prefix}/lib/pkgconfig/spirv-cross-c-shared.pc {target_prefix}/lib/pkgconfig/spirv-cross.pc", 23 | ], 24 | '_info' : { 'version' : None, 'fancy_name' : 'SPIRV Cross' }, 25 | 26 | } -------------------------------------------------------------------------------- /packages/dependencies/spirv-headers.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'rename_folder' : 'spirv-headers', 4 | 'url' : 'https://github.com/KhronosGroup/SPIRV-Headers.git', 5 | 'depth_git': 0, 6 | 'branch':'main', 7 | # 'branch': 'sdk-1.3.239.0', 8 | 'needs_make' : False, 9 | 'needs_make_install' : False, 10 | 'needs_configure' : False, 11 | 'recursive_git' : True, 12 | '_info' : { 'version' : None, 'fancy_name' : 'SPIRV Headers' }, 13 | } -------------------------------------------------------------------------------- /packages/dependencies/spirv-tools.py: -------------------------------------------------------------------------------- 1 | # type: ignore 2 | { 3 | 'repo_type' : 'git', 4 | 'rename_folder' : 'spirv-tools', 5 | 'url' : 'https://github.com/KhronosGroup/SPIRV-Tools.git', 6 | 'patches': [ 7 | ('https://github.com/DeadSix27/SPIRV-Tools/commit/6ef89a00fbccb833f6ba3c86c169845019ef36b0.patch', '-p1'), 8 | ], 9 | 'depth_git': 0, 10 | 'branch':'main', 11 | # 'branch':'v2023.1', 12 | 'needs_make' : False, 13 | 'needs_make_install' : False, 14 | 'needs_configure' : False, 15 | 'recursive_git' : True, 16 | 'update_check' : { 'type' : 'git', }, 17 | '_info' : { 'version' : None, 'fancy_name' : 'SPIRV Tools' }, 18 | } -------------------------------------------------------------------------------- /packages/dependencies/sqlite3.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://www.sqlite.org/2022/sqlite-autoconf-3400100.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '2c5dea207fa508d765af1ef620b637dcb06572afa6f01f0815bd5bbf864b33d9' }, ], }, 5 | { 'url' : 'https://fossies.org/linux/misc/sqlite-autoconf-3400100.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '2c5dea207fa508d765af1ef620b637dcb06572afa6f01f0815bd5bbf864b33d9' }, ], }, 6 | ], 7 | 'cflag_addition' : '-fexceptions -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_USE_MALLOC_H=1 -DSQLITE_USE_MSIZE=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_RTREE=1 -fno-strict-aliasing', 8 | 'strip_cflags': ['-ffast-math', ], 9 | 'configure_options': '{autoconf_prefix_options} --enable-threadsafe --disable-editline --enable-readline --enable-json1 --enable-fts5 --enable-session', 10 | 'depends_on': ( 11 | 'zlib', 12 | ), 13 | 'update_check' : { 'url' : 'https://www.sqlite.org/index.html', 'type' : 'httpregex', 'regex' : r'Version (?P[\d.]+)<\/a>' }, 14 | '_info' : { 'version' : '3.40.1', 'fancy_name' : 'libsqlite3' }, 15 | } -------------------------------------------------------------------------------- /packages/dependencies/srt.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/Haivision/srt.git', 4 | 'source_subfolder' : '_build', 5 | 'conf_system' : 'cmake', 6 | 'depends_on' : [ 'gettext', 'libressl' ], 7 | 'configure_options' : 8 | '.. {cmake_prefix_options} ' 9 | '-DCMAKE_INSTALL_PREFIX={target_prefix} ' 10 | '-DENABLE_STATIC=1 -DUSE_STATIC_LIBSTDCXX=1 ' 11 | # '-DUSE_ENCLIB=gnutls ' 12 | '-DUSE_ENCLIB=openssl ' 13 | '-DOPENSSL_USE_STATIC_LIBS=ON ' 14 | '-DUSE_OPENSSL_PC=OFF ' 15 | '-DENABLE_SHARED=0 ' 16 | '-DENABLE_APPS=OFF' 17 | , 18 | '_info' : { 'version' : None, 'fancy_name' : 'libmysofa' }, 19 | } -------------------------------------------------------------------------------- /packages/dependencies/svt_av1.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://gitlab.com/AOMediaCodec/SVT-AV1', 4 | 'conf_system' : 'cmake', 5 | 'source_subfolder' : '_build', 6 | #'custom_cflag' : '-D_FORTIFY_SOURCE=0', 7 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=OFF -DCPPAN_BUILD=OFF -DCMAKE_BUILD_TYPE=Release', 8 | 'run_post_patch' : [ 9 | 'sed -i.bak \'s/#include /#include /\' ../Source/App/EncApp/EbAppMain.c', 10 | 'sed -i.bak \'s/#include /#include /\' ../Source/Lib/Common/Codec/EbThreads.h', 11 | 'sed -i.bak \'s/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=0/\' ../CMakeLists.txt', 12 | 'sed -i.bak \'s/-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=0/\' ../gstreamer-plugin/CMakeLists.txt', 13 | ], 14 | '_info' : { 'version' : None, 'fancy_name' : 'SVT-AV1' }, 15 | } -------------------------------------------------------------------------------- /packages/dependencies/svt_hevc.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/OpenVisualCloud/SVT-HEVC.git', 4 | 'conf_system' : 'cmake', 5 | 'source_subfolder' : '_build', 6 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=OFF -DCPPAN_BUILD=OFF -DCMAKE_BUILD_TYPE=Release', 7 | '_info' : { 'version' : None, 'fancy_name' : 'SVT-HEVC' }, 8 | } -------------------------------------------------------------------------------- /packages/dependencies/svt_vp9.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/OpenVisualCloud/SVT-VP9.git', 4 | 'conf_system' : 'cmake', 5 | 'source_subfolder' : '_build', 6 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=OFF -DCPPAN_BUILD=OFF -DCMAKE_BUILD_TYPE=Release', 7 | 'run_post_patch' : [ 8 | 'sed -i.bak \'s/#include /#include /\' ../Source/Lib/Codec/EbThreads.h', 9 | ], 10 | '_info' : { 'version' : None, 'fancy_name' : 'SVT-VP9' }, 11 | } -------------------------------------------------------------------------------- /packages/dependencies/twolame.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://github.com/njh/twolame/releases/download/0.4.0/twolame-0.4.0.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'cc35424f6019a88c6f52570b63e1baf50f62963a3eac52a03a800bb070d7c87d' }, ], }, 5 | { 'url' : 'https://sourceforge.net/projects/twolame/files/twolame/0.4.0/twolame-0.4.0.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'cc35424f6019a88c6f52570b63e1baf50f62963a3eac52a03a800bb070d7c87d' }, ], }, 6 | ], 7 | 'configure_options' : '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static', 8 | 9 | 'env_exports' : { # 2020.06.19 10 | 'CFLAGS' : ' -DFLAC__NO_DLL {original_cflags}', 11 | 'CXXFLAGS' : ' -DFLAC__NO_DLL {original_cflags}', 12 | 'CPPFLAGS' : ' -DFLAC__NO_DLL {original_cflags}', # 2020.06.20 per https://github.com/fribidi/fribidi/issues/146#issuecomment-646991416 13 | 'LDFLAGS' : ' -DFLAC__NO_DLL {original_cflags}', 14 | }, 15 | 'depends_on' : ['libsndfile', ], 16 | 'patches': [ 17 | ('twolame/0001-twolame-mingw-workaround.patch', '-p1'), # to avoid setting -DLIBTWOLAME_STATIC 18 | ], 19 | 'update_check' : { 'url' : 'https://github.com/njh/twolame/releases/', 'type' : 'githubreleases', 'name_or_tag' : 'tag_name' }, 20 | '_info' : { 'version' : '0.4.0', 'fancy_name' : 'twolame' }, 21 | } -------------------------------------------------------------------------------- /packages/dependencies/uchardet.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://gitlab.freedesktop.org/uchardet/uchardet.git', 4 | # 'branch' : 'f136d434f0809e064ac195b5bc4e0b50484a474c', #master fails 5 | 'conf_system' : 'cmake', 6 | 'configure_options' : '. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=OFF -DBUILD_BINARY=OFF -DCMAKE_BUILD_TYPE=Release', 7 | '_info' : { 'version' : None, 'fancy_name' : 'uchardet' }, 8 | } -------------------------------------------------------------------------------- /packages/dependencies/unbound.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://nlnetlabs.nl/downloads/unbound/unbound-1.17.1.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'ee4085cecce12584e600f3d814a28fa822dfaacec1f94c84bfd67f8a5571a5f4' }, ], }, 5 | { 'url' : 'https://fossies.org/linux/misc/unbound-1.17.1.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'ee4085cecce12584e600f3d814a28fa822dfaacec1f94c84bfd67f8a5571a5f4' }, ], }, 6 | ], 7 | 'configure_options' : 8 | '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static --disable-gost --disable-ecdsa' 9 | , 10 | 'depends_on' : [ 11 | # 'libressl', 12 | ], 13 | '_info' : { 'version' : '1.17.1', 'fancy_name' : 'unbound' }, 14 | } -------------------------------------------------------------------------------- /packages/dependencies/vapoursynth_libs.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/DeadSix27/vapoursynth_mingw_libs.git', 4 | 'needs_configure' : False, 5 | 'needs_make_install' : False, 6 | 'depends_on' : [ 'python3_libs' ], 7 | 'build_options' : 'PREFIX={target_prefix} VAPOURSYNTH_VERSION=R62 GENDEF={mingw_binpath}/gendef DLLTOOL={mingw_binpath}/{cross_prefix_bare}dlltool', 8 | 'packages' : { 9 | 'arch' : [ '7za' ], 10 | }, 11 | '_info' : { 'version' : 'R62', 'fancy_name' : 'VapourSynth (library-only)' }, 12 | } -------------------------------------------------------------------------------- /packages/dependencies/vidstab.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/georgmartius/vid.stab.git', #"Latest commit 97c6ae2 on May 29, 2015" .. master then I guess? 4 | 'rename_folder' : 'vidstab_git', 5 | 'conf_system' : 'cmake', 6 | 'configure_options' : '{cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DENABLE_SHARED=OFF -DCMAKE_AR={cross_prefix_full}ar -DUSE_OMP=OFF', #fatal error: omp.h: No such file or directory 7 | 'run_post_patch' : [ 8 | 'sed -i.bak "s/SHARED/STATIC/g" CMakeLists.txt', 9 | ], 10 | '_info' : { 'version' : None, 'fancy_name' : 'vid.stab' }, 11 | } -------------------------------------------------------------------------------- /packages/dependencies/vo-amrwbenc.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://pkgs.rpmfusion.org/repo/pkgs/free/vo-amrwbenc/vo-amrwbenc-0.1.3.tar.gz/f63bb92bde0b1583cb3cb344c12922e0/vo-amrwbenc-0.1.3.tar.gz', 5 | 'hashes' : [ { 'type' : 'sha256', 'sum' : '5652b391e0f0e296417b841b02987d3fd33e6c0af342c69542cbb016a71d9d4e'}, ], 6 | }, 7 | { 'url' : 'https://sourceforge.net/projects/opencore-amr/files/vo-amrwbenc/vo-amrwbenc-0.1.3.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '5652b391e0f0e296417b841b02987d3fd33e6c0af342c69542cbb016a71d9d4e' }, ], }, 8 | ], 9 | 'configure_options' : '{autoconf_prefix_options} --disable-shared --enable-static', 10 | 'update_check' : { 'url' : 'https://sourceforge.net/projects/opencore-amr/files/vo-amrwbenc/', 'type' : 'sourceforge', 'regex' : r'vo-amrwbenc-(?P[\d.]+)\.tar\.gz', }, 11 | '_info' : { 'version' : '0.1.3', 'fancy_name' : 'vo-amrwbenc' }, 12 | } -------------------------------------------------------------------------------- /packages/dependencies/vulkan-d3dheaders.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'none', 3 | 'folder_name' : 'vulkan_d3dheaders', 4 | 'run_post_patch' : [ 5 | 'if [ ! -f "already_done" ] ; then wget https://raw.githubusercontent.com/DeadSix27/python_cross_compile_script/master/additional_headers/d3dukmdt.h ; fi', 6 | 'if [ ! -f "already_done" ] ; then wget https://raw.githubusercontent.com/DeadSix27/python_cross_compile_script/master/additional_headers/d3dkmthk.h ; fi', 7 | 'if [ ! -f "already_done" ] ; then cp -fv "d3dkmthk.h" "{target_prefix}/include/d3dkmthk.h" ; fi', 8 | 'if [ ! -f "already_done" ] ; then cp -fv "d3dukmdt.h" "{target_prefix}/include/d3dukmdt.h" ; fi', 9 | 'if [ ! -f "already_done" ] ; then touch "already_done" ; fi', 10 | ], 11 | 'needs_make' : False, 12 | 'needs_make_install' : False, 13 | 'needs_configure' : False, 14 | '_info' : { 'version' : '1.0', 'fancy_name' : 'Modified D3D headers from the Wine package to satisfy vulkan-icd compilation' }, 15 | } -------------------------------------------------------------------------------- /packages/dependencies/vulkan_headers.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'depth_git': 0, 4 | # 'branch' : 'v1.3.241', 5 | 'branch':'main', 6 | 'url' : 'https://github.com/KhronosGroup/Vulkan-Headers.git', 7 | 'recursive_git' : True, 8 | 'configure_options' : '. {cmake_prefix_options} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX={target_prefix}', 9 | 'conf_system' : 'cmake', 10 | 'env_exports' : { 11 | 'CFLAGS' : ' -DVK_ENABLE_BETA_EXTENSIONS {original_cflags}', 12 | 'CXXFLAGS' : ' -DVK_ENABLE_BETA_EXTENSIONS {original_cflags}', 13 | 'CPPFLAGS' : ' -DVK_ENABLE_BETA_EXTENSIONS {original_cflags}', # 2020.06.20 per https://github.com/fribidi/fribidi/issues/146#issuecomment-646991416 14 | 'LDFLAGS' : ' -DVK_ENABLE_BETA_EXTENSIONS {original_cflags}', 15 | }, 16 | '_info' : { 'version' : None, 'fancy_name' : 'Vulkan headers' }, 17 | } -------------------------------------------------------------------------------- /packages/dependencies/wavpack.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/dbry/WavPack.git', 4 | 'configure_options' : '{autoconf_prefix_options}', 5 | '_info' : { 'version' : None, 'fancy_name' : 'wavpack' }, 6 | } -------------------------------------------------------------------------------- /packages/dependencies/xavs.py: -------------------------------------------------------------------------------- 1 | { 2 | #LDFLAGS='-lm' 3 | 'repo_type' : 'svn', 4 | 'url' : 'svn://svn.code.sf.net/p/xavs/code/trunk', 5 | 'folder_name' : 'xavs_svn', 6 | 'configure_options' : '{autoconf_prefix_options} --cross-prefix={cross_prefix_bare}', 7 | 'run_post_install' : [ 8 | 'rm -f NUL', # uh??? 9 | ], 10 | 'packages' : { 11 | 'arch' : [ 'yasm' ], 12 | }, 13 | '_info' : { 'version' : 'svn (master)', 'fancy_name' : 'xavs' }, 14 | } -------------------------------------------------------------------------------- /packages/dependencies/xavs2.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/pkuvcl/xavs2.git', 4 | 'source_subfolder' : 'build/linux', 5 | 'configure_options' : '{autoconf_prefix_options} --cross-prefix={cross_prefix_bare} --disable-cli', 6 | 'install_target' : 'install-lib-static', 7 | '_info' : { 'version' : None, 'fancy_name' : 'xavs2' }, 8 | } -------------------------------------------------------------------------------- /packages/dependencies/xz.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/xz-mirror/xz.git', 4 | # 'branch': '6468f7e41a8e9c611e4ba8d34e2175c5dacdbeb4', 5 | 'depth_git': 0, 6 | #'url' : 'http://git.tukaani.org/xz.git', 7 | 'custom_cflag' : '-O2', 8 | 'configure_options' : '{autoconf_prefix_options} --disable-xz --disable-xzdec --disable-lzmadec --disable-lzmainfo --disable-doc', 9 | '_info' : { 'version' : None, 'fancy_name' : 'xz' }, 10 | } -------------------------------------------------------------------------------- /packages/dependencies/zlib.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/madler/zlib.git', 4 | 'conf_system' : 'cmake', 5 | 'source_subfolder' : '_build', 6 | #'custom_cflag' : '-O2', 7 | 'configure_options' : '.. {cmake_prefix_options}' 8 | ' -DCMAKE_INSTALL_PREFIX={target_prefix}' 9 | ' -DINSTALL_PKGCONFIG_DIR="{target_prefix}/lib/pkgconfig"' 10 | ' -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Release' 11 | , 12 | 'depends_on' : ['pkg-config', ], 13 | 'patches' : [ 14 | ('zlib/0001-mingw-workarounds.patch', '-p1', '..'), 15 | ], 16 | '_info' : { 'version' : None, 'fancy_name' : 'zlib' }, 17 | } -------------------------------------------------------------------------------- /packages/dependencies/zvbi.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { 'url' : 'https://sourceforge.net/projects/zapping/files/zvbi/0.2.35/zvbi-0.2.35.tar.bz2', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'fc883c34111a487c4a783f91b1b2bb5610d8d8e58dcba80c7ab31e67e4765318' }, ], }, 5 | { 'url' : 'https://download.videolan.org/contrib/zvbi/zvbi-0.2.35.tar.bz2', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'fc883c34111a487c4a783f91b1b2bb5610d8d8e58dcba80c7ab31e67e4765318' }, ], }, 6 | ], 7 | 'env_exports' : { 8 | 'LIBS' : '-lpng', 9 | }, 10 | 'configure_options' : '{autoconf_prefix_options} --disable-dvb --disable-bktr --disable-nls --disable-proxy --without-doxygen', 11 | 'make_subdir' : 'src', 12 | 'patches' : [ 13 | ('zvbi/0001-zvbi-0.2.35_win32.patch', '-p1'), 14 | ('zvbi/0002-zvbi-0.2.35_ioctl.patch', '-p1'), 15 | ], 16 | #sed -i.bak 's/-lzvbi *$/-lzvbi -lpng/' "$PKG_CONFIG_PATH/zvbi.pc" 17 | 'run_post_build' : [ 18 | 'pwd', 19 | 'cp -rv "../zvbi-0.2.pc" "{target_prefix}/lib/pkgconfig/zvbi-0.2.pc"', 20 | ], 21 | 'update_check' : { 'url' : 'https://sourceforge.net/projects/zapping/files/zvbi/', 'type' : 'sourceforge', }, 22 | '_info' : { 'version' : '0.2.35', 'fancy_name' : 'zvbi' }, 23 | } -------------------------------------------------------------------------------- /packages/products/_disabled/amarok.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'git://anongit.kde.org/amarok.git', 4 | 'needs_make_install':False, 5 | 'conf_system' : 'cmake', 6 | 'configure_options': '. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix}', 7 | # 'custom_cflag' : '-DTAGLIB_STATIC', 8 | 'env_exports' : { 9 | 'CPPDEFINES' : '-DTAGLIB_STATIC', 10 | # build.env.Append(CPPDEFINES = 'TAGLIB_STATIC') 11 | }, 12 | 'depends_on': [ 13 | 'taglib', 14 | ], 15 | } -------------------------------------------------------------------------------- /packages/products/_disabled/clementine.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/clementine-player/Clementine.git', 4 | 'needs_make_install':False, 5 | 'conf_system' : 'cmake', 6 | 'configure_options': '. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=OFF', 7 | 'depends_on': [ 8 | 'qt4', 9 | ], 10 | '_disabled': True, 11 | } -------------------------------------------------------------------------------- /packages/products/_disabled/gdb.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'git://sourceware.org/git/binutils-gdb.git', 4 | 'configure_options': '--host={target_host} --enable-static --enable-lto --prefix={product_prefix}/gdb_git.installed', 5 | '_info' : { 'version' : 'git (master)', 'fancy_name' : 'GDB' }, 6 | } -------------------------------------------------------------------------------- /packages/products/_disabled/mediainfo.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'branch' : 'v0.7.94', 4 | 'custom_cflag' : '', 5 | 'recursive_git' : True, 6 | 'url' : 'https://github.com/MediaArea/MediaInfo.git', 7 | 'source_subfolder' : 'Project/GNU/CLI', 8 | 'rename_folder' : 'mediainfo_git', 9 | 'configure_options': '--host={target_host} --prefix={product_prefix}/mediainfo_git.installed --disable-shared --disable-static-libs', 10 | 'depends_on': [ 11 | 'libmediainfo', 12 | ], 13 | 'run_post_configure' : [ 14 | 'sed -i.bak \'s/ -DSIZE_T_IS_LONG//g\' Makefile', 15 | ], 16 | '_info' : { 'version' : 'git (master)', 'fancy_name' : 'MediaInfo' }, 17 | '_disabled' : True, 18 | } -------------------------------------------------------------------------------- /packages/products/_disabled/mediainfo_dll.py: -------------------------------------------------------------------------------- 1 | { 2 | # 'debug_downloadonly': True, 3 | 'repo_type' : 'git', 4 | # 'branch' : 'v0.7.94', 5 | 'source_subfolder' : 'Project/GNU/Library', 6 | 'rename_folder' : 'mediainfo_dll', 7 | 'url' : 'https://github.com/MediaArea/MediaInfoLib.git', 8 | 'configure_options' : '--host={target_host} --target={bit_name2}-{bit_name_win}-gcc --prefix={product_prefix}/mediainfo_dll.installed --enable-static --disable-shared', # --enable-static --disable-shared --enable-shared=no 9 | 'run_post_patch' : [ 10 | 'sed -i.bak \'s/Windows.h/windows.h/\' ../../../Source/MediaInfo/Reader/Reader_File.h', 11 | 'sed -i.bak \'s/Windows.h/windows.h/\' ../../../Source/MediaInfo/Reader/Reader_File.cpp', 12 | ], 13 | 'run_post_configure' : [ 14 | 'sed -i.bak \'s/ -DSIZE_T_IS_LONG//g\' Makefile', 15 | ], 16 | 'build_options': '{make_prefix_options}', 17 | 'depends_on': [ 18 | 'zenlib', 'libcurl', 19 | ], 20 | # 'patches' : [ 21 | # ('libmediainfo-1-fixes.patch','-p1', '../../..'), 22 | # ], 23 | 'env_exports' : { 'PKG_CONFIG' : 'pkg-config' }, 24 | #'_info' : { 'version' : 'git (master)', 'fancy_name' : 'MediaInfoDLL' }, 25 | } -------------------------------------------------------------------------------- /packages/products/_disabled/mpd.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/MaxKellermann/MPD.git', 4 | 'configure_options' : '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static --disable-wavpack --disable-gme --disable-bzip2 --disable-cdio-paranoia --disable-sqlite --enable-silent-rules --disable-icu LDFLAGS="-static" LIBS="-static-libgcc -static-libstdc++ -lz -lole32"', 5 | 'env_exports' : { 6 | 'LDFLAGS' : '-static', 7 | 'LIBS' : '-static-libgcc -static-libstdc++ -lz -lole32', 8 | 'CXXFLAGS' : '-O2 -g', 9 | }, 10 | '_disabled' : True, 11 | } -------------------------------------------------------------------------------- /packages/products/_disabled/mpv_gui_qt5.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/DeadSix27/Baka-MPlayer', 4 | 'rename_folder' : 'mpv_gui_qt5_git', 5 | 'configure_options' : 6 | 'CONFIG+=embed_translations lupdate="{target_sub_prefix}/bin/lupdate" lrelease="{target_sub_prefix}/bin/lrelease" PKG_CONFIG={cross_prefix_full}pkg-config INSTALL_ROOT={product_prefix}/mpv_gui_qt5_git.installed' 7 | ' LIBS+=-L{target_sub_prefix}/lib INCLUDEPATH+=-I{target_sub_prefix}/include' 8 | , 9 | 'run_post_patch' : [ 10 | 'cp -nv "/usr/bin/pkg-config" "{cross_prefix_full}pkg-config"' 11 | ], 12 | 'install_options' : 'INSTALL_ROOT={product_prefix}/mpv_gui_qt5_git.installed', 13 | 'env_exports' : { 14 | 'QTROOT' : '{target_sub_prefix}/bin', 15 | 'QMAKE' : '{target_sub_prefix}/bin/qmake', 16 | 'PKG_CONFIG' : '{cross_prefix_full}pkg-config' 17 | }, 18 | 'depends_on' : [ 19 | 'qt5', 20 | 'libmpv', 21 | 'libzip' 22 | ], 23 | } -------------------------------------------------------------------------------- /packages/products/_disabled/patch.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'archive', 3 | 'download_locations' : [ 4 | { "url" : "https://ftp.gnu.org/gnu/patch/patch-2.7.6.tar.xz", "hashes" : [ { "type" : "sha256", "sum" : "ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd" }, ], }, 5 | { "url" : "https://fossies.org/linux/misc/patch-2.7.6.tar.xz", "hashes" : [ { "type" : "sha256", "sum" : "ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd" }, ], }, 6 | ], 7 | 'configure_options': '--host={target_host} --prefix={product_prefix}/patch.installed --disable-shared --enable-static', 8 | '_info' : { 'version' : '2.7.6', 'fancy_name' : 'patch' }, 9 | } -------------------------------------------------------------------------------- /packages/products/_disabled/youtube-dl.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/rg3/youtube-dl.git', 4 | 'install_options' : 'youtube-dl PREFIX="{output_prefix}/youtube-dl_git.installed"', 5 | 'run_post_patch' : [ 6 | 'sed -i.bak \'s/pandoc.*/touch youtube-dl.1/g\' Makefile', # "disables" doc, the pandoc requirement is so annoyingly big.. 7 | ], 8 | 'run_post_install' : [ 9 | 'if [ -f "{output_prefix}/youtube-dl_git.installed/bin/youtube-dl" ] ; then mv "{output_prefix}/youtube-dl_git.installed/bin/youtube-dl" "{output_prefix}/youtube-dl_git.installed/bin/youtube-dl.py" ; fi', 10 | ], 11 | 'build_options' : 'youtube-dl', 12 | 'patches' : [ 13 | ( 'https://github.com/DeadSix27/youtube-dl/commit/4a386648cf85511d9eb283ba488858b6a5dc2444.patch', '-p1' ), 14 | ], 15 | 'needs_configure' : False, 16 | '_info' : { 'version' : None, 'fancy_name' : 'youtube-dl' }, 17 | } -------------------------------------------------------------------------------- /packages/products/aom.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://aomedia.googlesource.com/aom', 4 | 'depth_git': 0, 5 | 'branch': 'v2.0.0-rc1', 6 | 'conf_system' : 'cmake', 7 | 'source_subfolder' : 'build', 8 | 'configure_options' : 9 | '.. {cmake_prefix_options} ' 10 | '-DCMAKE_INSTALL_PREFIX={output_prefix}/aom_git.installed ' 11 | '-DBUILD_SHARED_LIBS=0 ' 12 | '-DENABLE_DOCS=0 ' 13 | '-DENABLE_TESTS=0 ' 14 | '-DENABLE_TOOLS=1 ' 15 | '-DENABLE_CCACHE=1 ' 16 | '-DCONFIG_LPF_MASK=1 ' 17 | '-DENABLE_EXAMPLES=1 ' 18 | '-DENABLE_TESTDATA=0 ' 19 | '-DCONFIG_AV1_DECODER=1 ' 20 | '-DCONFIG_AV1_ENCODER=1 ' 21 | '-DCONFIG_PIC=1 ' 22 | '-DCONFIG_SPATIAL_RESAMPLING=1 ' 23 | '-DENABLE_NASM=off ' # YASM is preferred (default) 24 | '-DCONFIG_STATIC=1 ' 25 | '-DCONFIG_SHARED=0' 26 | , 27 | 'depends_on' : [ 'libxml2' ], 28 | 'update_check' : { 'type' : 'git', }, 29 | '_info' : { 'version' : None, 'fancy_name' : 'aom-av1' }, 30 | } -------------------------------------------------------------------------------- /packages/products/cuetools.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/svend/cuetools.git', 4 | 'configure_options' : '--host={target_host} --prefix={output_prefix}/cuetools_git.installed --disable-shared --enable-static', 5 | '_info' : { 'version' : None, 'fancy_name' : 'cuetools' }, 6 | } -------------------------------------------------------------------------------- /packages/products/dav1d.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://code.videolan.org/videolan/dav1d.git', 4 | 'conf_system' : 'meson', 5 | 'build_system' : 'ninja', 6 | 'source_subfolder' : 'build', 7 | 'configure_options' : '' 8 | '--prefix={output_prefix}/dav1d.installed ' 9 | '--libdir={output_prefix}/dav1d.installed/lib ' 10 | '--default-library=static ' 11 | '--buildtype=plain ' 12 | '--backend=ninja ' 13 | '--buildtype=release ' 14 | '--cross-file={meson_env_file} ./ ..' 15 | , 16 | '_info' : { 'version' : None, 'fancy_name' : 'dav1d' }, 17 | } -------------------------------------------------------------------------------- /packages/products/ffmpeg.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'git://git.ffmpeg.org/ffmpeg.git', 4 | 'rename_folder' : 'ffmpeg', 5 | 'configure_options' : '!VAR(ffmpeg_config)VAR! !VAR(ffmpeg_nonfree)VAR! --prefix={output_prefix}/ffmpeg_git.installed --enable-sdl --disable-shared --enable-static', 6 | 'depends_on' : [ 'ffmpeg_depends_min', 'ffmpeg_depends_nonfree', 'sdl2'], 7 | 'env_exports' : { 8 | 'OPENAL_LIBS' : '-lOpenAL32 -lstdc++ -lwinmm -lole32', 9 | }, 10 | '_info' : { 'version' : None, 'fancy_name' : 'ffmpeg (static)' }, 11 | } -------------------------------------------------------------------------------- /packages/products/ffmpeg_extra.py: -------------------------------------------------------------------------------- 1 | #type:ignore 2 | { 3 | 'repo_type' : 'git', 4 | 'url' : 'git://git.ffmpeg.org/ffmpeg.git', 5 | 'rename_folder' : 'ffmpeg_extra_git', 6 | 'configure_options' : '!VAR(ffmpeg_config)VAR! !VAR(ffmpeg_extra_config)VAR! !VAR(ffmpeg_nonfree)VAR! --prefix={output_prefix}/ffmpeg_extra_git.installed --enable-sdl --disable-shared --enable-static', 7 | 'depends_on' : [ 'ffmpeg_depends_min', 'ffmpeg_depends_extra', 'ffmpeg_depends_nonfree', 'sdl2'], 8 | 'env_exports' : { 9 | 'OPENAL_LIBS' : '-lOpenAL32 -lstdc++ -lwinmm -lole32', 10 | }, 11 | '_info' : { 'version' : None, 'fancy_name' : 'ffmpeg (static, extra)' }, 12 | } -------------------------------------------------------------------------------- /packages/products/ffmpeg_min.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'git://git.ffmpeg.org/ffmpeg.git', 4 | 'rename_folder' : 'ffmpeg_min', 5 | 'configure_options' : '!VAR(ffmpeg_min_config)VAR! !VAR(ffmpeg_nonfree)VAR! --prefix={output_prefix}/ffmpeg_min_git.installed --enable-sdl --disable-shared --enable-static', 6 | 'depends_on' : [ 'ffmpeg_depends_min', 'ffmpeg_depends_nonfree', 'sdl2'], 7 | '_info' : { 'version' : None, 'fancy_name' : 'ffmpeg (static, min)' }, 8 | } -------------------------------------------------------------------------------- /packages/products/ffmpeg_shared.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'git://git.ffmpeg.org/ffmpeg.git', 4 | 'rename_folder' : 'ffmpeg_shared_git', 5 | 'configure_options' : '!VAR(ffmpeg_config)VAR! !VAR(ffmpeg_nonfree)VAR! --prefix={output_prefix}/ffmpeg_shared_git.installed --enable-opencl --enable-sdl --enable-shared --disable-static --disable-libbluray --disable-libgme', 6 | 'depends_on' : [ 'ffmpeg_depends_min', 'ffmpeg_depends_nonfree', 'sdl2', 'opencl_icd'], 7 | '_info' : { 'version' : None, 'fancy_name' : 'ffmpeg (shared)' }, 8 | } -------------------------------------------------------------------------------- /packages/products/ffmpeg_shared_extra.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'git://git.ffmpeg.org/ffmpeg.git', 4 | 'rename_folder' : 'ffmpeg_shared_extra_git', 5 | 'configure_options' : '!VAR(ffmpeg_config)VAR! !VAR(ffmpeg_extra_config)VAR! !VAR(ffmpeg_nonfree)VAR! --prefix={output_prefix}/ffmpeg_shared_extra_git.installed --enable-opencl --enable-sdl --enable-shared --disable-static --disable-libbluray --disable-libgme', 6 | 'depends_on' : ['ffmpeg_depends_min', 'ffmpeg_depends_extra', 'ffmpeg_depends_nonfree', 'sdl2', 'opencl_icd'], 7 | '_info' : { 'version' : None, 'fancy_name' : 'ffmpeg (shared, extra)' }, 8 | } -------------------------------------------------------------------------------- /packages/products/ffmpeg_shared_min.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'git://git.ffmpeg.org/ffmpeg.git', 4 | 'rename_folder' : 'ffmpeg_shared_git', 5 | 'configure_options' : '!VAR(ffmpeg_min_config)VAR! !VAR(ffmpeg_nonfree)VAR! --prefix={output_prefix}/ffmpeg_shared_min_git.installed --enable-opencl --enable-sdl --enable-shared --disable-static --disable-libbluray --disable-libgme', 6 | 'depends_on' : [ 'ffmpeg_depends_min', 'ffmpeg_depends_nonfree', 'sdl2', 'opencl_icd'], 7 | '_info' : { 'version' : None, 'fancy_name' : 'ffmpeg (shared, min)' }, 8 | } -------------------------------------------------------------------------------- /packages/products/flac.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/xiph/flac.git', 4 | 'configure_options' : '--host={target_host} --prefix={output_prefix}/flac_git.installed --disable-shared --enable-static', 5 | 'custom_cflag' : '-O3 -D_FORTIFY_SOURCE=0', 6 | 'depends_on' : [ 7 | 'libogg', 8 | ], 9 | 'packages' : { 10 | 'ubuntu' : [ 'docbook-to-man' ], 11 | }, 12 | '_info' : { 'version' : None, 'fancy_name' : 'FLAC' }, 13 | } -------------------------------------------------------------------------------- /packages/products/lame.py: -------------------------------------------------------------------------------- 1 | { 2 | # 'debug_downloadonly': True, 3 | 'repo_type' : 'archive', 4 | 'download_locations' : [ 5 | { 'url' : 'https://sourceforge.net/projects/lame/files/lame/3.100/lame-3.100.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e' }, ], }, 6 | { 'url' : 'https://fossies.org/linux/misc/lame-3.100.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : 'ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e' }, ], }, 7 | ], 8 | 'patches' : [ 9 | ('lame/0007-revert-posix-code.patch','-p1'), # borrowing their file since lame will fix this shortly anyway, its already fixed on svn 10 | ], 11 | 'depends_on' : ['iconv'], 12 | 'configure_options' : '--host={target_host} --without-libiconv-prefix --prefix={output_prefix}/lame-3.100.installed --disable-shared --enable-static --enable-nasm', 13 | 'update_check' : { 'url' : 'https://sourceforge.net/projects/lame/files/lame/', 'type' : 'sourceforge', }, 14 | '_info' : { 'version' : '3.100', 'fancy_name' : 'LAME3' }, 15 | } -------------------------------------------------------------------------------- /packages/products/mp4box.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/gpac/gpac.git', 4 | 'rename_folder' : 'mp4box_git', 5 | 'do_not_bootstrap' : True, 6 | 'run_post_patch' : [ 7 | 'sed -i.bak \'s/has_dvb4linux="yes"/has_dvb4linux="no"/g\' configure', 8 | 'sed -i.bak \'s/targetos=`uname -s`/targetos=MINGW64/g\' configure', 9 | 'sed -i.bak \'s/extralibs="-lm"/extralibs=""/g\' configure', 10 | 'sed -i.bak \'s/SHFLAGS=-shared/SHFLAGS=/g\' configure', 11 | 'sed -i.bak \'s/extralibs="$extralibs -lws2_32 -lwinmm -limagehlp"/extralibs="$extralibs -lws2_32 -lwinmm -lz -lbz2"/g\' configure', 12 | ], 13 | 'env_exports' : { 14 | 'LIBS' : '-lbz2', 15 | }, 16 | 'configure_options' : '--host={target_host} --target-os={bit_name3} --prefix={output_prefix}/mp4box_git.installed --static-modules --cross-prefix={cross_prefix_bare} --static-mp4box --enable-static-bin --disable-oss-audio --disable-x11 --disable-docs --sdl-cfg={cross_prefix_full}sdl2-config --disable-shared --enable-static', 17 | 'depends_on' : [ 18 | 'sdl2', 'libffmpeg', 19 | ], 20 | '_info' : { 'version' : None, 'fancy_name' : 'mp4box' }, 21 | } -------------------------------------------------------------------------------- /packages/products/opus-tools.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/xiph/opus-tools', 4 | 'custom_cflag' : '-O3 -D_FORTIFY_SOURCE=0', 5 | 'configure_options' : '--host={target_host} --prefix={output_prefix}/opus-tools_git.installed --disable-shared --enable-static', 6 | 'depends_on' : [ 7 | 'opusfile', 'libopusenc' 8 | ], 9 | '_info' : { 'version' : None, 'fancy_name' : 'opus-tools' }, 10 | } -------------------------------------------------------------------------------- /packages/products/opus.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/xiph/opus.git', 4 | 'custom_cflag' : '-O3 -D_FORTIFY_SOURCE=0', 5 | 'conf_system' : 'cmake', 6 | 'source_subfolder' : '_build', 7 | 'needs_make_install' : False, 8 | 'run_post_build' : [ 9 | 'if [ ! -f "already_ran_make_install" ] ; then mkdir -pv "{output_prefix}/opus_git.installed/bin" ; fi', 10 | 'if [ ! -f "already_ran_make_install" ] ; then pwd ; fi', 11 | 'if [ ! -f "already_ran_make_install" ] ; then cp -vf "opus_demo.exe" "{output_prefix}/opus_git.installed/bin/opus.exe" ; fi', 12 | 'if [ ! -f "already_ran_make_install" ] ; then touch already_ran_make_install ; fi', 13 | ], 14 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={output_prefix}/opus_git.installed -DCMAKE_BUILD_TYPE=Release -DOPUS_STACK_PROTECTOR=0 -DBUILD_SHARED_LIBS=0 -DBUILD_TESTING=0 -DOPUS_CUSTOM_MODES=1 -DOPUS_BUILD_PROGRAMS=1 -DOPUS_INSTALL_PKG_CONFIG_MODULE=0 -DOPUS_INSTALL_CMAKE_CONFIG_MODULE=0', 15 | '_info' : { 'version' : None, 'fancy_name' : 'opus' }, 16 | } -------------------------------------------------------------------------------- /packages/products/scxvid.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/DeadSix27/SCXvid-standalone', 4 | 'conf_system' : 'cmake', 5 | 'source_subfolder' : 'build', 6 | 'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={output_prefix}/SCXvid-standalone_git.installed', 7 | 'run_post_install' : [ 8 | '{cross_prefix_bare}strip -v {output_prefix}/SCXvid-standalone_git.installed/bin/scxvid.exe', 9 | ], 10 | '_info' : { 'version' : None, 'fancy_name' : 'SCXvid-standalone' }, 11 | } -------------------------------------------------------------------------------- /packages/products/sox.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'rename_folder' : 'sox_git', 4 | 'url' : 'git://git.code.sf.net/p/sox/code', 5 | 'configure_options' : '--host={target_host} --prefix={output_prefix}/sox_git.installed --disable-shared --enable-static --without-gsm', 6 | 'run_post_patch' : [ 7 | 'autoreconf -fiv', 8 | 'if [ -f "{target_prefix}/lib/libgsm.a" ] ; then mv {target_prefix}/lib/libgsm.a {target_prefix}/lib/libgsm.a.disabled ; fi', 9 | 'if [ -d "{target_prefix}/include/gsm" ] ; then mv {target_prefix}/include/gsm {target_prefix}/include/gsm.disabled ; fi', 10 | ], 11 | 'run_post_install' : [ 12 | 'if [ -f "{target_prefix}/lib/libgsm.a.disabled" ] ; then mv {target_prefix}/lib/libgsm.a.disabled {target_prefix}/lib/libgsm.a ; fi', 13 | 'if [ -d "{target_prefix}/include/gsm.disabled" ] ; then mv {target_prefix}/include/gsm.disabled {target_prefix}/include/gsm ; fi', 14 | ], 15 | 'depends_on' : [ 16 | 'libvorbis', 'gettext', 'libsndfile', 'libpng', 17 | ], 18 | '_info' : { 'version' : None, 'fancy_name' : 'SoX' }, 19 | } -------------------------------------------------------------------------------- /packages/products/vorbis-tools.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/xiph/vorbis-tools.git', 4 | 'configure_options' : '--host={target_host} --prefix={output_prefix}/vorbis-tools_git.installed --disable-shared --enable-static --without-libintl-prefix', 5 | 'patches' : [ 6 | ('vorbis-tools/vorbis_tools_odd_locale.patch','-p1'), 7 | ], 8 | 'depends_on' : [ 9 | 'libvorbis', 10 | ], 11 | '_info' : { 'version' : None, 'fancy_name' : 'vorbis-tools' }, 12 | } -------------------------------------------------------------------------------- /packages/products/vpx.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://chromium.googlesource.com/webm/libvpx', 4 | 'rename_folder' : 'vpx_git', 5 | 'configure_options' : 6 | '--target={bit_name2}-{bit_name_win}-gcc ' 7 | '--prefix={output_prefix}/vpx_git.installed ' 8 | '--disable-shared --enable-static --disable-webm-io --enable-vp9 ' 9 | '--enable-vp8 --enable-runtime-cpu-detect ' 10 | '--enable-vp9-highbitdepth --enable-vp9-postproc --enable-coefficient-range-checking ' 11 | '--enable-error-concealment --enable-better-hw-compatibility ' 12 | '--enable-multi-res-encoding --enable-vp9-temporal-denoising ' 13 | '--enable-tools --disable-docs --enable-examples --disable-install-docs --disable-unit-tests --disable-decode-perf-tests --disable-encode-perf-tests --disable-avx512 --as=nasm' #--as=yasm' 14 | , 15 | 'env_exports' : { 16 | 'CROSS' : '{cross_prefix_bare}', 17 | }, 18 | 'custom_cflag' : '-fno-asynchronous-unwind-tables', 19 | 'patches' : [ 20 | ( 'vpx/vpx_160_semaphore.patch', '-p1' ), 21 | ], 22 | '_info' : { 'version' : None, 'fancy_name' : 'vpx' }, 23 | } -------------------------------------------------------------------------------- /packages/products/w2x.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/DeadSix27/waifu2x-converter-cpp', 4 | 'needs_make_install' : False, 5 | 'conf_system' : 'cmake', 6 | 'source_subfolder' : 'out', 7 | # 'depends_on' : [ 'opencl_icd' ], 8 | 'configure_options' : '.. {cmake_prefix_options} -DFORCE_AMD=ON -DCMAKE_INSTALL_PREFIX={output_prefix}/w2x.installed', 9 | '_info' : { 'version' : None, 'fancy_name' : 'waifu2x-converter-cpp' }, 10 | } -------------------------------------------------------------------------------- /packages/products/webp.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://chromium.googlesource.com/webm/libwebp', 4 | 'source_subfolder': '_build', 5 | 'conf_system' : 'cmake', 6 | 'configure_options' : '.. {cmake_prefix_options} ' 7 | '-DCMAKE_INSTALL_PREFIX={output_prefix}/webp.installed -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release' 8 | '-DWEBP_ENABLE_SIMD=ON ' 9 | '-DWEBP_NEAR_LOSSLESS=ON ' 10 | '-DWEBP_UNICODE=ON ' 11 | 12 | '-DWEBP_BUILD_GIF2WEBP=OFF ' 13 | '-DWEBP_BUILD_IMG2WEBP=OFF ' 14 | '-DWEBP_BUILD_WEBPMUX=OFF ' 15 | '-DWEBP_BUILD_ANIM_UTILS=OFF ' 16 | '-DWEBP_BUILD_CWEBP=ON ' 17 | '-DWEBP_BUILD_DWEBP=ON ' 18 | '-DWEBP_BUILD_VWEBP=ON ' 19 | '-DWEBP_BUILD_WEBPINFO=ON ' 20 | '-DWEBP_BUILD_EXTRAS=OFF ' 21 | '-DWEBP_BUILD_WEBP_JS=OFF ' 22 | , 23 | 'depends_on' : [ 'libpng', 'libjpeg-turbo' ], 24 | '_info' : { 'version' : None, 'fancy_name' : 'webp' }, 25 | } -------------------------------------------------------------------------------- /packages/products/wget.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://git.savannah.gnu.org/git/wget.git', 4 | # 'branch' : 'tags/v1.19.1', 5 | 'rename_folder' : 'wget_git', 6 | 'recursive_git' : True, 7 | 'configure_options' : '--target={bit_name2}-{bit_name_win}-gcc --host={target_host} --build=x86_64-linux-gnu --with-ssl=openssl --enable-nls --enable-dependency-tracking --with-metalink --prefix={output_prefix}/wget_git.installed --exec-prefix={output_prefix}/wget_git.installed', 8 | 'cflag_addition' : ' -DIN6_ARE_ADDR_EQUAL=IN6_ADDR_EQUAL', #-DGNUTLS_INTERNAL_BUILD 9 | 'patches' : [ 10 | ( 'wget/0001-remove-RAND_screen-which-doesn-t-exist-on-mingw.patch', '-p1' ), 11 | ( 'wget/0001-wget-look-for-ca-bundle.trust.crt-in-exe-path-by-def.patch', '-p1' ), 12 | # ( 'wget/wget.timegm.patch', '-p1' ), 13 | ], 14 | 'do_not_bootstrap' : True, 15 | 'run_post_patch' : [ 16 | './bootstrap', 17 | ], 18 | 'run_post_install' : [ 19 | 'if [ -f "/etc/ssl/certs/ca-certificates.crt" ] ; then cp -v /etc/ssl/certs/ca-certificates.crt "{output_prefix}/wget_git.installed/bin/ca-bundle.trust.crt" ; fi', 20 | ], 21 | 'depends_on' : [ 22 | 'zlib', 'libressl', 'libpsl', 23 | ], 24 | '_info' : { 'version' : None, 'fancy_name' : 'wget' }, 25 | } 26 | -------------------------------------------------------------------------------- /packages/products/x264.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://code.videolan.org/videolan/x264.git', 4 | 'configure_options' : '--host={target_host} --enable-static --cross-prefix={cross_prefix_bare} --prefix={output_prefix}/x264_git.installed --enable-strip --bit-depth=all', 5 | 'env_exports' : { 6 | 'PKGCONFIG' : 'pkg-config', 7 | }, 8 | 'depends_on' : [ 9 | 'libffmpeg', 10 | ], 11 | '_info' : { 'version' : None, 'fancy_name' : 'x264' }, 12 | } -------------------------------------------------------------------------------- /packages/products/x265.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://bitbucket.org/multicoreware/x265_git', 4 | 'folder_name': 'x265_git', 5 | 'depth_git': 0, 6 | 'source_subfolder' : '_build', 7 | 'configure_options' : 8 | '../source {cmake_prefix_options} ' 9 | '-DCMAKE_AR={cross_prefix_full}ar ' 10 | '-DENABLE_SHARED=OFF ' 11 | '-DENABLE_ASSEMBLY=ON ' 12 | '-DEXTRA_LIB="x265_main10.a;x265_main12.a" ' 13 | '-DEXTRA_LINK_FLAGS="-L{offtree_prefix}/libx265_10bit/lib;-L{offtree_prefix}/libx265_12bit/lib" ' 14 | '-DLINKED_10BIT=ON ' 15 | '-DLINKED_12BIT=ON ' 16 | '-DCMAKE_INSTALL_PREFIX={output_prefix}/x265_hg.installed' 17 | , 18 | 'conf_system' : 'cmake', 19 | 'depends_on' : [ 'libxml2', 'libx265_multibit_10', 'libx265_multibit_12' ], 20 | '_info' : { 'version' : None, 'fancy_name' : 'x265 (multibit 12/10/8)' }, 21 | } -------------------------------------------------------------------------------- /packages/products/yt-dlp.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/yt-dlp/yt-dlp', 4 | 'install_options' : 'yt-dlp DESTDIR="{output_prefix}/yt-dlp_git.installed"', 5 | 'build_options' : 'yt-dlp', 6 | 'run_post_build' : [ 7 | 'mkdir -pv "{output_prefix}/yt-dlp_git.installed/bin"', 8 | 'cp -v yt-dlp "{output_prefix}/yt-dlp_git.installed/bin"', 9 | ], 10 | 'needs_configure' : False, 11 | 'needs_make_install' : False, 12 | '_info' : { 'version' : None, 'fancy_name' : 'yt-dlp' }, 13 | } -------------------------------------------------------------------------------- /packages/products/yt-dlp.py.bak: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/yt-dlp/yt-dlp', 4 | 'install_options' : 'yt-dlp DESTDIR="{output_prefix}/yt-dlp_git.installed"', 5 | 'build_options' : 'yt-dlp', 6 | 'run_post_build' : [ 7 | 'mkdir -pv "{output_prefix}/yt-dlp_git.installed/bin/yt-dlp"', 8 | 'cp -v yt-dlp "{output_prefix}/yt-dlp_git.installed/bin"', 9 | ], 10 | 'needs_configure' : False, 11 | 'needs_make_install' : False, 12 | '_info' : { 'version' : None, 'fancy_name' : 'yt-dlp' }, 13 | } -------------------------------------------------------------------------------- /patches/angle/0003-rename-sprintf_s.patch: -------------------------------------------------------------------------------- 1 | Date: Fri, 19 May 2017 11:47:33 +0200 2 | From: myfreeer 3 | Subject: [PATCH] angle patch 4 | 5 | src/libANGLE/renderer/d3d/RendererD3D.cpp | 2 +- 6 | 1 file changed, 1 insertion(+), 1 deletion(-) 7 | 8 | diff --git a/src/libANGLE/renderer/d3d/RendererD3D.cpp b/src/libANGLE/renderer/d3d/RendererD3D.cpp 9 | index e0cb86d..ad3b680 100644 10 | --- a/src/libANGLE/renderer/d3d/RendererD3D.cpp 11 | +++ b/src/libANGLE/renderer/d3d/RendererD3D.cpp 12 | @@ -313,7 +313,7 @@ std::string RendererD3D::getVendorString() const 13 | if (getLUID(&adapterLuid)) 14 | { 15 | char adapterLuidString[64]; 16 | - sprintf_s(adapterLuidString, sizeof(adapterLuidString), "(adapter LUID: %08x%08x)", 17 | + _snprintf(adapterLuidString, sizeof(adapterLuidString), "(adapter LUID: %08x%08x)", 18 | adapterLuid.HighPart, adapterLuid.LowPart); 19 | return std::string(adapterLuidString); 20 | } 21 | -------------------------------------------------------------------------------- /patches/aria2/fix-openssl-api-version-logic-for-libressl-2.7.x.patch: -------------------------------------------------------------------------------- 1 | From 376854cfc4dd2141eeb1358fca0a2df84b3d1955 Mon Sep 17 00:00:00 2001 2 | From: Ben Chaney 3 | Date: Sun, 3 Jun 2018 01:10:36 -0400 4 | Subject: [PATCH] Fix openssl API version logic for libressl 2.7.x 5 | 6 | --- 7 | src/libssl_compat.h | 3 ++- 8 | 1 file changed, 2 insertions(+), 1 deletion(-) 9 | 10 | diff --git a/src/libssl_compat.h b/src/libssl_compat.h 11 | index 0e03bfd70..cb2e3d97f 100644 12 | --- a/src/libssl_compat.h 13 | +++ b/src/libssl_compat.h 14 | @@ -44,6 +44,7 @@ 15 | #endif // !defined(LIBRESSL_VERSION_NUMBER) 16 | 17 | #define OPENSSL_101_API \ 18 | - (!LIBRESSL_IN_USE && OPENSSL_VERSION_NUMBER >= 0x1010000fL) 19 | + ((!LIBRESSL_IN_USE && OPENSSL_VERSION_NUMBER >= 0x1010000fL) || \ 20 | + (LIBRESSL_IN_USE && LIBRESSL_VERSION_NUMBER >= 0x20700000L)) 21 | 22 | #endif // LIBSSL_COMPAT_H 23 | -------------------------------------------------------------------------------- /patches/avisynthplus/fix-version.patch: -------------------------------------------------------------------------------- 1 | diff --git a/CMakeLists.txt b/CMakeLists.txt 2 | index d60332e6..5d652a79 100644 3 | --- a/CMakeLists.txt 4 | +++ b/CMakeLists.txt 5 | @@ -371,13 +371,8 @@ else() 6 | # Based on the example here: http://www.cmake.org/pipermail/cmake/2010-July/038015.html 7 | FIND_PACKAGE(Git) 8 | INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) 9 | - ADD_CUSTOM_TARGET( 10 | - VersionGen 11 | - ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/avs_core/core/version.h.in 12 | - -D DST=${CMAKE_CURRENT_BINARY_DIR}/version.h 13 | - -D GIT=${GIT_EXECUTABLE} 14 | - -D REPO=${CMAKE_SOURCE_DIR} 15 | - -P ${CMAKE_CURRENT_SOURCE_DIR}/avs_core/Version.cmake 16 | + execute_process( 17 | + COMMAND ${CMAKE_COMMAND} -D SRC=${CMAKE_CURRENT_SOURCE_DIR}/avs_core/core/version.h.in -D DST=${CMAKE_CURRENT_BINARY_DIR}/version.h -D GIT=${GIT_EXECUTABLE} -D REPO=${CMAKE_SOURCE_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/avs_core/Version.cmake 18 | ) 19 | 20 | include(GNUInstallDirs) 21 | -------------------------------------------------------------------------------- /patches/bzip2/bzip2-1.0.6-gcc8.patch: -------------------------------------------------------------------------------- 1 | --- Makefile 2018-05-07 10:24:29.958257208 +0200 2 | +++ Makefile.patched 2018-05-07 10:29:35.776079539 +0200 3 | @@ -75,14 +75,10 @@ 4 | if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi 5 | if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi 6 | if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi 7 | - cp -f bzip2 $(PREFIX)/bin/bzip2 8 | - cp -f bzip2 $(PREFIX)/bin/bunzip2 9 | - cp -f bzip2 $(PREFIX)/bin/bzcat 10 | - cp -f bzip2recover $(PREFIX)/bin/bzip2recover 11 | - chmod a+x $(PREFIX)/bin/bzip2 12 | - chmod a+x $(PREFIX)/bin/bunzip2 13 | - chmod a+x $(PREFIX)/bin/bzcat 14 | - chmod a+x $(PREFIX)/bin/bzip2recover 15 | + cp -f bzip2.exe $(PREFIX)/bin/bzip2.exe 16 | + cp -f bzip2.exe $(PREFIX)/bin/bunzip2.exe 17 | + cp -f bzip2.exe $(PREFIX)/bin/bzcat.exe 18 | + cp -f bzip2recover.exe $(PREFIX)/bin/bzip2recover.exe 19 | cp -f bzip2.1 $(PREFIX)/man/man1 20 | chmod a+r $(PREFIX)/man/man1/bzip2.1 21 | cp -f bzlib.h $(PREFIX)/include 22 | @@ -109,7 +105,7 @@ 23 | echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1 24 | 25 | clean: 26 | - rm -f *.o libbz2.a bzip2 bzip2recover \ 27 | + rm -f *.o libbz2.a bzip2.exe bzip2recover.exe \ 28 | sample1.rb2 sample2.rb2 sample3.rb2 \ 29 | sample1.tst sample2.tst sample3.tst 30 | 31 | -------------------------------------------------------------------------------- /patches/bzip2/bzip2_cross_compile.diff: -------------------------------------------------------------------------------- 1 | --- bzip2.c 2012-10-17 04:29:56.814902537 -0600 2 | +++ bzip2.c 2012-10-17 04:29:48.342869084 -0600 3 | @@ -128,7 +128,7 @@ 4 | #if BZ_LCCWIN32 5 | # include 6 | # include 7 | -# include 8 | +# include 9 | 10 | # define NORETURN /**/ 11 | # define PATH_SEP '\\' 12 | -------------------------------------------------------------------------------- /patches/cppunit/Add-define-guard-for-NOMINMAX.patch: -------------------------------------------------------------------------------- 1 | --- a/include/cppunit/plugin/TestPlugIn.h 2 | +++ b/include/cppunit/plugin/TestPlugIn.h 3 | @@ -146,7 +146,9 @@ typedef CppUnitTestPlugIn *(*TestPlugInSignature)(); 4 | #define NOUSER 5 | #define NOKERNEL 6 | #define NOSOUND 7 | +#ifndef NOMINMAX 8 | #define NOMINMAX 9 | +#endif 10 | #define BLENDFUNCTION void // for mingw & gcc 11 | #include 12 | #endif 13 | --- a/src/cppunit/Win32DynamicLibraryManager.cpp 14 | +++ b/src/cppunit/Win32DynamicLibraryManager.cpp 15 | @@ -8,7 +8,9 @@ 16 | #define NOUSER 17 | #define NOKERNEL 18 | #define NOSOUND 19 | +#ifndef NOMINMAX 20 | #define NOMINMAX 21 | +#endif 22 | #define BLENDFUNCTION void // for mingw & gcc 23 | #include 24 | 25 | -------------------------------------------------------------------------------- /patches/curl/0001-fix-build-with-libressl.patch: -------------------------------------------------------------------------------- 1 | Index: lib/vtls/openssl.c 2 | --- a/lib/vtls/openssl.c.orig 3 | +++ b/lib/vtls/openssl.c 4 | @@ -117,12 +117,7 @@ 5 | #define X509_get0_notBefore(x) X509_get_notBefore(x) 6 | #define X509_get0_notAfter(x) X509_get_notAfter(x) 7 | #define CONST_EXTS /* nope */ 8 | -#ifdef LIBRESSL_VERSION_NUMBER 9 | -static unsigned long OpenSSL_version_num(void) 10 | -{ 11 | - return LIBRESSL_VERSION_NUMBER; 12 | -} 13 | -#else 14 | +#ifndef LIBRESSL_VERSION_NUMBER 15 | #define OpenSSL_version_num() SSLeay() 16 | #endif 17 | #endif 18 | @@ -3527,7 +3522,11 @@ static size_t Curl_ossl_version(char *buffer, size_t s 19 | unsigned long ssleay_value; 20 | sub[2]='\0'; 21 | sub[1]='\0'; 22 | +#ifdef LIBRESSL_VERSION_NUMBER 23 | + ssleay_value = LIBRESSL_VERSION_NUMBER; 24 | +#else 25 | ssleay_value = OpenSSL_version_num(); 26 | +#endif 27 | if(ssleay_value < 0x906000) { 28 | ssleay_value = SSLEAY_VERSION_NUMBER; 29 | sub[0]='\0'; -------------------------------------------------------------------------------- /patches/ff-fix-bug.patch: -------------------------------------------------------------------------------- 1 | diff --git a/libavutil/hwcontext.c b/libavutil/hwcontext.c 2 | index 3396598..c55980b 100644 3 | --- a/libavutil/hwcontext.c 4 | +++ b/libavutil/hwcontext.c 5 | @@ -15,7 +15,8 @@ 6 | * License along with FFmpeg; if not, write to the Free Software 7 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 8 | */ 9 | - 10 | +#include "vulkan/vulkan_core.h" 11 | +#include "vulkan/vulkan_beta.h" 12 | #include "config.h" 13 | 14 | #include "avassert.h" 15 | diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c 16 | index f1db1c7..3c25c73 100644 17 | --- a/libavutil/hwcontext_vulkan.c 18 | +++ b/libavutil/hwcontext_vulkan.c 19 | @@ -40,6 +40,8 @@ 20 | 21 | #include "vulkan.h" 22 | #include "vulkan_loader.h" 23 | +#include "vulkan/vulkan_core.h" 24 | +#include "vulkan/vulkan_beta.h" 25 | 26 | #if CONFIG_LIBDRM 27 | #include 28 | -------------------------------------------------------------------------------- /patches/flite/flite_64.diff: -------------------------------------------------------------------------------- 1 | --- ../../win32/flite-1.4-release/tools/find_sts_main.c 2012-10-16 14:16:17.133749216 -0600 2 | +++ tools/find_sts_main.c 2012-10-16 14:46:11.885648974 -0600 3 | @@ -42,6 +42,7 @@ 4 | #include 5 | 6 | /* To allow some normally const fields to manipulated during building */ 7 | +#include 8 | #define const 9 | 10 | #include "cst_wave.h" 11 | -------------------------------------------------------------------------------- /patches/fontconfig/0001-fontconfig-remove-tests.patch: -------------------------------------------------------------------------------- 1 | diff -Nur fontconfig_git.orig/Makefile.am fontconfig_git/Makefile.am 2 | --- fontconfig_git.orig/Makefile.am 2018-10-19 16:54:48.932261440 +0000 3 | +++ fontconfig_git/Makefile.am 2018-10-19 16:58:06.046355031 +0000 4 | @@ -24,7 +24,7 @@ 5 | SUBDIRS=fontconfig fc-case fc-lang src \ 6 | fc-cache fc-cat fc-conflist fc-list fc-match \ 7 | fc-pattern fc-query fc-scan fc-validate conf.d \ 8 | - its po po-conf test 9 | + its po po-conf 10 | if ENABLE_DOCS 11 | SUBDIRS += doc 12 | endif 13 | -------------------------------------------------------------------------------- /patches/fontconfig/0001-mingwcompat-remove-tests.patch: -------------------------------------------------------------------------------- 1 | From 6ab9a389155aa8cba1003d7fa76628129bf65061 Mon Sep 17 00:00:00 2001 2 | From: DeadSix27 3 | Date: Mon, 9 Jul 2018 12:02:23 +0200 4 | Subject: [PATCH] mingwcompat-remove-tests 5 | 6 | --- 7 | Makefile.am | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/Makefile.am b/Makefile.am 11 | index cc3024e..5076bd5 100644 12 | --- a/Makefile.am 13 | +++ b/Makefile.am 14 | @@ -24,7 +24,7 @@ 15 | SUBDIRS=fontconfig fc-case fc-lang src \ 16 | fc-cache fc-cat fc-conflist fc-list fc-match \ 17 | fc-pattern fc-query fc-scan fc-validate conf.d \ 18 | - its po po-conf test 19 | + its po po-conf 20 | if ENABLE_DOCS 21 | SUBDIRS += doc 22 | endif 23 | -- 24 | 2.18.0 25 | 26 | -------------------------------------------------------------------------------- /patches/fontconfig/0002-fontconfig-add-default-windows-path.patch: -------------------------------------------------------------------------------- 1 | diff --git a/src/fccfg.c b/src/fccfg.c 2 | index f62e228..b45e597 100644 3 | --- a/src/fccfg.c 4 | +++ b/src/fccfg.c 5 | @@ -2305,8 +2305,8 @@ FcConfigSubstitute (FcConfig *config, 6 | 7 | #if defined (_WIN32) 8 | 9 | -static FcChar8 fontconfig_path[1000] = ""; /* MT-dontcare */ 10 | -FcChar8 fontconfig_instprefix[1000] = ""; /* MT-dontcare */ 11 | +static FcChar8 fontconfig_path[1000] = "./;."; /* MT-dontcare */ 12 | +FcChar8 fontconfig_instprefix[1000] = "./;."; /* MT-dontcare */ 13 | 14 | # if (defined (PIC) || defined (DLL_EXPORT)) 15 | 16 | @@ -2420,6 +2420,8 @@ FcConfigGetPath (void) 17 | 18 | npath = 2; /* default dir + null */ 19 | env = (FcChar8 *) getenv ("FONTCONFIG_PATH"); 20 | + if (!env) 21 | + env = fontconfig_path; 22 | if (env) 23 | { 24 | e = env; 25 | -------------------------------------------------------------------------------- /patches/fontconfig/fontconfig-0001-fix-missing-bracket.patch: -------------------------------------------------------------------------------- 1 | From a631175c6c5bf3cf2deeb38a42f0ae17add20b22 Mon Sep 17 00:00:00 2001 2 | From: DeadSix27 3 | Date: Wed, 1 Aug 2018 16:30:36 +0200 4 | Subject: [PATCH] fix-missing-bracket 5 | 6 | --- 7 | src/fcstr.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/src/fcstr.c b/src/fcstr.c 11 | index bfddd68..4247c85 100644 12 | --- a/src/fcstr.c 13 | +++ b/src/fcstr.c 14 | @@ -872,7 +872,7 @@ FcStrIsAbsoluteFilename (const FcChar8 *s) 15 | { 16 | #ifdef _WIN32 17 | if (*s == '\\' || 18 | - (isalpha (*s) && s[1] == ':' && (s[2] == '/' || s[2] == '\\')) 19 | + (isalpha (*s) && s[1] == ':' && (s[2] == '/' || s[2] == '\\'))) 20 | return FcTrue; 21 | #endif 22 | return *s == '/'; 23 | -- 24 | 2.18.0 25 | 26 | -------------------------------------------------------------------------------- /patches/fontconfig/fontconfig-git-utimes.patch: -------------------------------------------------------------------------------- 1 | diff -Nur fontconfig_git.orig/src/fccache.c fontconfig_git/src/fccache.c 2 | --- fontconfig_git.orig/src/fccache.c 2019-04-01 01:31:59.246660540 +0200 3 | +++ fontconfig_git/src/fccache.c 2019-04-01 01:32:40.949993873 +0200 4 | @@ -46,6 +46,17 @@ 5 | #define O_BINARY 0 6 | #endif 7 | 8 | +#ifdef __MINGW32__ 9 | +#include 10 | +int utimes(const char *filename, const struct timeval times[2]) { 11 | + struct _utimbuf timebuffer; 12 | + timebuffer.actime = times[0].tv_sec; 13 | + timebuffer.modtime = times[1].tv_sec; 14 | + 15 | + return _utime(filename, &timebuffer); 16 | +} 17 | +#endif 18 | + 19 | FcBool 20 | FcDirCacheCreateUUID (FcChar8 *dir, 21 | FcBool force, 22 | -------------------------------------------------------------------------------- /patches/freetype2/0001-Enable-table-validation-modules.patch: -------------------------------------------------------------------------------- 1 | From c3680bf8d38cf759c1e33dcc2d2d51e0a4fea2f9 Mon Sep 17 00:00:00 2001 2 | From: "Jan Alexander Steffens (heftig)" 3 | Date: Tue, 23 Jun 2015 08:40:29 +0200 4 | Subject: [PATCH 1/3] Enable table validation modules 5 | 6 | --- 7 | modules.cfg | 4 ++-- 8 | 1 file changed, 2 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/modules.cfg b/modules.cfg 11 | index f30049c38cc45159..7b8e50fe1b34584a 100644 12 | --- a/modules.cfg 13 | +++ b/modules.cfg 14 | @@ -120,7 +120,7 @@ AUX_MODULES += cache 15 | # TrueType GX/AAT table validation. Needs ftgxval.c below. 16 | # 17 | # No FT_CONFIG_OPTION_PIC support. 18 | -# AUX_MODULES += gxvalid 19 | +AUX_MODULES += gxvalid 20 | 21 | # Support for streams compressed with gzip (files with suffix .gz). 22 | # 23 | @@ -143,7 +143,7 @@ AUX_MODULES += bzip2 24 | # OpenType table validation. Needs ftotval.c below. 25 | # 26 | # No FT_CONFIG_OPTION_PIC support. 27 | -# AUX_MODULES += otvalid 28 | +AUX_MODULES += otvalid 29 | 30 | # Auxiliary PostScript driver component to share common code. 31 | # 32 | -- 33 | 2.9.3 34 | 35 | -------------------------------------------------------------------------------- /patches/freetype2/0002-Enable-subpixel-rendering.patch: -------------------------------------------------------------------------------- 1 | From 96f09f08417887b2618c177bccfb6da2906568d9 Mon Sep 17 00:00:00 2001 2 | From: "Jan Alexander Steffens (heftig)" 3 | Date: Tue, 23 Jun 2015 08:43:07 +0200 4 | Subject: [PATCH 2/3] Enable subpixel rendering 5 | 6 | --- 7 | include/freetype/config/ftoption.h | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h 11 | index 90c123ef93e9ea04..67a361dd41e0b026 100644 12 | --- a/include/freetype/config/ftoption.h 13 | +++ b/include/freetype/config/ftoption.h 14 | @@ -122,7 +122,7 @@ FT_BEGIN_HEADER 15 | /* This is done to allow FreeType clients to run unmodified, forcing */ 16 | /* them to display normal gray-level anti-aliased glyphs. */ 17 | /* */ 18 | -/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */ 19 | +#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING 20 | 21 | 22 | /*************************************************************************/ 23 | -- 24 | 2.9.3 25 | 26 | -------------------------------------------------------------------------------- /patches/freetype2/0003-Enable-infinality-subpixel-hinting.patch: -------------------------------------------------------------------------------- 1 | From 220e96a9a8d7aff6ad0f0f1aa12c79cdb563331c Mon Sep 17 00:00:00 2001 2 | From: "Jan Alexander Steffens (heftig)" 3 | Date: Mon, 29 Aug 2016 08:43:10 +0200 4 | Subject: [PATCH 3/3] Enable infinality subpixel hinting 5 | 6 | --- 7 | include/freetype/config/ftoption.h | 4 ++-- 8 | 1 file changed, 2 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h 11 | index 67a361dd41e0b026..c4812862518b66a6 100644 12 | --- a/include/freetype/config/ftoption.h 13 | +++ b/include/freetype/config/ftoption.h 14 | @@ -675,8 +675,8 @@ FT_BEGIN_HEADER 15 | /* [1] http://www.microsoft.com/typography/cleartype/truetypecleartype.aspx */ 16 | /* */ 17 | /* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */ 18 | -#define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 19 | -/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) */ 20 | +/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 */ 21 | +#define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) 22 | 23 | 24 | /*************************************************************************/ 25 | -- 26 | 2.9.3 27 | 28 | -------------------------------------------------------------------------------- /patches/fribidi/0001-mingwcompat-remove-doc-tests.patch: -------------------------------------------------------------------------------- 1 | diff --git a/Makefile.am b/Makefile.am 2 | index 8c516fb..f350c56 100644 3 | --- a/Makefile.am 4 | +++ b/Makefile.am 5 | @@ -4,12 +4,11 @@ 6 | ACLOCAL_AMFLAGS = -I m4 7 | 8 | ## The order of subdirs is important, don't change without a reason. 9 | -SUBDIRS = gen.tab lib bin doc test 10 | +SUBDIRS = gen.tab lib bin 11 | 12 | EXTRA_DIST = autogen.sh ChangeLog.old \ 13 | - meson.build meson_options.txt bin/meson.build doc/meson.build \ 14 | - gen.tab/meson.build lib/meson.build test/meson.build \ 15 | - test/test-runner.py test/unicode-conformance/meson.build \ 16 | + meson.build meson_options.txt bin/meson.build \ 17 | + gen.tab/meson.build lib/meson.build \ 18 | README.md 19 | 20 | pkgconfigdir = $(libdir)/pkgconfig 21 | -------------------------------------------------------------------------------- /patches/glib2/0001-disable-some-tests-when-static.patch: -------------------------------------------------------------------------------- 1 | diff --git a/gio/tests/meson.build b/gio/tests/meson.build 2 | index dca33bd44..47a95b7b3 100644 3 | --- a/gio/tests/meson.build 4 | +++ b/gio/tests/meson.build 5 | @@ -406,7 +406,8 @@ if installed_tests_enabled 6 | install_subdir('cert-tests', install_dir : installed_tests_execdir) 7 | endif 8 | 9 | -if not meson.is_cross_build() or meson.has_exe_wrapper() 10 | +windows_static = host_system == 'windows' and get_option('default_library') == 'static' 11 | +if (not meson.is_cross_build() or meson.has_exe_wrapper()) and not windows_static 12 | 13 | plugin_resources_c = custom_target('plugin-resources.c', 14 | input : 'test4.gresource.xml', 15 | -------------------------------------------------------------------------------- /patches/glib2/0027-no_sys_if_nametoindex.patch: -------------------------------------------------------------------------------- 1 | diff -Naur glib-2.46.0-orig/gio/gsocket.c glib-2.46.0/gio/gsocket.c 2 | --- glib-2.46.0-orig/gio/gsocket.c 2015-08-31 16:08:34.000000000 +0300 3 | +++ glib-2.46.0/gio/gsocket.c 2015-09-22 09:09:04.614548700 +0300 4 | @@ -1951,7 +1951,7 @@ 5 | 6 | #if !defined(HAVE_IF_NAMETOINDEX) && defined(G_OS_WIN32) 7 | static guint 8 | -if_nametoindex (const gchar *iface) 9 | +w32_if_nametoindex (const gchar *iface) 10 | { 11 | PIP_ADAPTER_ADDRESSES addresses = NULL, p; 12 | gulong addresses_len = 0; 13 | @@ -2004,6 +2004,7 @@ 14 | } 15 | 16 | #define HAVE_IF_NAMETOINDEX 1 17 | +#define if_nametoindex w32_if_nametoindex 18 | #endif 19 | 20 | static gboolean 21 | -------------------------------------------------------------------------------- /patches/glib2/0028-inode_directory.patch: -------------------------------------------------------------------------------- 1 | diff -Naur glib-2.46.0-orig/gio/glocalfileinfo.c glib-2.46.0/gio/glocalfileinfo.c 2 | --- glib-2.46.0-orig/gio/glocalfileinfo.c 2015-08-21 08:00:49.000000000 +0300 3 | +++ glib-2.46.0/gio/glocalfileinfo.c 2015-09-22 09:09:05.410062000 +0300 4 | @@ -1232,7 +1232,7 @@ 5 | (symlink_broken || (flags & G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS))) 6 | return g_content_type_from_mime_type ("inode/symlink"); 7 | else if (statbuf != NULL && S_ISDIR(statbuf->st_mode)) 8 | - return g_content_type_from_mime_type ("inode/directory"); 9 | + return g_strdup ("inode/directory"); 10 | #ifndef G_OS_WIN32 11 | else if (statbuf != NULL && S_ISCHR(statbuf->st_mode)) 12 | return g_content_type_from_mime_type ("inode/chardevice"); 13 | -------------------------------------------------------------------------------- /patches/glib2/glib-2-without-tests.diff: -------------------------------------------------------------------------------- 1 | diff -Nur glib-2.59.1/meson.build glib-2.59.1.patched/meson.build 2 | --- glib-2.59.1/meson.build 2019-01-26 12:22:13.000000000 +0000 3 | +++ glib-2.59.1.patched/meson.build 2019-02-02 11:50:29.341004037 +0000 4 | @@ -1983,7 +1983,6 @@ 5 | subdir('gmodule') 6 | subdir('gio') 7 | subdir('fuzzing') 8 | -subdir('tests') 9 | 10 | # xgettext is optional (on Windows for instance) 11 | if find_program('xgettext', required : get_option('nls')).found() 12 | -------------------------------------------------------------------------------- /patches/glib2/use-pkgconfig-file-for-intl.patch: -------------------------------------------------------------------------------- 1 | --- glib-2.0.pc.in.orig 2015-03-23 04:22:18.000000000 +0100 2 | +++ glib-2.0.pc.in 2016-08-12 21:31:44.654422794 +0200 3 | @@ -10,7 +10,8 @@ 4 | Name: GLib 5 | Description: C Utility Library 6 | Version: @VERSION@ 7 | -Requires.private: @PCRE_REQUIRES@ 8 | +Requires: @INTL_REQUIRES@ 9 | +Requires.private: @PCRE_REQUIRES@ @INTL_REQUIRES@ 10 | Libs: -L${libdir} -lglib-2.0 @INTLLIBS@ 11 | Libs.private: @G_THREAD_LIBS@ @G_LIBS_EXTRA@ @PCRE_LIBS@ @INTLLIBS@ @ICONV_LIBS@ @CARBON_LIBS@ @COCOA_LIBS@ 12 | Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include @GLIB_EXTRA_CFLAGS@ 13 | --- configure.ac.orig 2016-05-10 11:05:39.000000000 +0200 14 | +++ configure.ac 2016-08-12 21:39:53.980926453 +0200 15 | @@ -472,6 +472,8 @@ 16 | fi 17 | 18 | LIBS="$INTLLIBS $LIBS" 19 | +INTL_REQUIRES=intl 20 | +AC_SUBST(INTL_REQUIRES) 21 | 22 | GETTEXT_PACKAGE=glib20 23 | AC_SUBST(GETTEXT_PACKAGE) 24 | -------------------------------------------------------------------------------- /patches/gnutls/0001-gnutls-3.5.11-arpainet_pkgconfig.patch: -------------------------------------------------------------------------------- 1 | diff -Nur gnutls-3.5.11/lib/gnutls.pc.in gnutls-3.5.11.patched/lib/gnutls.pc.in 2 | --- gnutls-3.5.11/lib/gnutls.pc.in 2017-04-22 13:23:45.548733819 +0200 3 | +++ gnutls-3.5.11.patched/lib/gnutls.pc.in 2017-04-22 13:22:25.163103741 +0200 4 | @@ -19,6 +19,6 @@ 5 | URL: http://www.gnutls.org/ 6 | Version: @VERSION@ 7 | Libs: -L${libdir} -lgnutls 8 | -Libs.private: @LIBZ_PC@ @LIBINTL@ @LIBSOCKET@ @LIBNSL@ @LIBPTHREAD@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@ @LIBUNISTRING@ @LIBIDN2_LIBS@ 9 | +Libs.private: @LIBZ_PC@ @LIBINTL@ @LIBSOCKET@ @LIBNSL@ @LIBPTHREAD@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@ @LIBUNISTRING@ @LIBIDN2_LIBS@ -lcrypt32 10 | @GNUTLS_REQUIRES_PRIVATE@ 11 | Cflags: -I${includedir} 12 | diff -Nur gnutls-3.5.11/lib/x509/ip.c gnutls-3.5.11.patched/lib/x509/ip.c 13 | --- gnutls-3.5.11/lib/x509/ip.c 2017-04-22 13:26:31.364694895 +0200 14 | +++ gnutls-3.5.11.patched/lib/x509/ip.c 2017-04-22 13:22:25.179104345 +0200 15 | @@ -26,7 +26,11 @@ 16 | #include 17 | 18 | #ifdef HAVE_INET_NTOP 19 | -# include 20 | +# ifdef _WIN32 21 | +# include 22 | +# else 23 | +# include 24 | +# endif 25 | #endif 26 | 27 | /*- 28 | -------------------------------------------------------------------------------- /patches/gsm/gsm-1.0.16.patch: -------------------------------------------------------------------------------- 1 | diff -u -r ./gsm-1.0-pl13/inc/config.h /home/jan/sandbox/x86_64/gsm-1.0-pl13/inc/config.h 2 | --- inc/config.h 2006-04-26 21:14:26.000000000 +0200 3 | +++ inc/config.h 2013-11-07 18:08:57.048020957 +0100 4 | @@ -17,11 +17,11 @@ 5 | #define HAS_FCNTL_H 1 /* /usr/include/fcntl.h */ 6 | #define HAS_ERRNO_DECL 1 /* errno.h declares errno */ 7 | 8 | -#define HAS_FSTAT 1 /* fstat syscall */ 9 | -#define HAS_FCHMOD 1 /* fchmod syscall */ 10 | -#define HAS_CHMOD 1 /* chmod syscall */ 11 | -#define HAS_FCHOWN 1 /* fchown syscall */ 12 | -#define HAS_CHOWN 1 /* chown syscall */ 13 | +#undef HAS_FSTAT /* fstat syscall */ 14 | +#undef HAS_FCHMOD /* fchmod syscall */ 15 | +#undef HAS_CHMOD /* chmod syscall */ 16 | +#undef HAS_FCHOWN /* fchown syscall */ 17 | +#undef HAS_CHOWN /* chown syscall */ 18 | /*efine HAS__FSETMODE 1 /* _fsetmode -- set file mode */ 19 | 20 | #define HAS_STRING_H 1 /* /usr/include/string.h */ 21 | -------------------------------------------------------------------------------- /patches/gsm/gsm-1.0.16_Makefile.patch: -------------------------------------------------------------------------------- 1 | --- Makefile 2006-04-26 21:14:26.000000000 +0200 2 | +++ Makefile.original 2017-03-21 17:47:35.444770563 +0100 3 | @@ -143,7 +143,7 @@ 4 | 5 | TOAST = $(BIN)/toast 6 | UNTOAST = $(BIN)/untoast 7 | -TCAT = $(BIN)/tcat 8 | +#TCAT = $(BIN)/tcat 9 | 10 | # Headers 11 | 12 | @@ -279,7 +279,7 @@ 13 | 14 | # Target rules 15 | 16 | -all: $(LIBGSM) $(TOAST) $(TCAT) $(UNTOAST) 17 | +all: $(LIBGSM) 18 | @-echo $(ROOT): Done. 19 | 20 | tst: $(TST)/lin2cod $(TST)/cod2lin $(TOAST) $(TST)/test-result 21 | @@ -307,13 +307,6 @@ 22 | 23 | # Toast, Untoast and Tcat -- the compress-like frontends to gsm. 24 | 25 | -$(TOAST): $(BIN) $(TOAST_OBJECTS) $(LIBGSM) 26 | - $(LD) $(LFLAGS) -o $(TOAST) $(TOAST_OBJECTS) $(LIBGSM) $(LDLIB) 27 | - 28 | -$(UNTOAST): $(BIN) $(TOAST) 29 | - -rm $(RMFLAGS) $(UNTOAST) 30 | - $(LN) $(TOAST) $(UNTOAST) 31 | - 32 | $(TCAT): $(BIN) $(TOAST) 33 | -rm $(RMFLAGS) $(TCAT) 34 | $(LN) $(TOAST) $(TCAT) 35 | -------------------------------------------------------------------------------- /patches/lame/lame-3.99.5.patch: -------------------------------------------------------------------------------- 1 | --- configure.orig 2012-02-28 11:54:37.000000000 -0700 2 | +++ configure 2014-11-30 04:12:35.018218435 -0700 3 | @@ -11913,6 +11913,17 @@ 4 | 5 | fi 6 | 7 | + 8 | +case $host_cpu in 9 | +i686*) 10 | + check_xmmintrin= 11 | + ;; 12 | +*) 13 | + check_xmmintrin="xmmintrin.h" 14 | + ;; 15 | +esac 16 | + 17 | + 18 | for ac_header in \ 19 | errno.h \ 20 | fcntl.h \ 21 | @@ -11922,7 +11933,7 @@ 22 | sys/soundcard.h \ 23 | sys/time.h \ 24 | unistd.h \ 25 | - xmmintrin.h \ 26 | + $check_xmmintrin \ 27 | linux/soundcard.h 28 | do : 29 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30 | -------------------------------------------------------------------------------- /patches/libarchive/0001-libarchive-3.3.2.bcrypt.patch: -------------------------------------------------------------------------------- 1 | diff -Nur libarchive-3.3.2/libarchive/archive_cryptor_private.h libarchive-3.3.2.patched/libarchive/archive_cryptor_private.h 2 | --- libarchive-3.3.2/libarchive/archive_cryptor_private.h 2017-01-29 06:06:27.000000000 +0100 3 | +++ libarchive-3.3.2.patched/libarchive/archive_cryptor_private.h 2017-07-16 17:54:44.961606108 +0200 4 | @@ -64,7 +64,7 @@ 5 | } archive_crypto_ctx; 6 | 7 | #elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H) 8 | -#include 9 | +#include 10 | 11 | /* Common in other bcrypt implementations, but missing from VS2008. */ 12 | #ifndef BCRYPT_SUCCESS 13 | -------------------------------------------------------------------------------- /patches/libbluray/libbluray_git_remove_strtok_s.patch: -------------------------------------------------------------------------------- 1 | diff -ur libbluray_git/contrib/libudfread/src/udfread.c libbluray_git_b/contrib/libudfread/src/udfread.c 2 | --- libbluray_git/contrib/libudfread/src/udfread.c 2017-03-29 20:35:44.169124540 +0200 3 | +++ libbluray_git_b/contrib/libudfread/src/udfread.c 2017-03-29 20:35:15.340771412 +0200 4 | @@ -33,10 +33,6 @@ 5 | #include 6 | #include 7 | 8 | -#ifdef _WIN32 9 | -#define strtok_r strtok_s 10 | -#endif 11 | - 12 | 13 | /* 14 | * Logging 15 | -------------------------------------------------------------------------------- /patches/libfile/file-win32.patch: -------------------------------------------------------------------------------- 1 | --- a/magic/Makefile.am.orig 2016-05-05 16:03:00.098000000 +0000 2 | +++ b/magic/Makefile.am 2016-05-05 16:03:32.336000000 +0000 3 | @@ -286,7 +286,7 @@ 4 | # FIXME: Build file natively as well so that it can be used to compile 5 | # the target's magic file; for now we bail if the local version does not match 6 | if IS_CROSS_COMPILE 7 | -FILE_COMPILE = file${EXEEXT} 8 | +FILE_COMPILE = file # ${EXEEXT} 9 | FILE_COMPILE_DEP = 10 | else 11 | FILE_COMPILE = $(top_builddir)/src/file${EXEEXT} 12 | -------------------------------------------------------------------------------- /patches/libgnurx/libgnurx-1-build-static-lib.patch: -------------------------------------------------------------------------------- 1 | This file is part of mingw-cross-env. 2 | See doc/index.html for further information. 3 | 4 | diff -Nur mingw-libgnurx-2.5.1/Makefile.mingw-cross-env mingw-libgnurx-2.5.1-mingw-cross-env/Makefile.mingw-cross-env 5 | --- mingw-libgnurx-2.5.1/Makefile.mingw-cross-env 1970-01-01 01:00:00.000000000 +0100 6 | +++ mingw-libgnurx-2.5.1-mingw-cross-env/Makefile.mingw-cross-env 2011-10-23 16:57:18.579312050 +0200 7 | @@ -0,0 +1,11 @@ 8 | +include Makefile 9 | + 10 | +libgnurx.a: $(OBJECTS) 11 | + rm -f $@ 12 | + $(TARGET)-ar rcu $@ $(OBJECTS) 13 | + $(TARGET)-ranlib $@ 14 | + 15 | +install-static: libgnurx.a 16 | + mkdir -p ${includedir} ${libdir} 17 | + cp -p ${srcdir}/regex.h ${includedir} 18 | + cp -p ${srcdir}/libgnurx.a ${libdir} 19 | -------------------------------------------------------------------------------- /patches/libjpeg-turbo/0002-libjpeg-turbo-git-libmng-compat.patch: -------------------------------------------------------------------------------- 1 | From 330fed5f810afaf0230d1bada09603b2bef7e8d4 Mon Sep 17 00:00:00 2001 2 | From: DeadSix27 3 | Date: Wed, 14 Feb 2018 14:25:45 +0100 4 | Subject: [PATCH 1/1] libjpeg-turbo-git libmng compat 5 | 6 | --- 7 | jpeglib.h | 1 + 8 | 1 file changed, 1 insertion(+) 9 | 10 | diff --git a/jpeglib.h b/jpeglib.h 11 | index 6c63f58..df71dc7 100644 12 | --- a/jpeglib.h 13 | +++ b/jpeglib.h 14 | @@ -30,6 +30,7 @@ 15 | #endif 16 | #include "jmorecfg.h" /* seldom changed options */ 17 | 18 | +#include 19 | 20 | #ifdef __cplusplus 21 | #ifndef DONT_USE_EXTERN_C 22 | -- 23 | 2.16.1 24 | 25 | -------------------------------------------------------------------------------- /patches/libjxl/0001-Fix-building-on-MinGW.patch: -------------------------------------------------------------------------------- 1 | diff --git a/lib/jxl/libjxl.pc.in b/lib/jxl/libjxl.pc.in 2 | index 4a7af65b..789ad0d9 100644 3 | --- a/lib/jxl/libjxl.pc.in 4 | +++ b/lib/jxl/libjxl.pc.in 5 | @@ -8,6 +8,6 @@ Description: Loads and saves JPEG XL files 6 | Version: @JPEGXL_LIBRARY_VERSION@ 7 | Requires.private: @JPEGXL_LIBRARY_REQUIRES@ 8 | Libs: -L${libdir} -ljxl 9 | -Libs.private: -lm 10 | -Cflags: -I${includedir} 11 | -Cflags.private: -DJXL_STATIC_DEFINE 12 | +Libs.private: -lm -lstdc++ 13 | +Cflags: -I${includedir} -DJXL_EXPORT= 14 | +Cflags.private: -DJXL_EXPORT= -DJXL_STATIC_DEFINE 15 | \ No newline at end of file 16 | diff --git a/lib/threads/libjxl_threads.pc.in b/lib/threads/libjxl_threads.pc.in 17 | index 50b937a8..f6591ec8 100644 18 | --- a/lib/threads/libjxl_threads.pc.in 19 | +++ b/lib/threads/libjxl_threads.pc.in 20 | @@ -8,6 +8,6 @@ Description: JPEG XL multi-thread runner using std::threads. 21 | Version: @JPEGXL_LIBRARY_VERSION@ 22 | Requires.private: @JPEGXL_THREADS_LIBRARY_REQUIRES@ 23 | Libs: -L${libdir} -ljxl_threads 24 | -Libs.private: -lm 25 | -Cflags: -I${includedir} 26 | -Cflags.private: -DJXL_THREADS_STATIC_DEFINE 27 | +Libs.private: -lm -lstdc++ 28 | +Cflags: -I${includedir} -DJXL_EXPORT= 29 | +Cflags.private: -DJXL_EXPORT= -DJXL_STATIC_DEFINE 30 | -------------------------------------------------------------------------------- /patches/libzip/0001-Fix-building-statically-on-mingw64.patch: -------------------------------------------------------------------------------- 1 | From d3f8e96ea3e174ca8bdd4fda17e9cd31c3a5574b Mon Sep 17 00:00:00 2001 2 | From: DeadSix27 3 | Date: Fri, 1 Dec 2017 08:03:39 +0100 4 | Subject: [PATCH 1/1] Fix building statically on mingw64 5 | 6 | --- 7 | lib/zip.h | 4 ++-- 8 | 1 file changed, 2 insertions(+), 2 deletions(-) 9 | mode change 100644 => 100755 lib/zip.h 10 | 11 | diff --git a/lib/zip.h b/lib/zip.h 12 | old mode 100644 13 | new mode 100755 14 | index ec3ec30..4eec7e8 15 | --- a/lib/zip.h 16 | +++ b/lib/zip.h 17 | @@ -37,9 +37,9 @@ 18 | 19 | #ifndef ZIP_EXTERN 20 | # ifndef ZIP_STATIC 21 | -# ifdef _WIN32 22 | +# if defined(_WIN32) && !defined(__MINGW32__) 23 | # define ZIP_EXTERN __declspec(dllimport) 24 | -# elif defined(__GNUC__) && __GNUC__ >= 4 25 | +# elif defined(__GNUC__) && __GNUC__ >= 4 && !defined(_WIN32) && !defined(__MINGW32__) 26 | # define ZIP_EXTERN __attribute__ ((visibility ("default"))) 27 | # else 28 | # define ZIP_EXTERN 29 | -- 30 | 2.15.1 31 | 32 | -------------------------------------------------------------------------------- /patches/mediainfo/libzen-1-fixes.patch: -------------------------------------------------------------------------------- 1 | --- a/Project/GNU/Library/configure.ac 2 | +++ b/Project/GNU/Library/configure.ac 3 | @@ -172,21 +172,6 @@ 4 | dnl 5 | 6 | dnl ------------------------------------------------------------------------- 7 | -dnl Check if size_t is long 8 | -dnl 9 | -AC_LANG([C++]) 10 | -AC_COMPILE_IFELSE([AC_LANG_SOURCE([ 11 | - #include 12 | - void foo(signed int) {} 13 | - void foo(unsigned int) {} 14 | - int main () {foo(size_t(0)); return 0;}])], [size_t_is_long="no"], [size_t_is_long="yes"]) 15 | - 16 | -if test "$size_t_is_long" = "yes"; then 17 | - CXXFLAGS="$CXXFLAGS -DSIZE_T_IS_LONG" 18 | - ZenLib_CXXFLAGS="$ZenLib_CXXFLAGS -DSIZE_T_IS_LONG" 19 | -fi 20 | - 21 | -dnl ------------------------------------------------------------------------- 22 | dnl Check if stream is available 23 | dnl 24 | AC_LANG([C++]) 25 | -------------------------------------------------------------------------------- /patches/mfx/mfx-0001-mingwcompat-disable-va.patch: -------------------------------------------------------------------------------- 1 | From 936606b6aa3871296e07f3d9698eeaa7f2ee97da Mon Sep 17 00:00:00 2001 2 | From: DeadSix27 3 | Date: Mon, 9 Jul 2018 12:08:09 +0200 4 | Subject: [PATCH] mingwcompat-remove-va 5 | 6 | --- 7 | configure.ac | 3 --- 8 | libmfx.pc.in | 2 +- 9 | 2 files changed, 1 insertion(+), 4 deletions(-) 10 | 11 | diff --git a/configure.ac b/configure.ac 12 | index e2ef50a..9909b27 100644 13 | --- a/configure.ac 14 | +++ b/configure.ac 15 | @@ -26,9 +26,6 @@ AS_CASE([${host_os}], 16 | [AC_MSG_ERROR([${host_os} not supported.])] 17 | ) 18 | 19 | -PKG_HAVE_DEFINE_WITH_MODULES(LIBVA_DRM, [libva-drm]) 20 | -PKG_HAVE_DEFINE_WITH_MODULES(LIBVA_X11, [libva-x11]) 21 | - 22 | MFX_LT_CURRENT=1 23 | MFX_LT_AGE=0 24 | MFX_LT_REVISION=0 25 | diff --git a/libmfx.pc.in b/libmfx.pc.in 26 | index d3683cc..f779e08 100644 27 | --- a/libmfx.pc.in 28 | +++ b/libmfx.pc.in 29 | @@ -6,6 +6,6 @@ includedir=@includedir@ 30 | Name: libmfx 31 | Description: Intel Media SDK Dispatched static library 32 | Version: @PACKAGE_VERSION@ 33 | -Libs: -L${libdir} -lmfx -lstdc++ @DLLIB@ @LIBVA_DRM_LIBS@ @LIBVA_X11_LIBS@ 34 | +Libs: -L${libdir} -lmfx -lstdc++ @DLLIB@ 35 | Libs.private: 36 | Cflags: -I${includedir} 37 | -- 38 | 2.18.0 39 | 40 | -------------------------------------------------------------------------------- /patches/mkvtoolnix/mkvtoolnix_get_rid_of_platformsupport.patch: -------------------------------------------------------------------------------- 1 | diff -ur mkvtoolnix_git/ac/qt5.m4 mkvtoolnix_git.patched/ac/qt5.m4 2 | --- mkvtoolnix_git/ac/qt5.m4 2017-04-04 18:44:35.420776241 +0200 3 | +++ mkvtoolnix_git.patched/ac/qt5.m4 2017-04-04 18:44:26.038924644 +0200 4 | @@ -242,7 +242,7 @@ 5 | 6 | wanted_plugin=`echo $wanted_include | tr '[A-Z]' '[a-z]'` 7 | 8 | - QT_LIBS="-L$plugins_dir/platforms -lq$wanted_plugin $QT_LIBS -lQt5PlatformSupport" 9 | + QT_LIBS="-L$plugins_dir/platforms -lq$wanted_plugin $QT_LIBS -lQt5EventDispatcherSupport -lQt5AccessibilitySupport -lQt5FontDatabaseSupport -lQt5ThemeSupport -lgdi32 -lfreetype -lbz2" 10 | 11 | wanted_include=Q"$wanted_include"IntegrationPlugin 12 | 13 | -------------------------------------------------------------------------------- /patches/mpv/0001-disable-shader-optimization-due-to-crashes.patch: -------------------------------------------------------------------------------- 1 | From aace54299e8b1b484177788cf6808cb54caacd60 Mon Sep 17 00:00:00 2001 2 | From: DeadSix27 3 | Date: Wed, 11 Apr 2018 22:35:54 +0200 4 | Subject: [PATCH] disable shader optimization due to crashes 5 | 6 | --- 7 | video/out/gpu/spirv_shaderc.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/video/out/gpu/spirv_shaderc.c b/video/out/gpu/spirv_shaderc.c 11 | index ee702053d5..64f0dbcfda 100644 12 | --- a/video/out/gpu/spirv_shaderc.c 13 | +++ b/video/out/gpu/spirv_shaderc.c 14 | @@ -32,7 +32,7 @@ static bool shaderc_init(struct ra_ctx *ctx) 15 | goto error; 16 | 17 | shaderc_compile_options_set_optimization_level(p->opts, 18 | - shaderc_optimization_level_size); 19 | + shaderc_optimization_level_zero); 20 | if (ctx->opts.debug) 21 | shaderc_compile_options_set_generate_debug_info(p->opts); 22 | 23 | -- 24 | 2.17.0 25 | 26 | -------------------------------------------------------------------------------- /patches/mpv/mpv_fixed_strncpy.patch: -------------------------------------------------------------------------------- 1 | diff --git a/video/out/d3d11/ra_d3d11.c b/video/out/d3d11/ra_d3d11.c 2 | index 7cf3686593..131ef4a911 100644 3 | --- a/video/out/d3d11/ra_d3d11.c 4 | +++ b/video/out/d3d11/ra_d3d11.c 5 | @@ -1598,7 +1598,7 @@ static void save_cached_program(struct ra *ra, struct ra_renderpass *pass, 6 | .comp_bytecode_len = comp_bc.len, 7 | }; 8 | memcpy(header.magic, cache_magic, sizeof(header.magic)); 9 | - strncpy(header.compiler, spirv->name, sizeof(header.compiler) - 1); 10 | + snprintf(header.compiler, sizeof(header.compiler), "%s", spirv->name); 11 | 12 | struct bstr *prog = &pass->params.cached_program; 13 | bstr_xappend(pass, prog, (bstr){ (char *) &header, sizeof(header) }); 14 | -------------------------------------------------------------------------------- /patches/mpv/ádd-lib-prefix.patch: -------------------------------------------------------------------------------- 1 | diff --git a/meson.build b/meson.build 2 | index 45b9dbbf54..a5819505e5 100644 3 | --- a/meson.build 4 | +++ b/meson.build 5 | @@ -1679,7 +1679,7 @@ major = client_h_define.split('|')[0].split('<<')[0].strip('() ') 6 | minor = client_h_define.split('|')[1].strip('() ') 7 | client_api_version = major + '.' + minor + '.0' 8 | 9 | -libmpv = library('mpv', sources, dependencies: dependencies, gnu_symbol_visibility: 'hidden', 10 | +libmpv = library('mpv', sources, name_prefix: get_option('library-prefix'), dependencies: dependencies, gnu_symbol_visibility: 'hidden', 11 | version: client_api_version, include_directories: includedir, 12 | install: get_option('libmpv'), build_by_default: get_option('libmpv')) 13 | 14 | diff --git a/meson_options.txt b/meson_options.txt 15 | index 27af048c37..b460036686 100644 16 | --- a/meson_options.txt 17 | +++ b/meson_options.txt 18 | @@ -1,4 +1,5 @@ 19 | # booleans 20 | +option('library-prefix', type: 'string', value: 'lib', description: 'libmpv library prefix') 21 | option('gpl', type: 'boolean', value: true, description: 'GPL (version 2 or later) build') 22 | option('cplayer', type: 'boolean', value: true, description: 'mpv CLI player') 23 | option('libmpv', type: 'boolean', value: false, description: 'libmpv library') 24 | -------------------------------------------------------------------------------- /patches/mujs/mujs-0001-fix-building-with-mingw.patch: -------------------------------------------------------------------------------- 1 | From b35f55678138b140fed02c0c8833e5afa02afebf Mon Sep 17 00:00:00 2001 2 | From: DeadSix27 3 | Date: Thu, 17 May 2018 01:27:03 +0200 4 | Subject: [PATCH] fix building with mingw 5 | 6 | --- 7 | Makefile | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | mode change 100644 => 100755 Makefile 10 | 11 | diff --git a/Makefile b/Makefile 12 | old mode 100644 13 | new mode 100755 14 | index 31b13fa..2706803 15 | --- a/Makefile 16 | +++ b/Makefile 17 | @@ -23,9 +23,7 @@ endif 18 | 19 | ifeq "$(shell uname)" "Linux" 20 | CFLAGS += -ffunction-sections -fdata-sections 21 | - CFLAGS += -DHAVE_READLINE 22 | LDFLAGS += -Wl,--gc-sections 23 | - LIBREADLINE += -lreadline 24 | endif 25 | 26 | ifeq "$(build)" "debug" 27 | -- 28 | 2.17.0 29 | 30 | -------------------------------------------------------------------------------- /patches/mujs/mujs-0002-fix-install-with-mingw.patch: -------------------------------------------------------------------------------- 1 | From 7254c8d8fd04cdf2286cc7198b174c26474f7b4f Mon Sep 17 00:00:00 2001 2 | From: DeadSix27 3 | Date: Mon, 14 May 2018 21:57:12 +0200 4 | Subject: [PATCH] fix install with mingw 5 | 6 | --- 7 | Makefile | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | mode change 100644 => 100755 Makefile 10 | 11 | diff --git a/Makefile b/Makefile 12 | old mode 100644 13 | new mode 100755 14 | index a117d71..52eb4ba 15 | --- a/Makefile 16 | +++ b/Makefile 17 | @@ -103,7 +103,7 @@ install-common: release 18 | install -d $(DESTDIR)$(bindir) 19 | install -m 644 mujs.h $(DESTDIR)$(incdir) 20 | install -m 644 build/release/mujs.pc $(DESTDIR)$(libdir)/pkgconfig 21 | - install -m 755 build/release/mujs $(DESTDIR)$(bindir) 22 | + install -m 755 build/release/mujs.exe $(DESTDIR)$(bindir) 23 | 24 | install-static: install-common 25 | install -m 644 build/release/libmujs.a $(DESTDIR)$(libdir) 26 | -- 27 | 2.17.0 28 | 29 | -------------------------------------------------------------------------------- /patches/openal/0001-mingwfixes.patch: -------------------------------------------------------------------------------- 1 | From 4bb2a8ff511364f19e77d358dfb215ea29d695b8 Mon Sep 17 00:00:00 2001 2 | From: DeadSix 3 | Date: Sun, 21 Aug 2022 22:36:14 +0200 4 | Subject: [PATCH] fix-mingw-build 5 | 6 | --- 7 | CMakeLists.txt | 4 ++-- 8 | 1 file changed, 2 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/CMakeLists.txt b/CMakeLists.txt 11 | index 0d1690a8..1757a7f7 100644 12 | --- a/CMakeLists.txt 13 | +++ b/CMakeLists.txt 14 | @@ -918,7 +918,7 @@ endif() 15 | option(ALSOFT_REQUIRE_PIPEWIRE "Require PipeWire backend" OFF) 16 | if(PkgConfig_FOUND) 17 | pkg_check_modules(PIPEWIRE libpipewire-0.3>=0.3.23) 18 | - if(PIPEWIRE_FOUND) 19 | + if(MSVC) 20 | option(ALSOFT_BACKEND_PIPEWIRE "Enable PipeWire backend" ON) 21 | if(ALSOFT_BACKEND_PIPEWIRE) 22 | set(HAVE_PIPEWIRE 1) 23 | @@ -929,7 +929,7 @@ if(PkgConfig_FOUND) 24 | endif() 25 | endif() 26 | endif() 27 | -if(ALSOFT_REQUIRE_PIPEWIRE AND NOT HAVE_PIPEWIRE) 28 | +if(MSVC) 29 | message(FATAL_ERROR "Failed to enabled required PipeWire backend") 30 | endif() 31 | 32 | -- 33 | 2.37.2 34 | 35 | -------------------------------------------------------------------------------- /patches/openal/0001-versioned-w32-dll.mingw.patch: -------------------------------------------------------------------------------- 1 | diff -Nur openal-soft/CMakeLists.txt openal-soft.versioned-w32-dll/CMakeLists.txt 2 | --- openal-soft/CMakeLists.txt 2018-01-30 17:24:40.879907449 +0100 3 | +++ openal-soft.versioned-w32-dll/CMakeLists.txt 2018-01-30 17:24:36.780302657 +0100 4 | @@ -1291,7 +1291,10 @@ 5 | 6 | ADD_LIBRARY(${IMPL_TARGET} SHARED ${OPENAL_OBJS} ${ALC_OBJS}) 7 | IF(WIN32) 8 | - SET_TARGET_PROPERTIES(${IMPL_TARGET} PROPERTIES PREFIX "") 9 | + SET_TARGET_PROPERTIES(OpenAL PROPERTIES 10 | + OUTPUT_NAME openal 11 | + RUNTIME_OUTPUT_NAME openal-${LIB_MAJOR_VERSION} 12 | + ARCHIVE_OUTPUT_NAME openal) 13 | ENDIF() 14 | ENDIF() 15 | SET_TARGET_PROPERTIES(${IMPL_TARGET} PROPERTIES OUTPUT_NAME ${LIBNAME} 16 | -------------------------------------------------------------------------------- /patches/openal/0002-w32ize-portaudio-loading.mingw.patch: -------------------------------------------------------------------------------- 1 | --- openal-soft-1.17.2/Alc/backends/portaudio.c.orig 2016-06-11 08:19:55 -0400 2 | +++ openal-soft-1.17.2/Alc/backends/portaudio.c 2016-06-11 08:24:01 -0400 3 | @@ -71,7 +71,11 @@ 4 | if(!pa_handle) 5 | { 6 | #ifdef _WIN32 7 | +#if defined(__MINGW32__) 8 | +# define PALIB "libportaudio-2.dll" 9 | +#else 10 | # define PALIB "portaudio.dll" 11 | +#endif 12 | #elif defined(__APPLE__) && defined(__MACH__) 13 | # define PALIB "libportaudio.2.dylib" 14 | #elif defined(__OpenBSD__) 15 | -------------------------------------------------------------------------------- /patches/openal/0003-openal-not-32.mingw.patch: -------------------------------------------------------------------------------- 1 | diff -Nur openal-soft/CMakeLists.txt openal-soft.not32/CMakeLists.txt 2 | --- openal-soft/CMakeLists.txt 2018-01-30 17:28:52.006735588 +0100 3 | +++ openal-soft.not32/CMakeLists.txt 2018-01-30 17:28:48.902896015 +0100 4 | @@ -1216,7 +1216,11 @@ 5 | IF(NOT WIN32) 6 | SET(LIBNAME "openal") 7 | ELSE() 8 | - SET(LIBNAME "OpenAL32") 9 | + IF(MINGW) 10 | + SET(LIBNAME "openal") 11 | + ELSE() 12 | + SET(LIBNAME "OpenAL32") 13 | + ENDIF() 14 | ENDIF() 15 | 16 | # Needed for openal.pc.in 17 | -------------------------------------------------------------------------------- /patches/openal/0004-disable-OSS-windows.patch: -------------------------------------------------------------------------------- 1 | --- openal-soft-1.16.0/CMakeLists.txt.orig 2015-11-03 09:47:33.546783000 +0300 2 | +++ openal-soft-1.16.0/CMakeLists.txt 2015-11-03 09:48:28.685268600 +0300 3 | @@ -758,6 +758,7 @@ 4 | 5 | # Check OSS backend 6 | OPTION(ALSOFT_REQUIRE_OSS "Require OSS backend" OFF) 7 | +IF(NOT WIN32) 8 | FIND_PACKAGE(OSS) 9 | IF(OSS_FOUND) 10 | OPTION(ALSOFT_BACKEND_OSS "Enable OSS backend" ON) 11 | @@ -773,6 +774,7 @@ 12 | IF(ALSOFT_REQUIRE_OSS AND NOT HAVE_OSS) 13 | MESSAGE(FATAL_ERROR "Failed to enabled required OSS backend") 14 | ENDIF() 15 | +ENDIF() 16 | 17 | # Check Solaris backend 18 | OPTION(ALSOFT_REQUIRE_SOLARIS "Require Solaris backend" OFF) 19 | -------------------------------------------------------------------------------- /patches/openal/openal-soft-privlibs.patch: -------------------------------------------------------------------------------- 1 | diff -Nur openal-soft/CMakeLists.txt openal-soft.b/CMakeLists.txt 2 | --- openal-soft/CMakeLists.txt 2018-01-30 17:20:40.964580459 +0100 3 | +++ openal-soft.b/CMakeLists.txt 2018-01-30 17:20:38.284512764 +0100 4 | @@ -1228,6 +1228,11 @@ 5 | SET(PACKAGE_VERSION "${LIB_VERSION}") 6 | IF(LIBTYPE STREQUAL "STATIC") 7 | SET(PKG_CONFIG_CFLAGS -DAL_LIBTYPE_STATIC ${PKG_CONFIG_CFLAGS}) 8 | + FOREACH(l ${EXTRA_LIBS}) 9 | + IF(NOT l MATCHES "^-.*") 10 | + SET(PKG_CONFIG_LIBS_PRIVATE "${PKG_CONFIG_LIBS_PRIVATE} -l${l}") 11 | + ENDIF() 12 | + ENDFOREACH() 13 | ENDIF() 14 | 15 | # End configuration 16 | diff -Nur openal-soft/openal.pc.in openal-soft.b/openal.pc.in 17 | --- openal-soft/openal.pc.in 2018-01-30 17:20:42.828515067 +0100 18 | +++ openal-soft.b/openal.pc.in 2018-01-30 17:20:38.291179499 +0100 19 | @@ -8,4 +8,5 @@ 20 | Requires: @PKG_CONFIG_REQUIRES@ 21 | Version: @PACKAGE_VERSION@ 22 | Libs: -L${libdir} -l@LIBNAME@ @PKG_CONFIG_LIBS@ 23 | +Libs.private: @PKG_CONFIG_LIBS_PRIVATE@ 24 | Cflags: -I${includedir} -I${includedir}/AL @PKG_CONFIG_CFLAGS@ 25 | -------------------------------------------------------------------------------- /patches/opencl/0001-OpenCL-git-prefix.patch: -------------------------------------------------------------------------------- 1 | From af4f2cd8823fe6723e1a97772b99ced59cd250b5 Mon Sep 17 00:00:00 2001 2 | From: DeadSix27 3 | Date: Wed, 30 Oct 2019 14:22:44 +0100 4 | Subject: [PATCH] opencl mingw prefix fix 5 | 6 | --- 7 | CMakeLists.txt | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/CMakeLists.txt b/CMakeLists.txt 11 | index 4bafa86..7574ae2 100644 12 | --- a/CMakeLists.txt 13 | +++ b/CMakeLists.txt 14 | @@ -75,7 +75,7 @@ endif () 15 | set (OPENCL_ICD_LOADER_HEADERS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/inc CACHE PATH "Path to OpenCL Headers") 16 | 17 | add_library (OpenCL ${OPENCL_ICD_LOADER_SOURCES}) 18 | -set_target_properties (OpenCL PROPERTIES VERSION "1.2" SOVERSION "1") 19 | +set_target_properties (OpenCL PROPERTIES PREFIX "") 20 | 21 | if (WIN32) 22 | target_link_libraries (OpenCL cfgmgr32.lib) 23 | -- 24 | 2.22.0.windows.1 25 | 26 | -------------------------------------------------------------------------------- /patches/opencl/0003-cfgmgr32-workaround.diff: -------------------------------------------------------------------------------- 1 | diff -Nur OpenCL-ICD-Loader_git/CMakeLists.txt OpenCL-ICD-Loader_git.patched/CMakeLists.txt 2 | --- OpenCL-ICD-Loader_git/CMakeLists.txt 2019-05-09 14:21:47.746109716 +0200 3 | +++ OpenCL-ICD-Loader_git.patched/CMakeLists.txt 2019-05-09 14:23:22.815118384 +0200 4 | @@ -77,7 +77,7 @@ 5 | target_link_libraries (OpenCL ${CMAKE_THREAD_LIBS_INIT}) 6 | else () 7 | set_target_properties (OpenCL PROPERTIES LINK_FLAGS "-Wl,--version-script -Wl,${CMAKE_CURRENT_SOURCE_DIR}/loader/linux/icd_exports.map") 8 | - target_link_libraries (OpenCL ${CMAKE_THREAD_LIBS_INIT}) 9 | + target_link_libraries (OpenCL ${CMAKE_THREAD_LIBS_INIT} cfgmgr32) 10 | endif () 11 | endif () 12 | 13 | -------------------------------------------------------------------------------- /patches/opencl/1.patch: -------------------------------------------------------------------------------- 1 | diff --git a/CMakeLists.txt b/CMakeLists.txt 2 | index cc6ede7..e8991ba 100644 3 | --- a/CMakeLists.txt 4 | +++ b/CMakeLists.txt 5 | @@ -86,7 +86,7 @@ endif () 6 | set (OPENCL_ICD_LOADER_HEADERS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/inc CACHE PATH "Path to OpenCL Headers") 7 | 8 | add_library (OpenCL ${OPENCL_ICD_LOADER_SOURCES}) 9 | -set_target_properties (OpenCL PROPERTIES VERSION "1.2" SOVERSION "1") 10 | +set_target_properties (OpenCL PROPERTIES PREFIX "") 11 | target_include_directories(OpenCL SYSTEM PUBLIC ${OPENCL_ICD_LOADER_HEADERS_DIR}) 12 | target_include_directories(OpenCL PRIVATE include) 13 | 14 | diff --git a/loader/windows/icd_windows_hkr.h b/loader/windows/icd_windows_hkr.h 15 | index e0db713..7463c70 100644 16 | --- a/loader/windows/icd_windows_hkr.h 17 | +++ b/loader/windows/icd_windows_hkr.h 18 | @@ -19,4 +19,9 @@ 19 | #include 20 | #include "icd_windows.h" 21 | 22 | +#define CM_GETIDLIST_FILTER_TRANSPORTRELATIONS (0x00000080) 23 | +#define CM_GETIDLIST_FILTER_PRESENT (0x00000100) 24 | +#define CM_GETIDLIST_FILTER_CLASS (0x00000200) 25 | +#define CM_GETIDLIST_FILTER_BITS (0x100003FF) 26 | + 27 | bool khrIcdOsVendorsEnumerateHKR(void); 28 | -------------------------------------------------------------------------------- /patches/openh264/0001-openh264-static-only.patch: -------------------------------------------------------------------------------- 1 | diff --git a/codec/meson.build b/codec/meson.build 2 | index 7a427f49..c922ba89 100644 3 | --- a/codec/meson.build 4 | +++ b/codec/meson.build 5 | @@ -2,8 +2,8 @@ subdir('common') 6 | subdir('decoder') 7 | subdir('encoder') 8 | subdir('processing') 9 | -if not ['android', 'ios'].contains(system) 10 | +#if not ['android', 'ios'].contains(system) 11 | # also disabled in the Makefile for these platforms 12 | - subdir('console') 13 | -endif 14 | + # subdir('console') 15 | +#endif 16 | subdir('api') 17 | diff --git a/meson.build b/meson.build 18 | index ad9024ff..f04bcde6 100644 19 | --- a/meson.build 20 | +++ b/meson.build 21 | @@ -191,7 +191,7 @@ all_objects = [ 22 | libdecoder.extract_all_objects() 23 | ] 24 | 25 | -libopenh264_shared = library('openh264', 26 | +libopenh264_static = library('openh264', 27 | objects: all_objects, 28 | install: true, 29 | soversion: major_version, 30 | @@ -230,7 +230,7 @@ foreach t : ['', '-static'] 31 | endforeach 32 | 33 | openh264_dep = declare_dependency( 34 | - link_with: libopenh264_shared, 35 | + link_with: libopenh264_static, 36 | include_directories: include_directories('include'), 37 | dependencies: deps + api_header_deps) 38 | 39 | -------------------------------------------------------------------------------- /patches/openh264/0001-remove-fma3-call.patch: -------------------------------------------------------------------------------- 1 | diff --git a/codec/encoder/core/inc/param_svc.h b/codec/encoder/core/inc/param_svc.h 2 | index 8f0f6ce7..684381a5 100644 3 | --- a/codec/encoder/core/inc/param_svc.h 4 | +++ b/codec/encoder/core/inc/param_svc.h 5 | @@ -63,9 +63,6 @@ extern const uint8_t g_kuiTemporalIdListTable[MAX_TEMPORAL_LEVEL][MAX_GOP_SIZE 6 | * \return 2 based scaling factor 7 | */ 8 | static inline uint32_t GetLogFactor (float base, float upper) { 9 | -#if defined(_M_X64) 10 | - _set_FMA3_enable(0); 11 | -#endif 12 | const double dLog2factor = log10 (1.0 * upper / base) / log10 (2.0); 13 | const double dEpsilon = 0.0001; 14 | const double dRound = floor (dLog2factor + 0.5); 15 | -------------------------------------------------------------------------------- /patches/opus/opus-1.1.2_strip_declspec.patch: -------------------------------------------------------------------------------- 1 | diff -uprN ./include/opus_defines.h ./include/opus_defines.h 2 | --- ./include/opus_defines.h 2013-11-29 15:17:15.000000000 -0500 3 | +++ ./include/opus_defines.h 2013-12-06 01:44:24.656150129 -0500 4 | @@ -65,11 +65,7 @@ extern "C" { 5 | 6 | #ifndef OPUS_EXPORT 7 | # if defined(WIN32) 8 | -# ifdef OPUS_BUILD 9 | -# define OPUS_EXPORT __declspec(dllexport) 10 | -# else 11 | # define OPUS_EXPORT 12 | -# endif 13 | # elif defined(__GNUC__) && defined(OPUS_BUILD) 14 | # define OPUS_EXPORT __attribute__ ((visibility ("default"))) 15 | # else 16 | -------------------------------------------------------------------------------- /patches/opus/opus_git_strip_declspec.patch: -------------------------------------------------------------------------------- 1 | Remove __declspec stuff of opus, patched on git c43633d - DeadSix27 2 | diff -urN a b > opus_git_strip_declspec.patch 3 | --- a/include/opus_defines.h 2017-04-13 08:55:13.362627300 +0200 4 | +++ b/include/opus_defines.h 2017-04-13 08:55:13.362627300 +0200 5 | @@ -65,11 +65,7 @@ 6 | 7 | #ifndef OPUS_EXPORT 8 | # if defined(WIN32) 9 | -# if defined(OPUS_BUILD) && defined(DLL_EXPORT) 10 | -# define OPUS_EXPORT __declspec(dllexport) 11 | -# else 12 | # define OPUS_EXPORT 13 | -# endif 14 | # elif defined(__GNUC__) && defined(OPUS_BUILD) 15 | # define OPUS_EXPORT __attribute__ ((visibility ("default"))) 16 | # else 17 | -------------------------------------------------------------------------------- /patches/pcre2/0001-pcre2-iswild.patch: -------------------------------------------------------------------------------- 1 | diff -Nur pcre2-10.23.original/src/pcre2grep.c pcre2-10.23/src/pcre2grep.c 2 | --- pcre2-10.23.original/src/pcre2grep.c 2017-07-27 17:29:26.687957476 +0200 3 | +++ pcre2-10.23/src/pcre2grep.c 2017-07-27 17:30:04.845030039 +0200 4 | @@ -628,7 +628,7 @@ 5 | 6 | /************* Directory scanning Unix-style and z/OS ***********/ 7 | 8 | -#if (defined HAVE_SYS_STAT_H && defined HAVE_DIRENT_H && defined HAVE_SYS_TYPES_H) || defined NATIVE_ZOS 9 | +#if ((defined HAVE_SYS_STAT_H && defined HAVE_DIRENT_H && defined HAVE_SYS_TYPES_H) || defined NATIVE_ZOS) && !defined WIN32 10 | #include 11 | #include 12 | #include -------------------------------------------------------------------------------- /patches/python/pyconfig.h-36-hypot.patch: -------------------------------------------------------------------------------- 1 | diff -ur a/pyconfig.h b/pyconfig.h 2 | --- a/pyconfig.h 2017-03-27 02:36:39.639770700 +0200 3 | +++ b/pyconfig.h 2017-03-27 02:37:17.908362400 +0200 4 | @@ -238,7 +238,8 @@ 5 | #endif 6 | 7 | #define COMPILER "[gcc]" 8 | -#define hypot _hypot 9 | +/*no idea how this affects things.., but it makes vapoursynth compile and work fine? */ 10 | +/*#define hypot _hypot*/ 11 | #define PY_LONG_LONG long long 12 | #define PY_LLONG_MIN LLONG_MIN 13 | #define PY_LLONG_MAX LLONG_MAX 14 | -------------------------------------------------------------------------------- /patches/qt5/0001-Don-t-require-windows.h-when-using-native-Linux-gcc.patch: -------------------------------------------------------------------------------- 1 | From 82a268b89f2c68be1ce2d10eb89634bd3bff9715 Mon Sep 17 00:00:00 2001 2 | From: Martchus 3 | Date: Fri, 2 Jun 2017 17:17:46 +0200 4 | Subject: [PATCH 1/2] Don't require windows.h when using native Linux gcc 5 | 6 | --- 7 | src/tools/idc/idc.pro | 1 - 8 | 1 file changed, 1 deletion(-) 9 | 10 | diff --git a/src/tools/idc/idc.pro b/src/tools/idc/idc.pro 11 | index 1898ed5..524ee2e 100644 12 | --- a/src/tools/idc/idc.pro 13 | +++ b/src/tools/idc/idc.pro 14 | @@ -1,4 +1,3 @@ 15 | -option(host_build) 16 | CONFIG += force_bootstrap 17 | SOURCES = main.cpp 18 | 19 | -- 20 | 2.14.2 21 | 22 | -------------------------------------------------------------------------------- /patches/qt5/0006-Don-t-add-resource-files-to-LIBS-parameter.patch: -------------------------------------------------------------------------------- 1 | From 5731914d9e5d8a026901e5bbab3f3ee1b3ea50f3 Mon Sep 17 00:00:00 2001 2 | From: Martchus 3 | Date: Sun, 18 Sep 2016 13:58:28 +0200 4 | Subject: [PATCH 06/33] Don't add resource files to LIBS parameter 5 | 6 | Solves an issue where the generated pkg-config 7 | files contained invalid Libs.private references 8 | like .obj/debug/Qt5Cored_resource_res.o 9 | --- 10 | qmake/generators/win32/mingw_make.cpp | 2 +- 11 | 1 file changed, 1 insertion(+), 1 deletion(-) 12 | 13 | diff --git a/qmake/generators/win32/mingw_make.cpp b/qmake/generators/win32/mingw_make.cpp 14 | index bad53dc5b7..c730d641b2 100644 15 | --- a/qmake/generators/win32/mingw_make.cpp 16 | +++ b/qmake/generators/win32/mingw_make.cpp 17 | @@ -202,7 +202,7 @@ void MingwMakefileGenerator::init() 18 | 19 | processVars(); 20 | 21 | - project->values("QMAKE_LIBS") += project->values("RES_FILE"); 22 | + project->values("OBJECTS") += project->values("RES_FILE"); 23 | 24 | if (project->isActiveConfig("dll")) { 25 | QString destDir = ""; 26 | -- 27 | 2.14.2 28 | 29 | -------------------------------------------------------------------------------- /patches/qt5/0013-Fix-linking-against-static-pcre.patch: -------------------------------------------------------------------------------- 1 | diff -Nur qt-everywhere-opensource-src-5.9.3/qtbase/src/corelib/tools/qregularexpression.cpp qt-everywhere-opensource-src-5.9.3.patched/qtbase/src/corelib/tools/qregularexpression.cpp 2 | --- qt-everywhere-opensource-src-5.9.3/qtbase/src/corelib/tools/qregularexpression.cpp 2017-11-16 06:15:28.000000000 +0100 3 | +++ qt-everywhere-opensource-src-5.9.3.patched/qtbase/src/corelib/tools/qregularexpression.cpp 2017-11-29 16:27:40.751582263 +0100 4 | @@ -56,6 +56,11 @@ 5 | 6 | #define PCRE2_CODE_UNIT_WIDTH 16 7 | 8 | +#ifdef QT_STATIC 9 | +#define PCRE_STATIC 10 | +#define PCRE2_STATIC 11 | +#endif 12 | + 13 | #include 14 | 15 | QT_BEGIN_NAMESPACE 16 | -------------------------------------------------------------------------------- /patches/readline.patch: -------------------------------------------------------------------------------- 1 | diff --git a/input.c b/input.c 2 | index 6f038d4..b7459d4 100644 3 | --- a/input.c 4 | +++ b/input.c 5 | @@ -818,8 +818,9 @@ rl_getc (FILE *stream) 6 | /* We know at this point that _rl_caught_signal == 0 */ 7 | 8 | #if defined (__MINGW32__) 9 | - if (isatty (fd) 10 | + if (isatty (fd)) { 11 | return (_getch ()); /* "There is no error return." */ 12 | + } 13 | #endif 14 | result = 0; 15 | #if defined (HAVE_PSELECT) || defined (HAVE_SELECT) 16 | diff --git a/rlprivate.h b/rlprivate.h 17 | index d87d07a..9fb7b01 100644 18 | --- a/rlprivate.h 19 | +++ b/rlprivate.h 20 | @@ -27,6 +27,12 @@ 21 | #include "rlstdc.h" 22 | #include "posixjmp.h" /* defines procenv_t */ 23 | #include "rlmbutil.h" /* for HANDLE_MULTIBYTE */ 24 | +#include 25 | +#include 26 | +#include 27 | +#include 28 | + 29 | +typedef int sigset_t; 30 | 31 | /************************************************************************* 32 | * * 33 | -------------------------------------------------------------------------------- /patches/sdl2/0001-SDL2-2.0.5.xinput.diff: -------------------------------------------------------------------------------- 1 | --- src/core/windows/SDL_xinput.h 2017-01-31 22:56:57.060422793 -0700 2 | +++ src/core/windows/SDL_xinput.h.old 2017-01-31 23:08:49.698942109 -0700 3 | @@ -110,13 +110,13 @@ 4 | SHORT sThumbRX; 5 | SHORT sThumbRY; 6 | DWORD dwPaddingReserved; 7 | +} XINPUT_GAMEPAD_EX2; 8 | -} XINPUT_GAMEPAD_EX; 9 | 10 | typedef struct 11 | { 12 | DWORD dwPacketNumber; 13 | XINPUT_GAMEPAD_EX Gamepad; 14 | +} XINPUT_STATE_EX2; 15 | -} XINPUT_STATE_EX; 16 | 17 | typedef struct 18 | { 19 | -------------------------------------------------------------------------------- /patches/sdl2/superseded_0001-SDL2_hg.xinput_state_ex.patch: -------------------------------------------------------------------------------- 1 | diff -Nur SDL_hg/src/core/windows/SDL_xinput.h SDL_hg.patched/src/core/windows/SDL_xinput.h 2 | --- SDL_hg/src/core/windows/SDL_xinput.h 2017-04-27 04:26:43.503808753 +0200 3 | +++ SDL_hg.patched/src/core/windows/SDL_xinput.h 2017-04-27 04:35:14.472357122 +0200 4 | @@ -110,13 +110,13 @@ 5 | SHORT sThumbRX; 6 | SHORT sThumbRY; 7 | DWORD dwPaddingReserved; 8 | -} XINPUT_GAMEPAD_EX; 9 | +} XINPUT_GAMEPAD_EX2; 10 | 11 | typedef struct 12 | { 13 | DWORD dwPacketNumber; 14 | - XINPUT_GAMEPAD_EX Gamepad; 15 | -} XINPUT_STATE_EX; 16 | + XINPUT_GAMEPAD_EX2 Gamepad; 17 | +} XINPUT_STATE_EX2; 18 | 19 | typedef struct 20 | { 21 | @@ -128,7 +128,7 @@ 22 | typedef DWORD (WINAPI *XInputGetState_t) 23 | ( 24 | DWORD dwUserIndex, /* [in] Index of the gamer associated with the device */ 25 | - XINPUT_STATE_EX* pState /* [out] Receives the current state */ 26 | + XINPUT_STATE_EX2* pState /* [out] Receives the current state */ 27 | ); 28 | 29 | typedef DWORD (WINAPI *XInputSetState_t) 30 | -------------------------------------------------------------------------------- /patches/shaderc/gcc9-cast-error-workaround.patch: -------------------------------------------------------------------------------- 1 | diff -Nur shaderc_git.back/libshaderc_spvc/src/spvc.cc shaderc_git/libshaderc_spvc/src/spvc.cc 2 | --- shaderc_git.back/libshaderc_spvc/src/spvc.cc 2019-04-01 02:33:54.019993665 +0200 3 | +++ shaderc_git/libshaderc_spvc/src/spvc.cc 2019-04-01 02:34:30.943326998 +0200 4 | @@ -142,7 +142,7 @@ 5 | shaderc_spvc_compile_options_t options, const uint8_t* data, size_t size) { 6 | if (!data || size < sizeof(*options)) return 0; 7 | 8 | - memcpy(options, data, sizeof(*options)); 9 | + memcpy(static_cast(options), data, sizeof(*options)); 10 | return sizeof(*options); 11 | } 12 | 13 | -------------------------------------------------------------------------------- /patches/tesseract/lzma_workaround.diff: -------------------------------------------------------------------------------- 1 | diff -Nur tesseract_git/CMakeLists.txt tesseract_git.patched/CMakeLists.txt 2 | --- tesseract_git/CMakeLists.txt 2019-05-09 13:01:20.946654969 +0200 3 | +++ tesseract_git.patched/CMakeLists.txt 2019-05-09 13:01:10.483430233 +0200 4 | @@ -404,6 +404,7 @@ 5 | target_link_libraries (libtesseract PUBLIC 6 | ${Leptonica_LIBRARIES} 7 | ${LibArchive_LIBRARIES} 8 | + lzma 9 | ) 10 | export(TARGETS libtesseract FILE ${CMAKE_CURRENT_BINARY_DIR}/TesseractTargets.cmake) 11 | endif() 12 | -------------------------------------------------------------------------------- /patches/tesseract_patch.diff: -------------------------------------------------------------------------------- 1 | --- CMakeLists_o.txt 2023-04-01 00:06:40.708165737 +0200 2 | +++ CMakeLists.txt 2023-04-01 00:07:39.017072293 +0200 3 | @@ -390,11 +390,11 @@ 4 | find_package(PkgConfig) 5 | # Check for required library. option -DLeptonica_DIR=path => cmake hint where 6 | # to find leptonica 7 | - find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} CONFIG) 8 | - if(NOT Leptonica_FOUND AND PKG_CONFIG_EXECUTABLE) 9 | - pkg_check_modules(Leptonica lept>=${MINIMUM_LEPTONICA_VERSION}) 10 | - link_directories(${Leptonica_LIBRARY_DIRS}) 11 | - endif() 12 | + # find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} CONFIG) 13 | + # if(NOT Leptonica_FOUND AND PKG_CONFIG_EXECUTABLE) 14 | + pkg_check_modules(Leptonica lept>=${MINIMUM_LEPTONICA_VERSION}) 15 | + link_directories(${Leptonica_LIBRARY_DIRS}) 16 | + # endif() 17 | if(NOT Leptonica_FOUND) 18 | message(FATAL_ERROR "Cannot find required library Leptonica. Quitting!") 19 | endif(NOT Leptonica_FOUND) 20 | -------------------------------------------------------------------------------- /patches/theora/theora_remove_rint_1.2.0alpha1.patch: -------------------------------------------------------------------------------- 1 | From 4554f4ccee142e52898a079a08f4dc5880def641 Mon Sep 17 00:00:00 2001 2 | From: Hagen 3 | Date: Fri, 10 Mar 2017 18:20:03 +0100 4 | Subject: [PATCH] Update encoder_example.c 5 | 6 | --- 7 | examples/encoder_example.c | 8 -------- 8 | 1 file changed, 8 deletions(-) 9 | 10 | diff --git a/examples/encoder_example.c b/examples/encoder_example.c 11 | index 9083392..024cff5 100644 12 | --- a/examples/encoder_example.c 13 | +++ b/examples/encoder_example.c 14 | @@ -52,14 +52,6 @@ 15 | /*supply missing headers and functions to Win32. going to hell, I know*/ 16 | #include 17 | #include 18 | - 19 | -static double rint(double x) 20 | -{ 21 | - if (x < 0.0) 22 | - return (double)(int)(x - 0.5); 23 | - else 24 | - return (double)(int)(x + 0.5); 25 | -} 26 | #endif 27 | 28 | #if defined(OC_COLLECT_METRICS) 29 | -------------------------------------------------------------------------------- /patches/twolame/0001-twolame-mingw-workaround.patch: -------------------------------------------------------------------------------- 1 | From 32999120da05a63d75af8764f6b80ce00161dbdd Mon Sep 17 00:00:00 2001 2 | From: DeadSix27 3 | Date: Fri, 6 Dec 2019 19:48:43 +0100 4 | Subject: [PATCH] twolame-mingw-workaround 5 | 6 | --- 7 | libtwolame/twolame.h | 27 +-------------------------- 8 | 1 file changed, 1 insertion(+), 26 deletions(-) 9 | 10 | diff --git a/libtwolame/twolame.h b/libtwolame/twolame.h 11 | index 6b3ee9d..adf208b 100644 12 | --- a/libtwolame/twolame.h 13 | +++ b/libtwolame/twolame.h 14 | @@ -41,32 +41,7 @@ extern "C" { 15 | # undef TL_API 16 | #endif 17 | 18 | -#ifdef _WIN32 19 | -# ifdef LIBTWOLAME_BUILD 20 | -# ifdef DLL_EXPORT 21 | -# define TL_API __declspec(dllexport) 22 | -# else 23 | -# define TL_API 24 | -# endif 25 | -# else 26 | -# ifdef LIBTWOLAME_STATIC 27 | -# define TL_API 28 | -# else 29 | -# define TL_API __declspec(dllimport) 30 | -# endif 31 | -# endif 32 | -#else 33 | -# ifdef GNUC 34 | -# if GNUC >= 4 35 | -# define TL_API attribute ((visibility("default"))) 36 | -# else 37 | -# define TL_API 38 | -# endif 39 | -# else 40 | -# define TL_API 41 | -# endif 42 | -#endif 43 | - 44 | +#define TL_API 45 | 46 | #ifndef TRUE 47 | #define TRUE (1) 48 | -- 49 | 2.24.0.windows.2 50 | 51 | -------------------------------------------------------------------------------- /patches/vamp/vamp-plugin-sdk-2.7.1.patch: -------------------------------------------------------------------------------- 1 | --- src/vamp-hostsdk/Window.h 2017-03-22 02:08:09.041065532 +0100 2 | +++ src/vamp-hostsdk/Window.h.fixed 2017-03-22 02:08:07.225971841 +0100 3 | @@ -42,6 +42,8 @@ 4 | #include 5 | #include 6 | 7 | +#define M_PI 3.14159265358979323846264338327 8 | + 9 | _VAMP_SDK_HOSTSPACE_BEGIN(Window.h) 10 | 11 | template 12 | -------------------------------------------------------------------------------- /patches/vapoursynth/vapoursynth-0001-statically-link.patch: -------------------------------------------------------------------------------- 1 | From bdd2150449a42f74cf94c3b4b29b534b7b1b9bfd Mon Sep 17 00:00:00 2001 2 | From: shinchiro 3 | Date: Fri, 2 Dec 2016 09:48:20 +0800 4 | Subject: [PATCH] statically link 5 | 6 | --- 7 | pc/vapoursynth.pc.in | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/pc/vapoursynth.pc.in b/pc/vapoursynth.pc.in 11 | index 85111db..137521f 100644 12 | --- a/pc/vapoursynth.pc.in 13 | +++ b/pc/vapoursynth.pc.in 14 | @@ -10,4 +10,4 @@ Version: @VERSION@ 15 | Requires.private: zimg 16 | Libs: -L${libdir} -lvapoursynth 17 | Libs.private: @ZIMG_LIBS@ @DLOPENLIB@ 18 | -Cflags: -I${includedir} 19 | +Cflags: -I${includedir} -DVS_CORE_EXPORTS 20 | -- 21 | 2.9.2 22 | 23 | -------------------------------------------------------------------------------- /patches/vapoursynth/vapoursynth-0002-api.patch: -------------------------------------------------------------------------------- 1 | diff -ur a/include/cython/vapoursynth_api.h b/include/cython/vapoursynth_api.h 2 | --- a/include/cython/vapoursynth_api.h 2017-03-27 02:32:04.553860986 +0200 3 | +++ b/include/cython/vapoursynth_api.h 2017-03-27 00:38:36.197373500 +0200 4 | @@ -2,6 +2,7 @@ 5 | 6 | #ifndef __PYX_HAVE_API__vapoursynth 7 | #define __PYX_HAVE_API__vapoursynth 8 | +#include 9 | #include "Python.h" 10 | #include "vapoursynth.h" 11 | 12 | -------------------------------------------------------------------------------- /patches/vapoursynth/vapoursynth-0003-windows-header.patch: -------------------------------------------------------------------------------- 1 | diff -ur a/src/vsscript/vsscript.cpp b/src/vsscript/vsscript.cpp 2 | --- a/src/vsscript/vsscript.cpp 2017-03-27 03:15:18.284263700 +0200 3 | +++ b/src/vsscript/vsscript.cpp 2017-03-27 03:17:04.028937876 +0200 4 | @@ -28,7 +28,7 @@ 5 | #ifdef VS_TARGET_OS_WINDOWS 6 | #define WIN32_LEAN_AND_MEAN 7 | #define NOMINMAX 8 | -#include 9 | +#include 10 | #endif 11 | 12 | static std::once_flag flag; 13 | -------------------------------------------------------------------------------- /patches/vorbis-tools/vorbis_tools_odd_locale.patch: -------------------------------------------------------------------------------- 1 | diff -ur vorbis-tools_git/intl/localename.c vorbis-tools_git_patched/intl/localename.c 2 | --- vorbis-tools_git/intl/localename.c 2017-03-30 13:13:12.821267890 +0200 3 | +++ vorbis-tools_git_patched/intl/localename.c 2017-03-30 13:12:35.593598270 +0200 4 | @@ -1386,7 +1386,7 @@ 5 | case LANG_SINDHI: 6 | switch (sub) 7 | { 8 | - case SUBLANG_SINDHI_PAKISTAN: return "sd_PK"; 9 | + /*case SUBLANG_SINDHI_PAKISTAN: return "sd_PK";*/ 10 | case SUBLANG_SINDHI_AFGHANISTAN: return "sd_AF"; 11 | } 12 | return "sd"; 13 | -------------------------------------------------------------------------------- /patches/vpx/vpx_160_semaphore.patch: -------------------------------------------------------------------------------- 1 | diff --git a/vp8/common/threading.h b/vp8/common/threading.h 2 | index ece64f3..2a00a4e 100644 3 | --- a/vp8/common/threading.h 4 | +++ b/vp8/common/threading.h 5 | @@ -73,6 +73,7 @@ extern "C" { 6 | #include 7 | 8 | #else 9 | +#include 10 | #include 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /patches/vulkan/test.patch: -------------------------------------------------------------------------------- 1 | diff --git a/loader/vk_loader_platform.h b/loader/vk_loader_platform.h 2 | index 864eaf4be..1956849d1 100644 3 | --- a/loader/vk_loader_platform.h 4 | +++ b/loader/vk_loader_platform.h 5 | @@ -29,7 +29,7 @@ 6 | #include 7 | #endif 8 | 9 | -#if defined(_WIN32) 10 | +#if defined(_MSC_VER) 11 | // WinSock2.h must be included *BEFORE* windows.h 12 | #include 13 | #endif // _WIN32 14 | -------------------------------------------------------------------------------- /patches/wget/0001-remove-RAND_screen-which-doesn-t-exist-on-mingw.patch: -------------------------------------------------------------------------------- 1 | diff --git a/src/openssl.c b/src/openssl.c 2 | index c18b5050..917641c1 100644 3 | --- a/src/openssl.c 4 | +++ b/src/openssl.c 5 | @@ -106,7 +106,7 @@ init_prng (void) 6 | RAND_egd (opt.egd_file); 7 | #endif 8 | 9 | -#ifdef WINDOWS 10 | +#if defined(WINDOWS) && !defined(__MINGW32__) 11 | /* Under Windows, we can try to seed the PRNG using screen content. 12 | This may or may not work, depending on whether we'll calling Wget 13 | interactively. */ 14 | -------------------------------------------------------------------------------- /patches/wxwidgets/0001-wxWidgets-c++11-PR2222.patch: -------------------------------------------------------------------------------- 1 | From aae8432e4cc8557a4e6c2b189e2924d1ae3f7ea7 Mon Sep 17 00:00:00 2001 2 | From: Scott Talbert 3 | Date: Sat, 20 Feb 2016 00:08:14 -0500 4 | Subject: [PATCH] Fix STC compilation with GCC6 5 | 6 | Closes #17147 7 | --- 8 | src/stc/scintilla/src/Editor.cxx | 5 +++-- 9 | 1 file changed, 3 insertions(+), 2 deletions(-) 10 | 11 | diff --git a/src/stc/scintilla/src/Editor.cxx b/src/stc/scintilla/src/Editor.cxx 12 | index cd72953..2081df2 100644 13 | --- a/src/stc/scintilla/src/Editor.cxx 14 | +++ b/src/stc/scintilla/src/Editor.cxx 15 | @@ -11,6 +11,7 @@ 16 | #include 17 | #include 18 | 19 | +#include 20 | #include 21 | #include 22 | #include 23 | @@ -5841,9 +5842,9 @@ void Editor::GoToLine(int lineNo) { 24 | } 25 | 26 | static bool Close(Point pt1, Point pt2) { 27 | - if (abs(pt1.x - pt2.x) > 3) 28 | + if (std::abs(pt1.x - pt2.x) > 3) 29 | return false; 30 | - if (abs(pt1.y - pt2.y) > 3) 31 | + if (std::abs(pt1.y - pt2.y) > 3) 32 | return false; 33 | return true; 34 | } 35 | -------------------------------------------------------------------------------- /patches/x265/0001-Remove_exports.patch: -------------------------------------------------------------------------------- 1 | diff -uprN a/source/x265-extras.h b/source/x265-extras.h 2 | --- a/source/x265-extras.h 2017-06-14 22:07:01.485283923 -0700 3 | +++ b/source/x265-extras.h 2017-06-14 22:38:28.945923631 -0700 4 | @@ -33,11 +33,7 @@ 5 | extern "C" { 6 | #endif 7 | 8 | -#if _WIN32 9 | -#define LIBAPI __declspec(dllexport) 10 | -#else 11 | #define LIBAPI 12 | -#endif 13 | 14 | /* Open a CSV log file. On success it returns a file handle which must be passed 15 | * to x265_csvlog_frame() and/or x265_csvlog_encode(). The file handle must be -------------------------------------------------------------------------------- /patches/zvbi/0002-zvbi-0.2.35_ioctl.patch: -------------------------------------------------------------------------------- 1 | From 2829b5ba1b610352060c9ffdf72b7c909a9fbfc3 Mon Sep 17 00:00:00 2001 2 | From: DeadSix27 3 | Date: Mon, 19 Feb 2018 14:45:27 +0100 4 | Subject: [PATCH 1/1] zvbi-0.2.35_ioctl 5 | 6 | --- 7 | contrib/ntsc-cc.c | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | diff --git a/contrib/ntsc-cc.c b/contrib/ntsc-cc.c 11 | index 066ef07..1a4fdf2 100644 12 | --- a/contrib/ntsc-cc.c 13 | +++ b/contrib/ntsc-cc.c 14 | @@ -32,7 +32,6 @@ 15 | #include 16 | #include 17 | #include 18 | -#include 19 | #include 20 | #include 21 | #include 22 | @@ -45,6 +44,7 @@ 23 | #include "src/libzvbi.h" 24 | 25 | #ifdef ENABLE_V4L2 26 | +# include 27 | # include 28 | # include "src/videodev2k.h" 29 | #endif 30 | -- 31 | 2.16.1 32 | 33 | -------------------------------------------------------------------------------- /tools/README.md: -------------------------------------------------------------------------------- 1 | These tools automate some steps when working with the packages, like update checking or merging of all package files. 2 | 3 | They're unoptimized and maybe buggy and only exist to make some things easier. 4 | 5 | These scripts will generally only run on Linux and may require additional libraries, check their source for details. -------------------------------------------------------------------------------- /tools/highway.py: -------------------------------------------------------------------------------- 1 | { 2 | 'repo_type' : 'git', 3 | 'url' : 'https://github.com/google/highway.git', 4 | # 'depth_git': 0, 5 | 'conf_system' : 'cmake', 6 | 'build_system' : 'ninja', 7 | 'source_subfolder' : 'build', 8 | 'env_exports' : { # 2020.06.19 9 | 'CFLAGS' : ' -Wa,-muse-unaligned-vector-move {original_cflags}', 10 | 'CXXFLAGS' : ' -Wa,-muse-unaligned-vector-move {original_cflags}', 11 | 'CPPFLAGS' : ' -Wa,-muse-unaligned-vector-move {original_cflags}', 12 | }, 13 | 'configure_options' : 14 | '.. {cmake_prefix_options} ' 15 | '-DCMAKE_INSTALL_PREFIX={target_prefix} ' 16 | '-DBUILD_SHARED_LIBS=false ' 17 | '-DCMAKE_BUILD_TYPE=Release ' 18 | '-DBUILD_TESTING=OFF ' 19 | '-DHWY_CMAKE_ARM7=OFF ' 20 | '-DCMAKE_GNUtoMS=OFF ' 21 | '-DHWY_ENABLE_EXAMPLES=OFF ' 22 | '-DHWY_ENABLE_CONTRIB=OFF ' 23 | '-DHWY_ENABLE_INSTALL=ON ' 24 | '-DHWY_WARNINGS_ARE_ERRORS=OFF ' 25 | , 26 | 'update_check' : { 'type' : 'git', }, 27 | '_info' : { 'version' : None, 'fancy_name' : 'highway' }, 28 | } -------------------------------------------------------------------------------- /tools/hs: -------------------------------------------------------------------------------- 1 | wget $* -O - | sha256sum - 2 | -------------------------------------------------------------------------------- /tools/libs/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeadSix27/python_cross_compile_script/0e5b985948c28ce5e97a325312ed539bd36f2859/tools/libs/__init__.py -------------------------------------------------------------------------------- /tools/libs/htmllistparse/__init__.py: -------------------------------------------------------------------------------- 1 | from .htmllistparse import * 2 | 3 | __version__ = '0.5' 4 | -------------------------------------------------------------------------------- /tools/libs/htmllistparse_LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016-2017 Dingyuan Wang 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /tools/setup.cfg: -------------------------------------------------------------------------------- 1 | [pep8] 2 | ignore = W191,E501,E131,E116,E203,E221,E251,E241 --------------------------------------------------------------------------------