1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 02:57:44 +00:00

Ports: Add SDL2_mixer

This commit is contained in:
Andreas Kling 2021-03-08 13:15:35 +01:00
parent a9830d9a55
commit 096c4571bb
4 changed files with 88 additions and 1 deletions

22
Ports/SDL2_mixer/package.sh Executable file
View file

@ -0,0 +1,22 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=SDL2_mixer
version=2.0.4
useconfigure=true
files="https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-${version}.tar.gz SDL2_mixer-${version}.tar.gz"
workdir="SDL2_mixer-$version"
depends="SDL2"
configure() {
run ./configure \
--host=${SERENITY_ARCH}-pc-serenity \
--with-sdl-prefix=${SERENITY_ROOT}/Build/Root/usr \
EXTRA_LDFLAGS="-lgui -lgfx -lipc -lcore -lcompression"
}
build() {
run make -k
}
install() {
run make -k DESTDIR="$SERENITY_ROOT"/Build/Root install
}