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'
|
2023-09-01 23:23:01 +00:00
|
|
|
version='2.6.3'
|
2022-08-21 14:00:49 +00:00
|
|
|
useconfigure='true'
|
2023-07-10 11:10:29 +00:00
|
|
|
files=(
|
2023-09-01 23:23:01 +00:00
|
|
|
"https://github.com/libsdl-org/SDL_mixer/releases/download/release-${version}/SDL2_mixer-${version}.tar.gz#7a6ba86a478648ce617e3a5e9277181bc67f7ce9876605eea6affd4a0d6eea8f"
|
2023-07-10 11:10:29 +00:00
|
|
|
)
|
2023-09-01 13:27:50 +00:00
|
|
|
depends=(
|
|
|
|
'libmodplug'
|
|
|
|
'libmpg123'
|
|
|
|
'libvorbis'
|
|
|
|
'SDL2'
|
|
|
|
'timidity'
|
|
|
|
)
|
2021-03-08 12:15:35 +00:00
|
|
|
|
|
|
|
configure() {
|
2022-01-07 22:24:04 +00:00
|
|
|
export LIBS="-L${SERENITY_INSTALL_ROOT}/usr/local/lib"
|
2021-03-08 12:15:35 +00:00
|
|
|
run ./configure \
|
2021-03-11 18:50:44 +00:00
|
|
|
--host="${SERENITY_ARCH}-pc-serenity" \
|
2021-04-20 15:42:04 +00:00
|
|
|
--with-sdl-prefix="${SERENITY_INSTALL_ROOT}/usr/local" \
|
2023-09-01 13:27:50 +00:00
|
|
|
--enable-music-opus='false' \
|
|
|
|
--enable-music-opus-shared='false' \
|
2022-06-03 14:20:26 +00:00
|
|
|
--disable-static \
|
|
|
|
--enable-shared \
|
2024-03-30 19:58:09 +00:00
|
|
|
EXTRA_LDFLAGS='-lgui -lgfx -lipc -lcore -lcoreminimal -lcompression'
|
2021-03-08 12:15:35 +00:00
|
|
|
}
|
|
|
|
|
2022-01-07 22:24:04 +00:00
|
|
|
post_configure() {
|
|
|
|
unset LIBS
|
|
|
|
}
|
|
|
|
|
2021-03-08 12:15:35 +00:00
|
|
|
build() {
|
|
|
|
run make -k
|
|
|
|
}
|