TERMUX_PKG_HOMEPAGE=https://github.com/libsdl-org/SDL_image
TERMUX_PKG_DESCRIPTION="A simple library to load images of various formats as SDL surfaces (version 3)"
TERMUX_PKG_LICENSE="ZLIB"
TERMUX_PKG_LICENSE_FILE="LICENSE.txt"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="3.4.4"
TERMUX_PKG_SRCURL="https://github.com/libsdl-org/SDL_image/releases/download/release-${TERMUX_PKG_VERSION}/SDL3_image-${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=29751304a13d25ac513f24305fa25b06a6edd9607718c90129b8350d35fc5573
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="libavif, libjpeg-turbo, libjxl, libpng, libtiff, libwebp, sdl3"

# disable shared aka for dynamic linking
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DSDLIMAGE_VENDORED=OFF
-DSDLIMAGE_BACKEND_STB=OFF
-DSDLIMAGE_JPG=ON
-DSDLIMAGE_PNG=ON
-DSDLIMAGE_WEBP=ON
-DSDLIMAGE_TIF=ON
-DSDLIMAGE_JXL=ON
-DSDLIMAGE_AVIF=ON
-DSDLIMAGE_JPG_SHARED=OFF
-DSDLIMAGE_JXL_SHARED=OFF
-DSDLIMAGE_PNG_SHARED=OFF
-DSDLIMAGE_TIF_SHARED=OFF
-DSDLIMAGE_WEBP_SHARED=OFF
-DSDLIMAGE_AVIF_SHARED=OFF
"
