ladybird/Ports/SDL2_mixer/package.sh

28 lines
861 B
Bash
Raw Normal View History

2021-03-08 12:15:35 +00:00
#!/usr/bin/env -S bash ../.port_include.sh
2022-08-21 14:00:49 +00:00
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")
2021-03-08 12:15:35 +00:00
configure() {
export LIBS="-L${SERENITY_INSTALL_ROOT}/usr/local/lib"
2021-03-08 12:15:35 +00:00
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 \
2021-03-08 12:15:35 +00:00
EXTRA_LDFLAGS="-lgui -lgfx -lipc -lcore -lcompression"
}
post_configure() {
unset LIBS
}
2021-03-08 12:15:35 +00:00
build() {
run make -k
}