![](https://secure.gravatar.com/avatar/df8330968b6df8cd1c1942c5fb4b720c.jpg?s=120&d=mm&r=g)
commit c7b656a66eca456873c4a536eb5ce8fdb8e20958 Author: John McQuah <jmcquah@disroot.org> Date: Thu Mar 2 23:05:33 2023 -0500 sdl2_mixer: fix cmake build when opusfile is not installed diff --git a/sdl2_mixer/.signature b/sdl2_mixer/.signature index f115e942a..cdaa6fbab 100644 --- a/sdl2_mixer/.signature +++ b/sdl2_mixer/.signature @@ -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 diff --git a/sdl2_mixer/Pkgfile b/sdl2_mixer/Pkgfile index 1ed1943c2..3909109be 100644 --- a/sdl2_mixer/Pkgfile +++ b/sdl2_mixer/Pkgfile @@ -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 \