1
0
mirror of https://github.com/blupi-games/planetblupi-dev synced 2024-12-30 13:55:36 +01:00

Compare commits

..

84 Commits

Author SHA1 Message Date
Mathieu Schroeter
b2e3def393
USMR 2024-11-17 23:09:34 +01:00
Mathieu Schroeter
4e3ffee0c6
Restore AppRun 2024-11-15 23:13:02 +01:00
Mathieu Schroeter
c715fc35f3
Adapt build to the latest appimagetool 2024-11-15 22:04:29 +01:00
Mathieu Schroeter
e71bff1f62
USMR 2024-04-23 22:26:46 +02:00
Mathieu Schroeter
2e5ef802db
USMR 2024-03-26 14:19:34 +01:00
Mathieu Schroeter
af5a13b75d zou-flow: commit submodule 'SDL_kitchensink'.
# zou-flow - 8.3.0.2410 net8.0
2024-03-25 22:55:11 +01:00
Mathieu Schroeter
2d9159e3a9
Upgrade FFmpeg to v5 (crash with v6) 2024-03-25 22:49:02 +01:00
Mathieu Schroeter
3e9ee9a112 zou-flow: commit submodule 'SDL_kitchensink'.
# zou-flow - 8.3.0.2410 net8.0
2024-03-25 21:54:30 +01:00
Mathieu Schroeter
c05efe5293
Upgrade SDL_Kitchensink 2024-03-25 21:54:27 +01:00
Mathieu Schroeter
36653d15e1
USMR 2023-12-21 18:06:36 +01:00
Mathieu Schroeter
c08ff9be28
USMR 2023-11-22 23:17:11 +01:00
Mathieu Schroeter
53aec5c294
Sync with Blupimania 2023-11-22 23:02:12 +01:00
Mathieu Schroeter
b570170205
USMR 2023-10-09 21:27:40 +02:00
Mathieu Schroeter
c575d7cdc0
Remove refs on planetblupi-www 2023-10-09 21:26:55 +02:00
Mathieu Schroeter
6a17f4ba31
Remove www submodule 2023-10-09 21:25:42 +02:00
Mathieu Schroeter
d19724e56a
USMR 2023-08-29 23:59:21 +02:00
Mathieu Schroeter
d2e91f46c1
USMR 2023-08-28 21:49:55 +02:00
Mathieu Schroeter
8eee30ff2f
Add SDL_ttf 2023-08-28 19:49:18 +00:00
Mathieu Schroeter
31e0f21c0d
USMR 2023-08-28 21:35:44 +02:00
Mathieu Schroeter
2e6bc354b9
USMR 2023-08-26 23:53:01 +02:00
Mathieu Schroeter
d8a2c0839e
USMR 2023-08-26 23:50:10 +02:00
Mathieu Schroeter
024700f918 USMR 2023-08-26 00:24:55 +02:00
Mathieu Schroeter
848c33346b Remove path on a specific SDK, set only the target version 2023-06-29 00:04:37 +02:00
Mathieu Schroeter
af334f8c4e
USMR 2023-06-28 23:03:10 +02:00
Mathieu Schroeter
701921ed71
Fix more... 2023-06-28 22:17:07 +02:00
Mathieu Schroeter
ddd96a007f
Try to fix patch (again) 2023-06-28 22:14:33 +02:00
Mathieu Schroeter
1eea164f71
Revert "Fix patch"
This reverts commit d5be9dc5044a1e7b37733fcf34e1cfad1d14cb42.
2023-06-28 22:11:30 +02:00
Mathieu Schroeter
d5be9dc504
Fix patch 2023-06-28 22:07:18 +02:00
Mathieu Schroeter
194620dc04
Revert "Rename more symbols"
This reverts commit 5510848ea598fe90b418e07d4feb0b3a927d8cae.
2023-06-28 22:03:50 +02:00
Mathieu Schroeter
5510848ea5
Rename more symbols 2023-06-28 22:01:51 +02:00
Mathieu Schroeter
3dbcd2af11
Fix duplicate symbol with a patch (renaming in freetype) 2023-06-28 21:39:41 +02:00
Mathieu Schroeter
cf15404674 USMR 2023-06-25 18:14:51 +02:00
Mathieu Schroeter
a9d4885e23 Add an option to enable the signatures 2023-06-25 15:57:18 +02:00
Mathieu Schroeter
02b7bf0348 USMR 2023-06-25 15:38:17 +02:00
Mathieu Schroeter
800a6e7346 Fix https URLs 2023-06-25 15:38:09 +02:00
Mathieu Schroeter
56f07daea5 USMR 2023-06-25 15:00:15 +02:00
Mathieu Schroeter
783516a175 USMR 2023-06-25 14:59:22 +02:00
Mathieu Schroeter
28029aa31d
USMR 2023-06-20 22:34:49 +02:00
Mathieu Schroeter
b5946d52ed
USMR 2023-06-20 22:19:41 +02:00
Mathieu Schroeter
e919dfa426
USMR 2023-06-19 23:55:38 +02:00
Mathieu Schroeter
8cb3db2af2
USMR 2023-06-19 22:45:06 +02:00
Mathieu Schroeter
ed158f756b USMR 2023-06-16 23:37:12 +02:00
Mathieu Schroeter
fab04aafb8 Merge branch 'master' of https://github.com/blupi-games/planetblupi-dev 2023-06-15 22:43:26 +02:00
Mathieu Schroeter
70983326ba Upgrade SDL2 2023-06-15 22:40:13 +02:00
Mathieu Schroeter
abfe24e2a0
USMR 2022-11-14 21:41:57 +01:00
Mathieu Schroeter
9d6d671ef7
Upgrade SDL to latest version 2022-11-06 23:44:49 +01:00
Mathieu Schroeter
f5ecc317ff
Upgrade gettext to latest version 2022-11-06 23:26:34 +01:00
Mathieu Schroeter
620a86c4e9
Upgrade zlib version (fix link by the way) 2022-11-06 23:11:33 +01:00
Mathieu Schroeter
6583011690
USMR 2022-10-31 22:50:23 +01:00
Mathieu Schroeter
153d68f84c
USMR 2022-10-31 22:12:24 +01:00
Mathieu Schroeter
0bb0f7a172
USMR 2022-10-30 23:28:55 +01:00
Mathieu Schroeter
3d165f51cd
USMR 2022-10-30 23:15:36 +01:00
Mathieu Schroeter
997cea42d8
USMR 2022-10-30 21:11:20 +01:00
Mathieu Schroeter
c41eb597b1
USMR 2022-10-30 21:05:20 +01:00
Mathieu Schroeter
a7591c3781
USMR 2022-10-22 22:14:53 +02:00
Mathieu Schroeter
28102aca4c
USMR 2022-09-29 23:40:40 +02:00
Mathieu Schroeter
d10ba4f491
USMR 2022-09-27 00:14:10 +02:00
Mathieu Schroeter
d7abbf65b0
USMR 2022-09-26 23:28:56 +02:00
Mathieu Schroeter
1176b91cd8
Upgrade SDL deps (it fixes regressions with fullscreen) 2022-09-26 23:28:46 +02:00
Mathieu Schroeter
4e88ae5de8
USMR 2022-07-17 00:24:24 +02:00
Mathieu Schroeter
e48e956c7f
USMR 2022-07-15 17:57:28 +02:00
Mathieu Schroeter
9871bcd887
USMR 2022-07-13 00:28:42 +02:00
Mathieu Schroeter
c4c5961907
Upgrade SDL2 to latest versions 2022-07-13 00:24:46 +02:00
Mathieu Schroeter
36cd07341d
USMR 2022-06-24 23:53:55 +02:00
Mathieu Schroeter
d3fa75977b
Ensure to use Unix Makefiles generator
Because ninja cannot be used here without changes in the scripts.
2022-06-24 23:47:28 +02:00
Mathieu Schroeter
5a9e2e04a9
USMR 2022-06-24 23:34:08 +02:00
Mathieu Schroeter
69cee90f34
Add SDL_ttf as dep 2022-06-24 23:33:59 +02:00
Mathieu Schroeter
b1ffdfbb77
USMR 2022-01-14 23:35:23 +01:00
Mathieu Schroeter
fe06767dbb
USMR 2022-01-14 23:26:48 +01:00
Mathieu Schroeter
b865100e00
USMR 2022-01-14 23:18:26 +01:00
Mathieu Schroeter
d7f1c6fc18
Upgrade SDL 2022-01-14 23:17:50 +01:00
Mathieu Schroeter
32ec31af07
Fix link on gettext source tarball 2021-04-21 09:48:00 +02:00
Mathieu Schroeter
452f481360
Add option to disable explicitly AppImage generator 2021-04-21 09:47:47 +02:00
Mathieu Schroeter
7bb3cddcaf
USMR 2021-04-21 09:25:19 +02:00
Mathieu Schroeter
b666afe65f Export SDKROOT in order to fix build on Catalina 2019-10-17 11:19:44 +02:00
Mathieu Schroeter
32976f2a42 USMR 2019-10-17 07:19:44 +02:00
Mathieu Schroeter
78d2a7b07c USMR 2019-09-06 23:42:05 +02:00
Mathieu Schroeter
12cdd125c7 USMR 2019-05-09 23:50:02 +02:00
Mathieu Schroeter
2361f2f9f6
Update README.md 2019-03-29 23:39:30 +01:00
Mathieu Schroeter
f38727c88b USMR 2019-03-08 06:01:07 +01:00
Mathieu Schroeter
41e04e6c31 USMR 2019-03-08 06:00:02 +01:00
Mathieu Schroeter
ee2d194bf8 USMR 2019-02-26 22:35:44 +01:00
Mathieu Schroeter
f2724c2ef8 USMR 2019-02-25 18:17:00 +01:00
Mathieu Schroeter
f0d041ad2a USMR 2019-02-23 15:56:17 +01:00
10 changed files with 897 additions and 33 deletions

3
.gitmodules vendored
View File

@ -7,6 +7,3 @@
[submodule "planetblupi-data"]
path = planetblupi-data
url = ../planetblupi-data.git
[submodule "planetblupi-www"]
path = planetblupi-www
url = ../planetblupi-www.git

View File

@ -1,6 +1,8 @@
cmake_minimum_required (VERSION 3.2)
set (CMAKE_GENERATOR "Unix Makefiles" CACHE INTERNAL "" FORCE)
include (${CMAKE_ROOT}/Modules/ExternalProject.cmake)
include_directories (${CMAKE_BINARY_DIR}/include)
@ -9,6 +11,8 @@ link_directories (${CMAKE_BINARY_DIR}/lib)
option (STATIC_BUILD "Build Planet Blupi statically" ON)
option (EMSCRIPTEN "Build Planet Blupi for emscripten toolchain" OFF)
option (ASMJS "Build for asm.js instead of WebAssembly (slower)" OFF)
option (DISABLE_APPIMAGE "Disable AppImage generation" OFF)
option (SIGN_APP "Sign the executables" OFF)
if (EMSCRIPTEN)
set (BUILD_JS ON)
@ -29,11 +33,10 @@ if (BUILD_DARWIN)
set (CMD_LDFLAGS "-L${CMAKE_BINARY_DIR}/lib -framework AudioToolBox -framework AudioUnit -framework CoreAudio -framework CoreFoundation -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -framework Carbon")
if (OLD_SDK)
set (OSX_SDK_VERSION 10.9)
set (CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX${OSX_SDK_VERSION}.sdk/")
set (OSX_SDK_VERSION 10.13)
set (CMAKE_OSX_DEPLOYMENT_TARGET ${OSX_SDK_VERSION})
set (CMD_CXXFLAGS "-isysroot ${CMAKE_OSX_SYSROOT} -mmacosx-version-min=${OSX_SDK_VERSION} ${CMAKE_CXX_FLAGS}")
set (CMD_CFLAGS "-isysroot ${CMAKE_OSX_SYSROOT} -mmacosx-version-min=${OSX_SDK_VERSION} ${CMAKE_C_FLAGS}")
set (CMD_CXXFLAGS "-mmacosx-version-min=${OSX_SDK_VERSION} ${CMAKE_CXX_FLAGS}")
set (CMD_CFLAGS "-mmacosx-version-min=${OSX_SDK_VERSION} ${CMAKE_C_FLAGS}")
endif ()
set (CMD_CPPFLAGS "-I${CMAKE_BINARY_DIR}/include")
elseif (BUILD_JS)
@ -71,25 +74,25 @@ set (ARGAGG_VER 0.4.6)
DLEXT (https://github.com/vietjtnguyen/argagg/archive/${ARGAGG_VER}.tar.gz argagg-${ARGAGG_VER}.tar.gz)
set (HAS_FFMPEG ON)
set (FFMPEG_VER 4.1.1)
set (FFMPEG_VER 5.1.4)
DLEXT (http://www.ffmpeg.org/releases/ffmpeg-${FFMPEG_VER}.tar.xz ffmpeg-${FFMPEG_VER}.tar.xz)
if (NOT BUILD_JS)
set (HAS_SDLMIXER ON)
set (SDLMIXER_VER 2.0.4)
DLEXT (https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-${SDLMIXER_VER}.tar.gz SDL2_mixer-${SDLMIXER_VER}.tar.gz)
set (SDLMIXER_VER 2.6.3)
DLEXT (https://github.com/libsdl-org/SDL_mixer/releases/download/release-${SDLMIXER_VER}/SDL2_mixer-${SDLMIXER_VER}.tar.gz SDL2_mixer-${SDLMIXER_VER}.tar.gz)
set (HAS_ZLIB ON)
set (ZLIB_VER 1.2.11)
DLEXT (http://www.zlib.net/zlib-${ZLIB_VER}.tar.gz zlib-${ZLIB_VER}.tar.gz)
set (ZLIB_VER 1.2.13)
DLEXT (http://www.zlib.net/fossils/zlib-${ZLIB_VER}.tar.gz zlib-${ZLIB_VER}.tar.gz)
set (HAS_CURL ON)
set (CURL_VER 7.64.0)
DLEXT (https://curl.haxx.se/download/curl-${CURL_VER}.tar.xz curl-${CURL_VER}.tar.xz)
set (HAS_GETTEXT ON)
set (GETTEXT_VER 0.19.8.1)
DLEXT (http://ftp.thunix.cf/gnu-ftp/gettext/gettext-${GETTEXT_VER}.tar.xz gettext-${GETTEXT_VER}.tar.xz)
set (GETTEXT_VER 0.21.1)
DLEXT (http://ftp.gnu.org/pub/gnu/gettext/gettext-${GETTEXT_VER}.tar.xz gettext-${GETTEXT_VER}.tar.xz)
set (HAS_PNG ON)
set (PNG_VER 1.6.36)
@ -100,16 +103,20 @@ if (NOT BUILD_JS)
DLEXT (http://downloads.xiph.org/releases/ogg/libogg-${OGG_VER}.tar.xz libogg-${OGG_VER}.tar.xz)
set (HAS_VORBIS ON)
set (VORBIS_VER 1.3.6)
set (VORBIS_VER 1.3.7)
DLEXT (http://downloads.xiph.org/releases/vorbis/libvorbis-${VORBIS_VER}.tar.xz libvorbis-${VORBIS_VER}.tar.xz)
set (HAS_SDL ON)
set (SDL_VER 2.0.9)
set (SDL_VER 2.28.5)
DLEXT (https://www.libsdl.org/release/SDL2-${SDL_VER}.tar.gz SDL2-${SDL_VER}.tar.bz2)
set (HAS_SDLIMAGE ON)
set (SDLIMAGE_VER 2.0.4)
DLEXT (https://www.libsdl.org/projects/SDL_image/release/SDL2_image-${SDLIMAGE_VER}.tar.gz SDL2_image-${SDLIMAGE_VER}.tar.gz)
set (SDLIMAGE_VER 2.6.3)
DLEXT (https://github.com/libsdl-org/SDL_image/releases/download/release-${SDLIMAGE_VER}/SDL2_image-${SDLIMAGE_VER}.tar.gz SDL2_image-${SDLIMAGE_VER}.tar.gz)
set (HAS_SDLTTF ON)
set (SDLTTF_VER 2.20.1)
DLEXT (https://github.com/libsdl-org/SDL_ttf/releases/download/release-${SDLTTF_VER}/SDL2_ttf-${SDLTTF_VER}.tar.gz SDL2_ttf-${SDLTTF_VER}.tar.gz)
endif ()
if (BUILD_LINUX OR BUILD_WINDOWS)
@ -163,6 +170,9 @@ endif ()
if (HAS_SDLMIXER)
message (STATUS " * SDL2_mixer (${SDLMIXER_VER})")
endif ()
if (HAS_SDLTTF)
message (STATUS " * SDL2_ttf (${SDLTTF_VER})")
endif ()
if (HAS_KITCHENSINK)
message (STATUS " * SDL_kitchensink")
endif ()
@ -398,7 +408,6 @@ if (HAS_FFMPEG)
--enable-demuxer=matroska
--enable-protocol=file
--disable-crystalhd
--disable-xvmc
--disable-vaapi
--disable-videotoolbox
--disable-vdpau
@ -473,6 +482,7 @@ endif ()
if (HAS_VORBIS)
ExternalProject_Add (libvorbis_Project
URL ${CMAKE_CURRENT_SOURCE_DIR}/externals/libvorbis-${VORBIS_VER}.tar.xz
PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_SOURCE_DIR}/externals/patches/libvorbis-${VORBIS_VER}.patch
PREFIX ${CMAKE_BINARY_DIR}
CONFIGURE_COMMAND ${CMD} ./configure
--prefix=${CMAKE_BINARY_DIR}
@ -731,6 +741,30 @@ if (HAS_SDLMIXER)
set (planetblupi_DEPS ${planetblupi_DEPS} SDL2_mixer_Project)
endif ()
###########
## SDL2_ttf
###########
if (HAS_SDLTTF)
ExternalProject_Add (SDL2_ttf_Project
URL ${CMAKE_CURRENT_SOURCE_DIR}/externals/SDL2_ttf-${SDLTTF_VER}.tar.gz
PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_SOURCE_DIR}/externals/patches/SDL2_ttf-${SDLTTF_VER}.patch
PREFIX ${CMAKE_BINARY_DIR}
CMAKE_COMMAND ${CMD} cmake
CMAKE_ARGS -DBUILD_SHARED_LIBS=OFF
-DSDL2TTF_SAMPLES=OFF
-DSDL2TTF_FREETYPE=ON
-DSDL2TTF_HARFBUZZ=ON
-DSDL2TTF_VENDORED=ON
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
INSTALL_DIR ${CMAKE_BINARY_DIR}
BUILD_ALWAYS 1
DEPENDS SDL2_Project
)
set (planetblupi_DEPS ${planetblupi_DEPS} SDL2_ttf_Project)
endif ()
##################
## SDL_kitchensink
##################
@ -742,8 +776,8 @@ if (HAS_KITCHENSINK)
endif ()
if (BUILD_DARWIN AND OLD_SDK)
set (KITCHENSINK_FLAGS "-isysroot ${CMAKE_OSX_SYSROOT} -mmacosx-version-min=${OSX_SDK_VERSION}")
set (KITCHENSINK_CMAKE "-DOSX_SDK_VERSION=${OSX_SDK_VERSION} -DCMAKE_OSX_SYSROOT=${CMAKE_OSX_SYSROOT} -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET}")
set (KITCHENSINK_FLAGS "-mmacosx-version-min=${OSX_SDK_VERSION}")
set (KITCHENSINK_CMAKE "-DOSX_SDK_VERSION=${OSX_SDK_VERSION} -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET}")
set (CMAKE_C_FLAGS "${KITCHENSINK_FLAGS} ${CMAKE_C_FLAGS}")
endif ()
@ -753,7 +787,8 @@ if (HAS_KITCHENSINK)
SOURCE_DIR ${CMAKE_SOURCE_DIR}/SDL_kitchensink
PREFIX ${CMAKE_BINARY_DIR}
CMAKE_COMMAND ${CMD} cmake
CMAKE_ARGS -DDISABLE_SHARED=true
CMAKE_ARGS -DBUILD_SHARED=false
-DBUILD_STATIC=true
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
${KITCHENSINK_CMAKE}
@ -769,13 +804,13 @@ endif ()
## planetblupi
##############
if (BUILD_LINUX)
if (BUILD_LINUX AND NOT DISABLE_APPIMAGE)
set (APPIMAGE_APPRUN_BIN "AppRun-x86_64")
set (APPIMAGE_APPRUN_URL "https://github.com/probonopd/AppImageKit/releases/download/continuous/${APPIMAGE_APPRUN_BIN}")
set (APPIMAGE_APPRUN_PROGRAM "${CMAKE_CURRENT_SOURCE_DIR}/externals/${APPIMAGE_APPRUN_BIN}")
set (APPIMAGE_TOOL_BIN "appimagetool-x86_64.AppImage")
set (APPIMAGE_TOOL_URL "https://github.com/probonopd/AppImageKit/releases/download/continuous/${APPIMAGE_TOOL_BIN}")
set (APPIMAGE_TOOL_URL "https://github.com/AppImage/appimagetool/releases/download/continuous/${APPIMAGE_TOOL_BIN}")
set (APPIMAGE_TOOL_PROGRAM "${CMAKE_CURRENT_SOURCE_DIR}/externals/${APPIMAGE_TOOL_BIN}")
if (NOT EXISTS "${APPIMAGE_APPRUN_PROGRAM}")
@ -817,5 +852,5 @@ add_custom_target (dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
set (CPACK_SOURCE_GENERATOR "TXZ")
set (CPACK_SOURCE_PACKAGE_FILE_NAME "planetblupi-dev")
set (CPACK_SOURCE_IGNORE_FILES "/build/;/Debug/;/Release/;/planetblupi-data/;/planetblupi-www/;/.git/;.git;.directory;~$;${CPACK_SOURCE_IGNORE_FILES}")
set (CPACK_SOURCE_IGNORE_FILES "/build/;/Debug/;/Release/;/planetblupi-data/;/.git/;.git;.directory;~$;${CPACK_SOURCE_IGNORE_FILES}")
include (CPack)

View File

@ -28,7 +28,15 @@ standalone, the installation is provided via an [NSIS][2] installer.
> by [CMake][6]. In the case of [AppImage][1], it's handled by [CMake][6] too
> but via a custom `.cmake` file available in the `planetblupi/cmake` directory.
## Prepare environment
## Linux packages
If you prefer and if it's available, you can try to install the game via your
distribution package manager instead of downloading the AppImage. If the latest
version is not available for you, the AppImage is the primary choice.
[![Packaging status](https://repology.org/badge/vertical-allrepos/planetblupi.svg)](https://repology.org/project/planetblupi/versions)
## Prepare environment for building
```sh
git clone --recursive https://github.com/blupi-games/planetblupi-dev.git
@ -41,7 +49,6 @@ submodules.
- **source-code**: `planetblupi/`
- **source-assets**: `planetblupi-data/`
- **website**: `planetblupi-www/` (see <http://www.blupi.org>)
### Linux
@ -136,6 +143,7 @@ _Planet Blupi_ and all resource files are licensed to the GPLv3+ license.
| [SDL2][18] | zlib license | a cross-platform software library designed to provide a HAL to computer multimedia hardware |
| [SDL2_image][19] | zlib license | an image loading library that is used with the SDL library |
| [SDL2_mixer][20] | zlib license | a sound mixing library that is used with the SDL library |
| [SDL2_ttf][24] | zlib license | support for TrueType (.ttf) font files with the SDL library |
| [zlib][21] | own license | a Massively Spiffy Yet Delicately Unobtrusive Compression Library |
[1]: http://appimage.org
@ -156,8 +164,9 @@ _Planet Blupi_ and all resource files are licensed to the GPLv3+ license.
[16]: https://freedesktop.org/software/pulseaudio/doxygen/
[17]: https://github.com/katajakasa/SDL_kitchensink
[18]: https://www.libsdl.org
[19]: https://www.libsdl.org/projects/SDL_image/
[20]: https://www.libsdl.org/projects/SDL_mixer/
[19]: https://github.com/libsdl-org/SDL_image
[20]: https://github.com/libsdl-org/SDL_mixer
[21]: https://zlib.net/
[22]: https://xiph.org/downloads/
[23]: http://www.mega-nerd.com/libsndfile/
[24]: https://github.com/libsdl-org/SDL_ttf

@ -1 +1 @@
Subproject commit 616a3b439bde626f26726e2484713e6c9a475dcb
Subproject commit 50eb03ec82497edbffe2a0a534324b3fcb5ed695

View File

@ -7,6 +7,7 @@ export BINARY_PATH="@CMAKE_BINARY_DIR@/bin"
export CPPFLAGS="$CPPFLAGS -I$INCLUDE_PATH"
if [ "@APPLE@" = "1" ]; then
export SDKROOT="@CMAKE_OSX_SYSROOT@"
export LDFLAGS="$LDFLAGS @CMD_LDFLAGS@"
export CXXFLAGS="$CXXFLAGS @CMD_CXXFLAGS@"
export CFLAGS="$CFLAGS @CMD_CFLAGS@"

808
externals/patches/SDL2_ttf-2.20.1.patch vendored Normal file
View File

@ -0,0 +1,808 @@
From 08579ba339a1bb94ea5483a6a10b30c4c0cde013 Mon Sep 17 00:00:00 2001
From: Mathieu Schroeter <mathieu@schroetersa.ch>
Date: Wed, 28 Jun 2023 22:13:51 +0200
Subject: Rename some functions in order to prevent clash with the linker
diff --git a/external/freetype/docs/oldlogs/ChangeLog.21 b/external/freetype/docs/oldlogs/ChangeLog.21
index e8a36ae..44f1b74 100644
--- a/external/freetype/docs/oldlogs/ChangeLog.21
+++ b/external/freetype/docs/oldlogs/ChangeLog.21
@@ -5825,7 +5825,7 @@
* src/gzip/ftgzip.c: C++ doesn't like that the array `inflate_mask'
is declared twice. It is perhaps better to modify the zlib source
files directly instead of this hack.
- (zcalloc, zfree, ft_gzip_stream_close, ft_gzip_stream_io): Add casts
+ (_zcalloc, zfree, ft_gzip_stream_close, ft_gzip_stream_io): Add casts
to make build with g++ successful.
2003-04-24 Manish Singh <yosh@gimp.org>
@@ -5919,7 +5919,7 @@
2003-04-22 Werner Lemberg <wl@gnu.org>
- * src/gzip/ftgzip.c (zcalloc) [!FT_CONFIG_OPTION_SYSTEM_ZLIB]:
+ * src/gzip/ftgzip.c (_zcalloc) [!FT_CONFIG_OPTION_SYSTEM_ZLIB]:
Convert K&R format to modern C usage.
(FT_Stream_OpenGzip): Use long constant.
diff --git a/external/freetype/docs/oldlogs/ChangeLog.23 b/external/freetype/docs/oldlogs/ChangeLog.23
index d0792cb..80c0afb 100644
--- a/external/freetype/docs/oldlogs/ChangeLog.23
+++ b/external/freetype/docs/oldlogs/ChangeLog.23
@@ -1758,12 +1758,12 @@
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
- gzip: Use FT2 zcalloc() & zfree() in ftgzip.c by default.
+ gzip: Use FT2 _zcalloc() & zfree() in ftgzip.c by default.
- * src/gzip/ftgzip.c (zcalloc, zcfree): Disable all
- zcalloc() & zfree() by zlib in zutil.c, those in
+ * src/gzip/ftgzip.c (_zcalloc, _zcfree): Disable all
+ _zcalloc() & zfree() by zlib in zutil.c, those in
ftgzip.c by FT2 are enabled by default. To use
- zlib zcalloc() & zfree(), define USE_ZLIB_ZCALLOC.
+ zlib _zcalloc() & zfree(), define USE_ZLIB_ZCALLOC.
See discussion:
https://lists.gnu.org/archive/html/freetype-devel/2009-02/msg00000.html
@@ -1771,7 +1771,7 @@
gzip: Distinguish PureC from TurboC on MSDOS.
- * src/gzip/zutil.c (zcalloc, zcfree): Enable only for
+ * src/gzip/zutil.c (_zcalloc, _zcfree): Enable only for
MSDOS platform.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
diff --git a/external/freetype/src/gzip/crc32.c b/external/freetype/src/gzip/crc32.c
index 2ddc32d..e232595 100644
--- a/external/freetype/src/gzip/crc32.c
+++ b/external/freetype/src/gzip/crc32.c
@@ -13,7 +13,7 @@
Note on the use of DYNAMIC_CRC_TABLE: there is no mutex or semaphore
protection on the static variables used to control the first-use generation
of the crc tables. Therefore, if you #define DYNAMIC_CRC_TABLE, you should
- first call get_crc_table() to initialize the tables before allowing more than
+ first call _get_crc_table() to initialize the tables before allowing more than
one thread to use crc32().
MAKECRCH can be #defined to write out crc32.h. A main() routine is also
@@ -160,7 +160,7 @@ local void make_crc_table OF((void));
/*
Define a once() function depending on the availability of atomics. If this is
compiled with DYNAMIC_CRC_TABLE defined, and if CRCs will be computed in
- multiple threads, and if atomics are not available, then get_crc_table() must
+ multiple threads, and if atomics are not available, then _get_crc_table() must
be called to initialize the tables and must return before any threads are
allowed to compute or combine CRCs.
*/
@@ -583,7 +583,7 @@ local z_crc_t x2nmodp(
* This function can be used by asm versions of crc32(), and to force the
* generation of the CRC tables in a threaded application.
*/
-const z_crc_t FAR * ZEXPORT get_crc_table()
+const z_crc_t FAR * ZEXPORT _get_crc_table()
{
#ifdef DYNAMIC_CRC_TABLE
once(&made, make_crc_table);
@@ -610,7 +610,7 @@ const z_crc_t FAR * ZEXPORT get_crc_table()
#define Z_BATCH_ZEROS 0xa10d3d0c /* computed from Z_BATCH = 3990 */
#define Z_BATCH_MIN 800 /* fewest words in a final batch */
-unsigned long ZEXPORT crc32_z(
+unsigned long ZEXPORT _crc32_z(
unsigned long crc,
const unsigned char FAR *buf,
z_size_t len)
@@ -736,7 +736,7 @@ local z_word_t crc_word_big(
#endif
/* ========================================================================= */
-unsigned long ZEXPORT crc32_z(
+unsigned long ZEXPORT _crc32_z(
unsigned long crc,
const unsigned char FAR *buf,
z_size_t len)
@@ -1065,11 +1065,11 @@ unsigned long ZEXPORT crc32(
const unsigned char FAR *buf,
uInt len)
{
- return crc32_z(crc, buf, len);
+ return _crc32_z(crc, buf, len);
}
/* ========================================================================= */
-uLong ZEXPORT crc32_combine64(
+uLong ZEXPORT _crc32_combine64(
uLong crc1,
uLong crc2,
z_off64_t len2)
@@ -1081,16 +1081,16 @@ uLong ZEXPORT crc32_combine64(
}
/* ========================================================================= */
-uLong ZEXPORT crc32_combine(
+uLong ZEXPORT _crc32_combine(
uLong crc1,
uLong crc2,
z_off_t len2)
{
- return crc32_combine64(crc1, crc2, len2);
+ return _crc32_combine64(crc1, crc2, len2);
}
/* ========================================================================= */
-uLong ZEXPORT crc32_combine_gen64(
+uLong ZEXPORT _crc32_combine_gen64(
z_off64_t len2)
{
#ifdef DYNAMIC_CRC_TABLE
@@ -1100,14 +1100,14 @@ uLong ZEXPORT crc32_combine_gen64(
}
/* ========================================================================= */
-uLong ZEXPORT crc32_combine_gen(
+uLong ZEXPORT _crc32_combine_gen(
z_off_t len2)
{
- return crc32_combine_gen64(len2);
+ return _crc32_combine_gen64(len2);
}
/* ========================================================================= */
-uLong crc32_combine_op(
+uLong _crc32_combine_op(
uLong crc1,
uLong crc2,
uLong op)
diff --git a/external/freetype/src/gzip/ftgzip.c b/external/freetype/src/gzip/ftgzip.c
index ba9bb20..1184383 100644
--- a/external/freetype/src/gzip/ftgzip.c
+++ b/external/freetype/src/gzip/ftgzip.c
@@ -54,7 +54,7 @@
/* original ZLib. */
#ifndef USE_ZLIB_ZCALLOC
-#define MY_ZCALLOC /* prevent all zcalloc() & zfree() in zutil.c */
+#define MY_ZCALLOC /* prevent all _zcalloc() & zfree() in zutil.c */
#endif
/* Note that our `zlib.h' includes `ftzconf.h' instead of `zconf.h'; */
@@ -163,7 +163,7 @@
#if !defined( FT_CONFIG_OPTION_SYSTEM_ZLIB ) && !defined( USE_ZLIB_ZCALLOC )
voidpf ZLIB_INTERNAL
- zcalloc ( voidpf opaque,
+ _zcalloc ( voidpf opaque,
unsigned items,
unsigned size )
{
@@ -172,7 +172,7 @@
void ZLIB_INTERNAL
- zcfree( voidpf opaque,
+ _zcfree( voidpf opaque,
voidpf ptr )
{
ft_gzip_free( opaque, ptr );
diff --git a/external/freetype/src/gzip/ftzconf.h b/external/freetype/src/gzip/ftzconf.h
index 5e1d68a..de8261a 100644
--- a/external/freetype/src/gzip/ftzconf.h
+++ b/external/freetype/src/gzip/ftzconf.h
@@ -36,9 +36,9 @@
# define compressBound z_compressBound
# endif
# define crc32 z_crc32
-# define crc32_combine z_crc32_combine
-# define crc32_combine64 z_crc32_combine64
-# define crc32_z z_crc32_z
+# define _crc32_combine z_crc32_combine
+# define _crc32_combine64 z_crc32_combine64
+# define _crc32_z z_crc32_z
# define deflate z_deflate
# define deflateBound z_deflateBound
# define deflateCopy z_deflateCopy
@@ -57,7 +57,7 @@
# define deflateSetHeader z_deflateSetHeader
# define deflateTune z_deflateTune
# define deflate_copyright z_deflate_copyright
-# define get_crc_table z_get_crc_table
+# define _get_crc_table z_get_crc_table
# ifndef Z_SOLO
# define gz_error z_gz_error
# define gz_intmax z_gz_intmax
@@ -111,17 +111,17 @@
# define inflateInit z_inflateInit
# define inflateInit2 z_inflateInit2
# define inflateInit2_ z_inflateInit2_
-# define inflateInit_ z_inflateInit_
+# define _inflateInit_ z_inflateInit_
# define inflateMark z_inflateMark
# define inflatePrime z_inflatePrime
# define inflateReset z_inflateReset
# define inflateReset2 z_inflateReset2
-# define inflateResetKeep z_inflateResetKeep
+# define _inflateResetKeep z_inflateResetKeep
# define inflateSetDictionary z_inflateSetDictionary
# define inflateSync z_inflateSync
-# define inflateSyncPoint z_inflateSyncPoint
-# define inflateUndermine z_inflateUndermine
-# define inflateValidate z_inflateValidate
+# define _inflateSyncPoint z_inflateSyncPoint
+# define _inflateUndermine z_inflateUndermine
+# define _inflateValidate z_inflateValidate
# define inflate_copyright z_inflate_copyright
# define inflate_fast z_inflate_fast
# define inflate_table z_inflate_table
@@ -129,13 +129,13 @@
# define uncompress z_uncompress
# define uncompress2 z_uncompress2
# endif
-# define zError z_zError
+# define _zError z_zError
# ifndef Z_SOLO
-# define zcalloc z_zcalloc
-# define zcfree z_zcfree
+# define _zcalloc z_zcalloc
+# define _zcfree z_zcfree
# endif
-# define zlibCompileFlags z_zlibCompileFlags
-# define zlibVersion z_zlibVersion
+# define _zlibCompileFlags z_zlibCompileFlags
+# define _zlibVersion z_zlibVersion
/* all zlib typedefs in zlib.h and zconf.h */
# define Byte z_Byte
@@ -520,7 +520,7 @@ typedef uLong FAR uLongf;
#pragma map(deflateInit2_,"DEIN2")
#pragma map(deflateEnd,"DEEND")
#pragma map(deflateBound,"DEBND")
- #pragma map(inflateInit_,"ININ")
+ #pragma map(_inflateInit_,"ININ")
#pragma map(inflateInit2_,"ININ2")
#pragma map(inflateEnd,"INEND")
#pragma map(inflateSync,"INSY")
diff --git a/external/freetype/src/gzip/infback.c b/external/freetype/src/gzip/infback.c
index 5fb8c67..46f8f56 100644
--- a/external/freetype/src/gzip/infback.c
+++ b/external/freetype/src/gzip/infback.c
@@ -45,7 +45,7 @@ int ZEXPORT inflateBackInit_(
#ifdef Z_SOLO
return Z_STREAM_ERROR;
#else
- strm->zalloc = zcalloc;
+ strm->zalloc = _zcalloc;
strm->opaque = (voidpf)0;
#endif
}
@@ -53,7 +53,7 @@ int ZEXPORT inflateBackInit_(
#ifdef Z_SOLO
return Z_STREAM_ERROR;
#else
- strm->zfree = zcfree;
+ strm->zfree = _zcfree;
#endif
state = (struct inflate_state FAR *)ZALLOC(strm, 1,
sizeof(struct inflate_state));
diff --git a/external/freetype/src/gzip/inflate.c b/external/freetype/src/gzip/inflate.c
index 5bf5b81..3272064 100644
--- a/external/freetype/src/gzip/inflate.c
+++ b/external/freetype/src/gzip/inflate.c
@@ -118,7 +118,7 @@ local int inflateStateCheck(
return 0;
}
-int ZEXPORT inflateResetKeep(
+int ZEXPORT _inflateResetKeep(
z_streamp strm)
{
struct inflate_state FAR *state;
@@ -154,7 +154,7 @@ int ZEXPORT inflateReset(
state->wsize = 0;
state->whave = 0;
state->wnext = 0;
- return inflateResetKeep(strm);
+ return _inflateResetKeep(strm);
}
int ZEXPORT inflateReset2(
@@ -213,7 +213,7 @@ int ZEXPORT inflateInit2_(
#ifdef Z_SOLO
return Z_STREAM_ERROR;
#else
- strm->zalloc = zcalloc;
+ strm->zalloc = _zcalloc;
strm->opaque = (voidpf)0;
#endif
}
@@ -221,7 +221,7 @@ int ZEXPORT inflateInit2_(
#ifdef Z_SOLO
return Z_STREAM_ERROR;
#else
- strm->zfree = zcfree;
+ strm->zfree = _zcfree;
#endif
state = (struct inflate_state FAR *)
ZALLOC(strm, 1, sizeof(struct inflate_state));
@@ -239,7 +239,7 @@ int ZEXPORT inflateInit2_(
return ret;
}
-int ZEXPORT inflateInit_(
+int ZEXPORT _inflateInit_(
z_streamp strm,
const char *version,
int stream_size)
@@ -1489,7 +1489,7 @@ int ZEXPORT inflateSync(
block. When decompressing, PPP checks that at the end of input packet,
inflate is waiting for these length bytes.
*/
-int ZEXPORT inflateSyncPoint(
+int ZEXPORT _inflateSyncPoint(
z_streamp strm)
{
struct inflate_state FAR *state;
@@ -1550,7 +1550,7 @@ int ZEXPORT inflateCopy(
#endif /* !Z_FREETYPE */
-int ZEXPORT inflateUndermine(
+int ZEXPORT _inflateUndermine(
z_streamp strm,
int subvert)
{
@@ -1568,7 +1568,7 @@ int ZEXPORT inflateUndermine(
#endif
}
-int ZEXPORT inflateValidate(
+int ZEXPORT _inflateValidate(
z_streamp strm,
int check)
{
diff --git a/external/freetype/src/gzip/patches/freetype-zlib.diff b/external/freetype/src/gzip/patches/freetype-zlib.diff
index 20d8429..80f2a4d 100644
--- a/external/freetype/src/gzip/patches/freetype-zlib.diff
+++ b/external/freetype/src/gzip/patches/freetype-zlib.diff
@@ -80,7 +80,7 @@ index 4375557b4..5bf5b815e 100644
local int inflateStateCheck(
z_streamp strm)
-@@ -245,6 +247,8 @@ int ZEXPORT inflateInit_(
+@@ -245,6 +247,8 @@ int ZEXPORT _inflateInit_(
return inflateInit2_(strm, DEF_WBITS, version, stream_size);
}
@@ -116,7 +116,7 @@ index 4375557b4..5bf5b815e 100644
/*
Returns true if inflate is currently at the end of a block generated by
Z_SYNC_FLUSH or Z_FULL_FLUSH. This function is used by one PPP
-@@ -1489,6 +1499,8 @@ int ZEXPORT inflateSyncPoint(
+@@ -1489,6 +1499,8 @@ int ZEXPORT _inflateSyncPoint(
return state->mode == STORED && state->bits == 0;
}
@@ -131,10 +131,10 @@ index 4375557b4..5bf5b815e 100644
+#endif /* !Z_FREETYPE */
+
- int ZEXPORT inflateUndermine(
+ int ZEXPORT _inflateUndermine(
z_streamp strm,
int subvert)
-@@ -1569,6 +1583,8 @@ int ZEXPORT inflateValidate(
+@@ -1569,6 +1583,8 @@ int ZEXPORT _inflateValidate(
return Z_OK;
}
@@ -208,7 +208,7 @@ index 4a98e38bf..d760140c2 100644
+#ifndef Z_FREETYPE
+
- #define zlib_version zlibVersion()
+ #define zlib_version _zlibVersion()
/* for compatibility with versions < 1.0.2 */
@@ -246,7 +248,6 @@ ZEXTERN int ZEXPORT deflateInit OF((z_streamp strm, int level));
@@ -272,7 +272,7 @@ index 4a98e38bf..d760140c2 100644
ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm,
in_func in, void FAR *in_desc,
out_func out, void FAR *out_desc));
-@@ -1214,6 +1226,8 @@ ZEXTERN uLong ZEXPORT zlibCompileFlags OF((void));
+@@ -1214,6 +1226,8 @@ ZEXTERN uLong ZEXPORT _zlibCompileFlags OF((void));
27-31: 0 (reserved)
*/
@@ -287,7 +287,7 @@ index 4a98e38bf..d760140c2 100644
+#ifndef Z_FREETYPE
+
- ZEXTERN uLong ZEXPORT crc32_z OF((uLong crc, const Bytef *buf,
+ ZEXTERN uLong ZEXPORT _crc32_z OF((uLong crc, const Bytef *buf,
z_size_t len));
/*
@@ -1822,6 +1838,19 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits,
@@ -316,17 +316,17 @@ index 4a98e38bf..d760140c2 100644
+#ifndef Z_FREETYPE
ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
- ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
- ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t));
+ ZEXTERN uLong ZEXPORT _crc32_combine OF((uLong, uLong, z_off_t));
+ ZEXTERN uLong ZEXPORT _crc32_combine_gen OF((z_off_t));
+#endif
#endif /* !Z_SOLO */
/* undocumented functions */
+#ifndef Z_FREETYPE
- ZEXTERN const char * ZEXPORT zError OF((int));
- ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp));
- ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table OF((void));
+ ZEXTERN const char * ZEXPORT _zError OF((int));
+ ZEXTERN int ZEXPORT _inflateSyncPoint OF((z_streamp));
+ ZEXTERN const z_crc_t FAR * ZEXPORT _get_crc_table OF((void));
@@ -1927,6 +1959,7 @@ ZEXTERN int ZEXPORTVA gzvprintf Z_ARG((gzFile file,
va_list va));
# endif
@@ -339,7 +339,7 @@ diff --git a/src/gzip/zutil.h b/src/gzip/zutil.h
index d9a20ae1b..14f0f1a85 100644
--- a/src/gzip/zutil.h
+++ b/src/gzip/zutil.h
-@@ -188,6 +188,8 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
+@@ -188,6 +188,8 @@ extern z_const char * const _z_errmsg[10]; /* indexed by 2-zlib_error */
#pragma warn -8066
#endif
@@ -348,8 +348,8 @@ index d9a20ae1b..14f0f1a85 100644
/* provide prototypes for these when building zlib without LFS */
#if !defined(_WIN32) && \
(!defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0)
-@@ -195,6 +197,8 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
- ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
+@@ -195,6 +197,8 @@ extern z_const char * const _z_errmsg[10]; /* indexed by 2-zlib_error */
+ ZEXTERN uLong ZEXPORT _crc32_combine64 OF((uLong, uLong, z_off_t));
#endif
+#endif /* !Z_FREETYPE */
@@ -357,7 +357,7 @@ index d9a20ae1b..14f0f1a85 100644
/* common defaults */
#ifndef OS_CODE
-@@ -226,9 +230,9 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
+@@ -226,9 +230,9 @@ extern z_const char * const _z_errmsg[10]; /* indexed by 2-zlib_error */
# define zmemcmp _fmemcmp
# define zmemzero(dest, len) _fmemset(dest, 0, len)
# else
diff --git a/external/freetype/src/gzip/zlib.h b/external/freetype/src/gzip/zlib.h
index d760140..7cf6d05 100644
--- a/external/freetype/src/gzip/zlib.h
+++ b/external/freetype/src/gzip/zlib.h
@@ -213,14 +213,14 @@ typedef gz_header FAR *gz_headerp;
#ifndef Z_FREETYPE
-#define zlib_version zlibVersion()
+#define zlib_version _zlibVersion()
/* for compatibility with versions < 1.0.2 */
/* basic functions */
-ZEXTERN const char * ZEXPORT zlibVersion OF((void));
-/* The application can compare zlibVersion and ZLIB_VERSION for consistency.
+ZEXTERN const char * ZEXPORT _zlibVersion OF((void));
+/* The application can compare _zlibVersion and ZLIB_VERSION for consistency.
If the first character differs, the library code actually used is not
compatible with the zlib.h header file used by the application. This check
is automatically made by deflateInit and inflateInit.
@@ -1185,7 +1185,7 @@ ZEXTERN int ZEXPORT inflateBackEnd OF((z_streamp strm));
state was inconsistent.
*/
-ZEXTERN uLong ZEXPORT zlibCompileFlags OF((void));
+ZEXTERN uLong ZEXPORT _zlibCompileFlags OF((void));
/* Return flags indicating compile-time options.
Type sizes, two bits each, 00 = 16 bits, 01 = 32, 10 = 64, 11 = other:
@@ -1491,7 +1491,7 @@ ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...));
buffer overflow with unpredictable consequences, which is possible only if
zlib was compiled with the insecure functions sprintf() or vsprintf(),
because the secure snprintf() or vsnprintf() functions were not available.
- This can be determined using zlibCompileFlags().
+ This can be determined using _zlibCompileFlags().
*/
ZEXTERN int ZEXPORT gzputs OF((gzFile file, const char *s));
@@ -1758,34 +1758,34 @@ ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
#ifndef Z_FREETYPE
-ZEXTERN uLong ZEXPORT crc32_z OF((uLong crc, const Bytef *buf,
+ZEXTERN uLong ZEXPORT _crc32_z OF((uLong crc, const Bytef *buf,
z_size_t len));
/*
Same as crc32(), but with a size_t length.
*/
/*
-ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2));
+ZEXTERN uLong ZEXPORT _crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2));
Combine two CRC-32 check values into one. For two sequences of bytes,
seq1 and seq2 with lengths len1 and len2, CRC-32 check values were
- calculated for each, crc1 and crc2. crc32_combine() returns the CRC-32
+ calculated for each, crc1 and crc2. _crc32_combine() returns the CRC-32
check value of seq1 and seq2 concatenated, requiring only crc1, crc2, and
len2.
*/
/*
-ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t len2));
+ZEXTERN uLong ZEXPORT _crc32_combine_gen OF((z_off_t len2));
Return the operator corresponding to length len2, to be used with
- crc32_combine_op().
+ _crc32_combine_op().
*/
-ZEXTERN uLong ZEXPORT crc32_combine_op OF((uLong crc1, uLong crc2, uLong op));
+ZEXTERN uLong ZEXPORT _crc32_combine_op OF((uLong crc1, uLong crc2, uLong op));
/*
- Give the same result as crc32_combine(), using op in place of len2. op is
- is generated from len2 by crc32_combine_gen(). This will be faster than
- crc32_combine() if the generated op is used more than once.
+ Give the same result as _crc32_combine(), using op in place of len2. op is
+ is generated from len2 by _crc32_combine_gen(). This will be faster than
+ _crc32_combine() if the generated op is used more than once.
*/
@@ -1796,7 +1796,7 @@ ZEXTERN uLong ZEXPORT crc32_combine_op OF((uLong crc1, uLong crc2, uLong op));
*/
ZEXTERN int ZEXPORT deflateInit_ OF((z_streamp strm, int level,
const char *version, int stream_size));
-ZEXTERN int ZEXPORT inflateInit_ OF((z_streamp strm,
+ZEXTERN int ZEXPORT _inflateInit_ OF((z_streamp strm,
const char *version, int stream_size));
ZEXTERN int ZEXPORT deflateInit2_ OF((z_streamp strm, int level, int method,
int windowBits, int memLevel,
@@ -1812,7 +1812,7 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits,
# define z_deflateInit(strm, level) \
deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream))
# define z_inflateInit(strm) \
- inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream))
+ _inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream))
# define z_deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
(strategy), ZLIB_VERSION, (int)sizeof(z_stream))
@@ -1826,7 +1826,7 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF((z_streamp strm, int windowBits,
# define deflateInit(strm, level) \
deflateInit_((strm), (level), ZLIB_VERSION, (int)sizeof(z_stream))
# define inflateInit(strm) \
- inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream))
+ _inflateInit_((strm), ZLIB_VERSION, (int)sizeof(z_stream))
# define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \
deflateInit2_((strm),(level),(method),(windowBits),(memLevel),\
(strategy), ZLIB_VERSION, (int)sizeof(z_stream))
@@ -1887,8 +1887,8 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile));
ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t));
- ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t));
- ZEXTERN uLong ZEXPORT crc32_combine_gen64 OF((z_off64_t));
+ ZEXTERN uLong ZEXPORT _crc32_combine64 OF((uLong, uLong, z_off64_t));
+ ZEXTERN uLong ZEXPORT _crc32_combine_gen64 OF((z_off64_t));
#endif
#if !defined(ZLIB_INTERNAL) && defined(Z_WANT64)
@@ -1906,8 +1906,8 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
# define gztell gztell64
# define gzoffset gzoffset64
# define adler32_combine adler32_combine64
-# define crc32_combine crc32_combine64
-# define crc32_combine_gen crc32_combine_gen64
+# define _crc32_combine _crc32_combine64
+# define _crc32_combine_gen _crc32_combine_gen64
# endif
# ifndef Z_LARGE64
ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
@@ -1915,8 +1915,8 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));
ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
- ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
- ZEXTERN uLong ZEXPORT crc32_combine_gen64 OF((z_off_t));
+ ZEXTERN uLong ZEXPORT _crc32_combine64 OF((uLong, uLong, z_off_t));
+ ZEXTERN uLong ZEXPORT _crc32_combine_gen64 OF((z_off_t));
# endif
#else
ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *));
@@ -1924,29 +1924,29 @@ ZEXTERN int ZEXPORT gzgetc_ OF((gzFile file)); /* backward compatibility */
ZEXTERN z_off_t ZEXPORT gztell OF((gzFile));
ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile));
ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
- ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
- ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t));
+ ZEXTERN uLong ZEXPORT _crc32_combine OF((uLong, uLong, z_off_t));
+ ZEXTERN uLong ZEXPORT _crc32_combine_gen OF((z_off_t));
#endif
#else /* Z_SOLO */
#ifndef Z_FREETYPE
ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
- ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
- ZEXTERN uLong ZEXPORT crc32_combine_gen OF((z_off_t));
+ ZEXTERN uLong ZEXPORT _crc32_combine OF((uLong, uLong, z_off_t));
+ ZEXTERN uLong ZEXPORT _crc32_combine_gen OF((z_off_t));
#endif
#endif /* !Z_SOLO */
/* undocumented functions */
#ifndef Z_FREETYPE
-ZEXTERN const char * ZEXPORT zError OF((int));
-ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp));
-ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table OF((void));
-ZEXTERN int ZEXPORT inflateUndermine OF((z_streamp, int));
-ZEXTERN int ZEXPORT inflateValidate OF((z_streamp, int));
+ZEXTERN const char * ZEXPORT _zError OF((int));
+ZEXTERN int ZEXPORT _inflateSyncPoint OF((z_streamp));
+ZEXTERN const z_crc_t FAR * ZEXPORT _get_crc_table OF((void));
+ZEXTERN int ZEXPORT _inflateUndermine OF((z_streamp, int));
+ZEXTERN int ZEXPORT _inflateValidate OF((z_streamp, int));
ZEXTERN unsigned long ZEXPORT inflateCodesUsed OF ((z_streamp));
-ZEXTERN int ZEXPORT inflateResetKeep OF((z_streamp));
+ZEXTERN int ZEXPORT _inflateResetKeep OF((z_streamp));
ZEXTERN int ZEXPORT deflateResetKeep OF((z_streamp));
#if defined(_WIN32) && !defined(Z_SOLO)
ZEXTERN gzFile ZEXPORT gzopen_w OF((const wchar_t *path,
diff --git a/external/freetype/src/gzip/zutil.c b/external/freetype/src/gzip/zutil.c
index a19ac2b..669eb21 100644
--- a/external/freetype/src/gzip/zutil.c
+++ b/external/freetype/src/gzip/zutil.c
@@ -10,7 +10,7 @@
# include "gzguts.h"
#endif
-z_const char * const z_errmsg[10] = {
+z_const char * const _z_errmsg[10] = {
(z_const char *)"need dictionary", /* Z_NEED_DICT 2 */
(z_const char *)"stream end", /* Z_STREAM_END 1 */
(z_const char *)"", /* Z_OK 0 */
@@ -24,12 +24,12 @@ z_const char * const z_errmsg[10] = {
};
-const char * ZEXPORT zlibVersion()
+const char * ZEXPORT _zlibVersion()
{
return ZLIB_VERSION;
}
-uLong ZEXPORT zlibCompileFlags()
+uLong ZEXPORT _zlibCompileFlags()
{
uLong flags;
@@ -130,7 +130,7 @@ void ZLIB_INTERNAL z_error (
/* exported to allow conversion of error code to string for compress() and
* uncompress()
*/
-const char * ZEXPORT zError(
+const char * ZEXPORT _zError(
int err)
{
return ERR_MSG(err);
@@ -193,7 +193,7 @@ void ZLIB_INTERNAL zmemzero(
/* Turbo C malloc() does not allow dynamic allocation of 64K bytes
* and farmalloc(64K) returns a pointer with an offset of 8, so we
* must fix the pointer. Warning: the pointer must be put back to its
- * original form in order to free it, use zcfree().
+ * original form in order to free it, use _zcfree().
*/
#define MAX_PTR 10
@@ -214,7 +214,7 @@ local ptr_table table[MAX_PTR];
* a protected system like OS/2. Use Microsoft C instead.
*/
-voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size)
+voidpf ZLIB_INTERNAL _zcalloc (voidpf opaque, unsigned items, unsigned size)
{
voidpf buf;
ulg bsize = (ulg)items*size;
@@ -240,7 +240,7 @@ voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size)
return buf;
}
-void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
+void ZLIB_INTERNAL _zcfree (voidpf opaque, voidpf ptr)
{
int n;
@@ -261,7 +261,7 @@ void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
next_ptr--;
return;
}
- Assert(0, "zcfree: ptr not found");
+ Assert(0, "_zcfree: ptr not found");
}
#endif /* __TURBOC__ */
@@ -277,13 +277,13 @@ void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
# define _hfree hfree
#endif
-voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, uInt items, uInt size)
+voidpf ZLIB_INTERNAL _zcalloc (voidpf opaque, uInt items, uInt size)
{
(void)opaque;
return _halloc((long)items, size);
}
-void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr)
+void ZLIB_INTERNAL _zcfree (voidpf opaque, voidpf ptr)
{
(void)opaque;
_hfree(ptr);
@@ -302,7 +302,7 @@ extern voidp calloc OF((uInt items, uInt size));
extern void free OF((voidpf ptr));
#endif
-voidpf ZLIB_INTERNAL zcalloc (
+voidpf ZLIB_INTERNAL _zcalloc (
voidpf opaque,
unsigned items,
unsigned size)
@@ -312,7 +312,7 @@ voidpf ZLIB_INTERNAL zcalloc (
(voidpf)calloc(items, size);
}
-void ZLIB_INTERNAL zcfree (
+void ZLIB_INTERNAL _zcfree (
voidpf opaque,
voidpf ptr)
{
diff --git a/external/freetype/src/gzip/zutil.h b/external/freetype/src/gzip/zutil.h
index 14f0f1a..b8bd839 100644
--- a/external/freetype/src/gzip/zutil.h
+++ b/external/freetype/src/gzip/zutil.h
@@ -53,10 +53,10 @@ typedef unsigned long ulg;
# endif
#endif
-extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
+extern z_const char * const _z_errmsg[10]; /* indexed by 2-zlib_error */
/* (size given to avoid silly warnings with Visual C++) */
-#define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)]
+#define ERR_MSG(err) _z_errmsg[Z_NEED_DICT-(err)]
#define ERR_RETURN(strm,err) \
return (strm->msg = ERR_MSG(err), (err))
@@ -194,7 +194,7 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
#if !defined(_WIN32) && \
(!defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0)
ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
- ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
+ ZEXTERN uLong ZEXPORT _crc32_combine64 OF((uLong, uLong, z_off_t));
#endif
#endif /* !Z_FREETYPE */
@@ -261,9 +261,9 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
#endif
#ifndef Z_SOLO
- voidpf ZLIB_INTERNAL zcalloc OF((voidpf opaque, unsigned items,
+ voidpf ZLIB_INTERNAL _zcalloc OF((voidpf opaque, unsigned items,
unsigned size));
- void ZLIB_INTERNAL zcfree OF((voidpf opaque, voidpf ptr));
+ void ZLIB_INTERNAL _zcfree OF((voidpf opaque, voidpf ptr));
#endif
#define ZALLOC(strm, items, size) \

15
externals/patches/libvorbis-1.3.7.patch vendored Normal file
View File

@ -0,0 +1,15 @@
--- a/configure 2020-07-04 08:20:13
+++ b/configure 2023-11-08 22:26:15
@@ -12840,9 +12840,9 @@
CFLAGS="-O3 -Wall -Wextra -ffast-math -D__NO_MATH_INLINES -fsigned-char $sparc_cpu"
PROFILE="-pg -g -O3 -D__NO_MATH_INLINES -fsigned-char $sparc_cpu" ;;
*-*-darwin*)
- DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
- CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O3 -ffast-math -fsigned-char"
- PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O3 -ffast-math -fsigned-char";;
+ DEBUG="-DDARWIN -fno-common -Wall -g -O0 -fsigned-char"
+ CFLAGS="-DDARWIN -fno-common -Wall -g -O3 -ffast-math -fsigned-char"
+ PROFILE="-DDARWIN -fno-common -Wall -g -pg -O3 -ffast-math -fsigned-char";;
*-*-os2*)
# Use -W instead of -Wextra because gcc on OS/2 is an old version.
DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"

@ -1 +1 @@
Subproject commit a8c7c83494c86457091dc1b1ac8b1aa5b7d03a9c
Subproject commit 01ea0c1941a41a2ffd33daa52ef8429a24a01ff5

@ -1 +1 @@
Subproject commit b6573452158d25fbd30f507b18d19e5a939d38a6
Subproject commit 8773d6f9fa5d690b1a0c34c20c7dea79e4c0d822

@ -1 +0,0 @@
Subproject commit 9f5948513b4be28a2480ee34fe81cb14b4b2f732