sdl_image: fix gcc2 build

This commit is contained in:
Adrien Destugues
2024-08-11 18:00:12 +02:00
parent 60f2d6dd12
commit bae8eaf40f

View File

@@ -17,6 +17,12 @@ SOURCE_DIR="SDL_image-1.2.12"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
if [ "$effectiveTargetArchitecture" == "x86_gcc2" ]; then
TIFF_VERSION=5
else
TIFF_VERSION=6
fi
PROVIDES="
sdl_image$secondaryArchSuffix = $portVersion compat >= 1.2
lib:libSDL_image_1.2$secondaryArchSuffix = $portVersion compat >= 0
@@ -47,7 +53,7 @@ BUILD_REQUIRES="
devel:libjpeg$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libSDL_1.2$secondaryArchSuffix
devel:libtiff$secondaryArchSuffix >= 6
devel:libtiff$secondaryArchSuffix >= $TIFF_VERSION
devel:libwebp$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"