ladybird/Ports/SDL2_mixer/package.sh
Jelle Raaijmakers 808e0c9b17 Ports: Add TiMidity++
Also add it as a dependency for the `SDL_mixer` and `SDL2_mixer` ports.

Eawpats GUS patches are installed as part of the port, because without
patches TiMidity++ is not able to generate any sound. The license for
these is "fameware", credit to Andrew Suffield:

  https://lists.debian.org/debian-legal/2002/09/msg00137.html
2022-09-03 00:07:24 +02:00

28 lines
861 B
Bash
Executable File

#!/usr/bin/env -S bash ../.port_include.sh
port='SDL2_mixer'
version='2.6.2'
useconfigure='true'
files="https://github.com/libsdl-org/SDL_mixer/releases/download/release-${version}/SDL2_mixer-${version}.tar.gz SDL2_mixer-${version}.tar.gz 8cdea810366decba3c33d32b8071bccd1c309b2499a54946d92b48e6922aa371"
auth_type='sha256'
depends=("libmodplug" "libmpg123" "libvorbis" "SDL2" "timidity")
configure() {
export LIBS="-L${SERENITY_INSTALL_ROOT}/usr/local/lib"
run ./configure \
--host="${SERENITY_ARCH}-pc-serenity" \
--with-sdl-prefix="${SERENITY_INSTALL_ROOT}/usr/local" \
--enable-music-opus=false \
--enable-music-opus-shared=false \
--disable-static \
--enable-shared \
EXTRA_LDFLAGS="-lgui -lgfx -lipc -lcore -lcompression"
}
post_configure() {
unset LIBS
}
build() {
run make -k
}