summaryrefslogtreecommitdiff
path: root/Ports/SDL2_image/package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Ports/SDL2_image/package.sh')
-rwxr-xr-xPorts/SDL2_image/package.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/Ports/SDL2_image/package.sh b/Ports/SDL2_image/package.sh
new file mode 100755
index 0000000000..72e02d385e
--- /dev/null
+++ b/Ports/SDL2_image/package.sh
@@ -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
+}