2021-04-01 10:07:45 +00:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2022-08-21 13:41:03 +00:00
|
|
|
port='SDL2_image'
|
2023-09-01 23:02:07 +00:00
|
|
|
version='2.6.3'
|
2023-09-01 13:27:50 +00:00
|
|
|
useconfigure='true'
|
|
|
|
depends=(
|
|
|
|
'libjpeg'
|
|
|
|
'libpng'
|
|
|
|
'libtiff'
|
|
|
|
'SDL2'
|
|
|
|
)
|
2023-07-10 11:10:29 +00:00
|
|
|
files=(
|
2023-09-01 23:02:07 +00:00
|
|
|
"https://github.com/libsdl-org/SDL_image/releases/download/release-${version}/SDL2_image-${version}.tar.gz#931c9be5bf1d7c8fae9b7dc157828b7eee874e23c7f24b44ba7eff6b4836312c"
|
2023-07-10 11:10:29 +00:00
|
|
|
)
|
2021-04-01 10:07:45 +00:00
|
|
|
configure() {
|
|
|
|
run ./configure \
|
|
|
|
--host="${SERENITY_ARCH}-pc-serenity" \
|
2021-04-20 15:42:04 +00:00
|
|
|
--with-sdl-prefix="${SERENITY_INSTALL_ROOT}/usr/local" \
|
2023-09-01 13:27:50 +00:00
|
|
|
--enable-webp='false' \
|
|
|
|
--enable-webp-shared='false' \
|
2022-06-03 14:16:31 +00:00
|
|
|
--disable-static \
|
|
|
|
--enable-shared \
|
2024-03-30 19:58:09 +00:00
|
|
|
LDFLAGS='-lgui -lgfx -lipc -lcore -lcoreminimal -lm'
|
2021-04-01 10:07:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
run make -k
|
|
|
|
}
|