serenity/Ports/SDL2_image/package.sh

28 lines
713 B
Bash
Raw Normal View History

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'
version='2.6.3'
useconfigure='true'
depends=(
'libjpeg'
'libpng'
'libtiff'
'SDL2'
)
2023-07-10 11:10:29 +00:00
files=(
"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" \
--with-sdl-prefix="${SERENITY_INSTALL_ROOT}/usr/local" \
--enable-webp='false' \
--enable-webp-shared='false' \
--disable-static \
--enable-shared \
LDFLAGS='-lgui -lgfx -lipc -lcore -lcoreminimal -lm'
2021-04-01 10:07:45 +00:00
}
build() {
run make -k
}