sdl2_mixer: fix cmake build when opusfile is not installed

This commit is contained in:
John McQuah 2023-03-02 23:05:33 -05:00
parent f5e8b23065
commit c7b656a66e
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF31FebOVvtkjlR4v60Fj6xB59/C4M7mTl7yt1TsPfqRVxqTtJFhPNSHd30YfpyJwViNbYfl36tE1H41gflhekdAw=
SHA256 (Pkgfile) = 9a23f4011786f013a2a61dfb849d327af2cde84ffb8f3be7a3798b1c832efb0f
RWSagIOpLGJF3xGTwed21RH3/G5JBao+b0RnTg3VAK3pY3y/SSx2y5YQU+lWf7duVGIuHkBuPmCza0E4aGL3E29Ouv3wYkmp/AI=
SHA256 (Pkgfile) = 22dd45104dfed9b8783b8c3c0ac8d2065bc99357577c48ca3eddd9879f8bd253
SHA256 (.footprint) = 111b662e86102cd4c1ca88a8f8081ae2a68bf2ccf78a53eb4ddf7da9886007b2
SHA256 (SDL2_mixer-2.6.3.tar.gz) = 7a6ba86a478648ce617e3a5e9277181bc67f7ce9876605eea6affd4a0d6eea8f

View File

@ -2,7 +2,7 @@
# URL: https://github.com/libsdl-org/SDL_mixer
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: libvorbis libmodplug flac libsdl2 mpg123
# Optional: fluidsynth
# Optional: fluidsynth opusfile
name=sdl2_mixer
version=2.6.3
@ -12,6 +12,8 @@ source=(https://github.com/libsdl-org/SDL_mixer/releases/download/release-$versi
build() {
prt-get isinst fluidsynth \
|| PKGMK_SDLMIX="-D SDL2MIXER_MIDI_FLUIDSYNTH=OFF"
prt-get isinst opusfile \
|| PKGMK_SDLMIX+=" -D SDL2MIXER_OPUS=OFF"
cmake -S SDL2_mixer-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \