2021-03-08 15:15:35 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2022-08-21 17:00:49 +03:00
|
|
|
port='SDL2_mixer'
|
|
|
|
version='2.6.2'
|
|
|
|
useconfigure='true'
|
2023-07-10 14:10:29 +03:00
|
|
|
files=(
|
2023-08-07 22:10:39 +03:00
|
|
|
"https://github.com/libsdl-org/SDL_mixer/releases/download/release-${version}/SDL2_mixer-${version}.tar.gz 8cdea810366decba3c33d32b8071bccd1c309b2499a54946d92b48e6922aa371"
|
2023-07-10 14:10:29 +03:00
|
|
|
)
|
2022-09-01 15:40:00 +03:00
|
|
|
depends=("libmodplug" "libmpg123" "libvorbis" "SDL2" "timidity")
|
2021-03-08 15:15:35 +03:00
|
|
|
|
|
|
|
configure() {
|
2022-01-08 01:24:04 +03:00
|
|
|
export LIBS="-L${SERENITY_INSTALL_ROOT}/usr/local/lib"
|
2021-03-08 15:15:35 +03:00
|
|
|
run ./configure \
|
2021-03-11 21:50:44 +03:00
|
|
|
--host="${SERENITY_ARCH}-pc-serenity" \
|
2021-04-20 18:42:04 +03:00
|
|
|
--with-sdl-prefix="${SERENITY_INSTALL_ROOT}/usr/local" \
|
2021-12-24 16:37:05 +03:00
|
|
|
--enable-music-opus=false \
|
|
|
|
--enable-music-opus-shared=false \
|
2022-06-03 17:20:26 +03:00
|
|
|
--disable-static \
|
|
|
|
--enable-shared \
|
2021-03-08 15:15:35 +03:00
|
|
|
EXTRA_LDFLAGS="-lgui -lgfx -lipc -lcore -lcompression"
|
|
|
|
}
|
|
|
|
|
2022-01-08 01:24:04 +03:00
|
|
|
post_configure() {
|
|
|
|
unset LIBS
|
|
|
|
}
|
|
|
|
|
2021-03-08 15:15:35 +03:00
|
|
|
build() {
|
|
|
|
run make -k
|
|
|
|
}
|