@@ -68,47 +68,51 @@ function build_irx {
6868# # Clone repos
6969# #
7070# Try to solve windows linking issues
71- $FETCH 5a82f71ed1dfc0bec044d9702463dbdf84ea3b71 https://github.com/madler/zlib.git &
72- $FETCH v5.8.1 https://github.com/tukaani-project /xz.git &
73- $FETCH v1.10.0 https://github.com/lz4/lz4.git &
74- $FETCH v1.11.3 https://github.com/nih-at/libzip.git &
71+ $FETCH 5a82f71ed1dfc0bec044d9702463dbdf84ea3b71 https://github.com/madler/zlib &
72+ $FETCH v5.4.0 https://github.com/xz-mirror /xz.git &
73+ $FETCH c99038d1bb46d9621f0c9e3ac6f0004a109eb67a https://github.com/lz4/lz4.git &
74+ $FETCH v1.9.2 https://github.com/nih-at/libzip.git &
7575$FETCH 2.18.0 https://github.com/ImageOptim/libimagequant.git &
76- $FETCH v1.6.47 https://github.com/pnggroup /libpng.git &
77- $FETCH VER-2-13-3 https://github.com/freetype/freetype.git &
78- $FETCH v1.16 .0 https://github.com/google/googletest.git &
79- $FETCH 0.2.5 https://github.com/yaml/libyaml.git &
80- $FETCH 3.1.0 https://github.com/libjpeg-turbo/libjpeg-turbo.git &
76+ $FETCH v1.6.43 https://github.com/glennrp /libpng &
77+ $FETCH VER-2-10-4 https://github.com/freetype/freetype &
78+ $FETCH v1.14 .0 https://github.com/google/googletest &
79+ $FETCH 0.2.5 https://github.com/yaml/libyaml &
80+ $FETCH 3.0.3 https://github.com/libjpeg-turbo/libjpeg-turbo &
8181$FETCH v1.3.5 https://github.com/xiph/ogg.git &
8282$FETCH v1.3.7 https://github.com/xiph/vorbis.git &
83- $FETCH v5.8 .0-stable https://github.com/wolfSSL/wolfssl.git &
84- $FETCH curl-8_13_0 https://github.com/curl/curl.git &
85- $FETCH 1.9.6 https://github.com/open-source-parsers/jsoncpp.git &
86- $FETCH libxmp-4.6.2 https://github.com/libxmp/libxmp.git &
87- $FETCH v1.5.2 https://github.com/xiph/opus.git &
83+ $FETCH v5.7 .0-stable https://github.com/wolfSSL/wolfssl.git &
84+ $FETCH curl-8_7_1 https://github.com/curl/curl.git &
85+ $FETCH 1.9.5 https://github.com/open-source-parsers/jsoncpp.git &
86+ $FETCH libxmp-4.6.0 https://github.com/libxmp/libxmp.git &
87+ $FETCH v1.4 https://github.com/xiph/opus.git &
8888# We need to clone the whole repo and point to the specific hash for now,
8989# till they release a new version with cmake compatibility
9090# we need to clone whole repo because it uses `git describe --tags` for version info
9191$FETCH cf218fb54929a1f54e30e2cb208a22d08b08c889 https://github.com/xiph/opusfile.git true &
9292# We need to clone the whole repo and point to the specific hash for now,
9393# till they release a new version with cmake compatibility
9494$FETCH d1b97ed0020bc620a059d3675d1854b40bd2608d https://github.com/Konstanty/libmodplug.git &
95- $FETCH libmikmod-3.3.13 https://github.com/sezero/mikmod.git &
95+ # We need to clone the whole repo and point to the specific hash for now,
96+ # till they release a new version with cmake compatibility
97+ $FETCH 096d0711ca3e294564a5c6ec18f5bbc3a2aac016 https://github.com/sezero/mikmod.git &
9698# We need to clone a fork, this is a PR opened for ading cmake support
9799# https://github.com/xiph/theora/pull/14
98100$FETCH feature/cmake https://github.com/mcmtroffaes/theora.git &
99101
100102# gsKit requires libtiff
101- $FETCH v4.7 .0 https://gitlab.com/libtiff/libtiff.git &
103+ $FETCH v4.6 .0 https://gitlab.com/libtiff/libtiff.git &
102104
103105# SDL requires to have gsKit
104- $FETCH v1.4.0 https://github.com/ps2dev/gsKit.git &
106+ $FETCH v1.3.8 https://github.com/ps2dev/gsKit &
105107
106- $FETCH release-2.32.4 https://github.com/libsdl-org/SDL.git &
107- $FETCH release-2.8.1 https://github.com/libsdl-org/SDL_mixer.git &
108- $FETCH release-2.8.8 https://github.com/libsdl-org/SDL_image.git &
109- $FETCH release-2.24.0 https://github.com/libsdl-org/SDL_ttf.git &
108+ # We need to clone the whole repo and point to the specific hash for now,
109+ # till a new version is released after this commit
110+ $FETCH 10c14e78b650e626293aa18155efec54cdee7098 https://github.com/libsdl-org/SDL.git &
111+ $FETCH release-2.6.3 https://github.com/libsdl-org/SDL_mixer.git &
112+ $FETCH release-2.6.3 https://github.com/libsdl-org/SDL_image.git &
113+ $FETCH release-2.20.2 https://github.com/libsdl-org/SDL_ttf.git &
110114
111- $FETCH libsmb2-6.2 https://github.com/sahlberg/libsmb2.git &
115+ $FETCH libsmb2-6.1 https://github.com/sahlberg/libsmb2.git &
112116
113117# We need to clone the whole repo and point to the specific hash for now,
114118# till a new version is released after this commit
@@ -120,7 +124,7 @@ $FETCH v3.2.2.f25c624 https://github.com/argtable/argtable3.git &
120124
121125$FETCH v1.7.3 https://github.com/hyperrealm/libconfig.git &
122126
123- $FETCH R_2_7_1 https://github.com/libexpat/libexpat.git &
127+ $FETCH R_2_6_2 https://github.com/libexpat/libexpat.git &
124128
125129# wait for fetch jobs to finish
126130wait
@@ -143,53 +147,53 @@ cd build
143147# # Build cmake projects
144148# #
145149build_ee zlib -DUNIX:BOOL=ON -DZLIB_BUILD_EXAMPLES=OFF -DZLIB_BUILD_SHARED=OFF -DINSTALL_PKGCONFIG_DIR=" ${PS2SDK} /ports/lib/pkgconfig"
146- build_ee xz -DTUKLIB_CPUCORES_FOUND=ON -DTUKLIB_PHYSMEM_FOUND=ON -DHAVE_GETOPT_LONG=OFF -DBUILD_TESTING=OFF -DXZ_TOOL_XZ=OFF
147- build_ee lz4/build/cmake -DLZ4_POSITION_INDEPENDENT_LIB=OFF -DLZ4_BUILD_CLI=OFF -DLZ4_BUILD_LEGACY_LZ4C=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5
150+ build_ee xz -DTUKLIB_CPUCORES_FOUND=ON -DTUKLIB_PHYSMEM_FOUND=ON -DHAVE_GETOPT_LONG=OFF -DBUILD_TESTING=OFF
151+ build_ee lz4/build/cmake -DLZ4_POSITION_INDEPENDENT_LIB=OFF -DLZ4_BUILD_CLI=OFF -DLZ4_BUILD_LEGACY_LZ4C=OFF
148152build_ee libzip -DBUILD_TOOLS=OFF -DBUILD_REGRESS=OFF
149- build_ee libimagequant -DLIB_INSTALL_DIR=lib -DBUILD_WITH_SSE=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5
153+ build_ee libimagequant -DLIB_INSTALL_DIR=lib -DBUILD_WITH_SSE=OFF
150154build_ee libpng -DPNG_SHARED=OFF -DPNG_STATIC=ON
151155build_ee freetype
152156build_ee googletest -DCMAKE_CXX_FLAGS=' -DGTEST_HAS_POSIX_RE=0'
153- build_ee libyaml -DCMAKE_POLICY_VERSION_MINIMUM=3.5
157+ build_ee libyaml
154158build_ee libjpeg-turbo -DENABLE_SHARED=FALSE -DWITH_SIMD=0
155- build_ee ogg -DCMAKE_POLICY_VERSION_MINIMUM=3.5
156- build_ee vorbis -DCMAKE_POLICY_VERSION_MINIMUM=3.5
157- CFLAGS=" -DWOLFSSL_GETRANDOM -DNO_WRITEV -DXINET_PTON\(...\)=0 " build_ee wolfssl -DWOLFSSL_CRYPT_TESTS=OFF -DWOLFSSL_EXAMPLES=OFF -DWOLFSSL_CURL=ON -DWARNING_C_FLAGS=-w
159+ build_ee ogg
160+ build_ee vorbis
161+ CFLAGS=" -DWOLFSSL_GETRANDOM -DNO_WRITEV" build_ee wolfssl -DWOLFSSL_CRYPT_TESTS=OFF -DWOLFSSL_EXAMPLES=OFF -DWOLFSSL_CURL=ON -DWARNING_C_FLAGS=-w
158162CFLAGS=" -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -DNO_WRITEV" build_ee curl -DENABLE_THREADED_RESOLVER=OFF -DCURL_USE_OPENSSL=OFF -DCURL_USE_WOLFSSL=ON -DCURL_DISABLE_SOCKETPAIR=ON -DHAVE_BASENAME=NO -DHAVE_ATOMIC=NO -DENABLE_WEBSOCKETS=ON -DENABLE_IPV6=OFF -DCURL_USE_LIBPSL=OFF -DCURL_USE_LIBSSH2=OFF
159163build_ee libxmp -DBUILD_SHARED=OFF
160164build_ee opus
161165build_ee opusfile -DOP_DISABLE_HTTP=ON -DOP_DISABLE_DOCS=ON -DOP_DISABLE_EXAMPLES=ON
162- build_ee libmodplug -DCMAKE_POLICY_VERSION_MINIMUM=3.5
166+ build_ee libmodplug
163167build_ee mikmod/libmikmod -DENABLE_SHARED=0 -DENABLE_DOC=OFF
164- build_ee jsoncpp -DBUILD_OBJECT_LIBS=OFF -DJSONCPP_WITH_TESTS=OFF -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5
168+ build_ee jsoncpp -DBUILD_OBJECT_LIBS=OFF -DJSONCPP_WITH_TESTS=OFF -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF
165169CFLAGS=" -Wno-implicit-function-declaration" build_ee theora -DHAVE_STRING_H=ON
166170
167171# libtiff and libtiff_ps2_addons is mandatory for gsKit
168- CFLAGS=" -Dlfind=bsearch" build_ee libtiff -Dtiff-tools=OFF -Dtiff-tests=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5
172+ CFLAGS=" -Dlfind=bsearch" build_ee libtiff -Dtiff-tools=OFF -Dtiff-tests=OFF
169173
170174# gsKit is mandatory for SDL
171- build_ee gsKit -DCMAKE_POLICY_VERSION_MINIMUM=3.5
175+ build_ee gsKit
172176build_ee SDL -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DSDL_TESTS=OFF
173- build_ee SDL_mixer -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DSDL2MIXER_DEPS_SHARED=OFF -DSDL2MIXER_MOD_MODPLUG=ON -DSDL2MIXER_OPUS=OFF -DSDL2MIXER_WAVPACK=OFF - DSDL2MIXER_MIDI=OFF -DSDL2MIXER_FLAC=OFF -DSDL2MIXER_SAMPLES=OFF
174- build_ee SDL_image -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DSDL2IMAGE_TIF=OFF
177+ build_ee SDL_mixer -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DSDL2MIXER_DEPS_SHARED=OFF -DSDL2MIXER_MOD_MODPLUG=ON -DSDL2MIXER_MIDI=OFF -DSDL2MIXER_FLAC=OFF -DSDL2MIXER_SAMPLES=OFF
178+ build_ee SDL_image -DCMAKE_POSITION_INDEPENDENT_CODE=OFF
175179build_ee SDL_ttf -DCMAKE_POSITION_INDEPENDENT_CODE=OFF -DSDL2TTF_SAMPLES=OFF
176180
177181build_ee enet
178182
179183# Build argtable2
180- CFLAGS=" -Wno-implicit-function-declaration" build_ee argtable2-13 -DHAVE_STRINGS_H=ON -DHAVE_STDC_HEADERS=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5
184+ CFLAGS=" -Wno-implicit-function-declaration" build_ee argtable2-13 -DHAVE_STRINGS_H=ON -DHAVE_STDC_HEADERS=ON
181185# Copy manually the argtable2.h header
182186install -m644 argtable2-13/src/argtable2.h $PS2SDK /ports/include/
183187
184- build_ee argtable3 -DARGTABLE3_INSTALL_CMAKEDIR=" ${PS2SDK} /ports/lib/cmake/" -DARGTABLE3_REPLACE_GETOPT=OFF -DARGTABLE3_ENABLE_EXAMPLES=OFF -DARGTABLE3_ENABLE_TESTS=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5
188+ build_ee argtable3 -DARGTABLE3_INSTALL_CMAKEDIR=" ${PS2SDK} /ports/lib/cmake/" -DARGTABLE3_REPLACE_GETOPT=OFF -DARGTABLE3_ENABLE_EXAMPLES=OFF -DARGTABLE3_ENABLE_TESTS=OFF
185189
186- build_ee libsmb2 -DCMAKE_POLICY_VERSION_MINIMUM=3.5
187- build_ee libsmb2 -DPS2RPC=1 -DCMAKE_POLICY_VERSION_MINIMUM=3.5
188- build_iop libsmb2 -DCMAKE_POLICY_VERSION_MINIMUM=3.5
190+ build_ee libsmb2
191+ build_ee libsmb2 -DPS2RPC=1
192+ build_iop libsmb2
189193# Disabling for now, as it has some issues with the IRX build in CPU with several cores
190- # build_irx libsmb2 -DBUILD_IRX=1 -DCMAKE_POLICY_VERSION_MINIMUM=3.5
194+ # build_irx libsmb2 -DBUILD_IRX=1
191195
192- CFLAGS=" -DHAVE_NEWLOCALE -DHAVE_USELOCALE -DHAVE_FREELOCALE" build_ee libconfig -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5
196+ CFLAGS=" -DHAVE_NEWLOCALE -DHAVE_USELOCALE -DHAVE_FREELOCALE" build_ee libconfig -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF
193197
194198CFLAGS=" -Darc4random_buf=random -DHAVE_GETRANDOM" build_ee libexpat/expat -DEXPAT_BUILD_EXAMPLES=OFF -DEXPAT_BUILD_TESTS=OFF -DEXPAT_SHARED_LIBS=OFF -DEXPAT_BUILD_TOOLS=OFF
195199
0 commit comments