mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +00:00
Ports: Added a SDL2_image port
This commit is contained in:
parent
4e2d4b193a
commit
8324e48218
3 changed files with 35 additions and 0 deletions
23
Ports/SDL2_image/package.sh
Executable file
23
Ports/SDL2_image/package.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=SDL2_image
|
||||
useconfigure=true
|
||||
version=2.0.5
|
||||
depends="SDL2 libpng libjpeg"
|
||||
files="https://www.libsdl.org/projects/SDL_image/release/SDL2_image-${version}.tar.gz SDL_image-${version}.tar.gz"
|
||||
|
||||
configure() {
|
||||
run ./configure \
|
||||
--host="${SERENITY_ARCH}-pc-serenity" \
|
||||
--with-sdl-prefix="${SERENITY_BUILD_DIR}/Root/usr" \
|
||||
--prefix="/usr" \
|
||||
--enable-webp=false --enable-webp-shared=false \
|
||||
LDFLAGS="-lgui -lgfx -lipc -lcore -lm"
|
||||
}
|
||||
|
||||
build() {
|
||||
run make -k
|
||||
}
|
||||
|
||||
install() {
|
||||
run make -k DESTDIR="${SERENITY_BUILD_DIR}/Root" install
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue