1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27:46 +00:00

Ports: Added a SDL2_image port

This commit is contained in:
Manuel Palenzuela 2021-04-01 12:07:45 +02:00 committed by Andreas Kling
parent 4e2d4b193a
commit 8324e48218
3 changed files with 35 additions and 0 deletions

23
Ports/SDL2_image/package.sh Executable file
View 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
}

View file

@ -0,0 +1,11 @@
--- SDL2_image-2.0.5/config.sub 2019-06-30 06:52:03.000000000 +0200
+++ /home/baitinq/serenity/Ports/SDL2_image-2.0.5/config.sub 2021-04-01 01:55:57.769997556 +0200
@@ -1363,7 +1363,7 @@
# The portable systems comes first.
# Each alternative MUST end in a * to match a version number.
# -sysv* is not here because it comes later, after sysvr4.
- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -serenity* | -irix* \
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
| -sym* | -kopensolaris* | -plan9* \