diff options
author | B. Watson <urchlay@slackware.uk> | 2023-07-14 22:54:44 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-15 17:30:16 +0700 |
commit | 2d3d8c5f9c6a03284f4e0505622e309660deb76e (patch) | |
tree | 62efbe36043067814e599c5b2c47f2f419a2ef0c /games/prboom-plus | |
parent | c60a9a12cbe50edc6f77c26fa598a814a5b95f9b (diff) |
games/prboom-plus: Updated for version 2.6.66.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/prboom-plus')
-rw-r--r-- | games/prboom-plus/README | 9 | ||||
-rw-r--r-- | games/prboom-plus/prboom-plus.SlackBuild | 10 |
2 files changed, 18 insertions, 1 deletions
diff --git a/games/prboom-plus/README b/games/prboom-plus/README index 8269961fd174f..2cd75e32f913a 100644 --- a/games/prboom-plus/README +++ b/games/prboom-plus/README @@ -14,8 +14,10 @@ shareware doom1.wad) may be placed. The IWAD directory is /usr/share/games/doom. If you don't have any IWADs, install doom_shareware_data to play shareware Doom. -Optional dependency, autodetected: +Optional dependencies, autodetected: portmidi - for the PortMIDI backend. Most users won't need this. +dumb - somehow, this can be used for music. No idea how to enable it, + but if dumb is detected, prboom-plus will link with it. *** NOTE *** @@ -26,3 +28,8 @@ file that sets snd_midiplayer to "sdl", the music will sound *really* messed up. If this happens, simply edit ~/.prboom-plus/prboom-plus.cfg and remove the line containing snd_midiplayer. Or just delete the file, to start with default settings. + +If you don't like the sound of the OPL2 music, you can try using +FluidSynth instead (Options -> General -> Preferred MIDI Player in the +user interface). Other options (PortMIDI and ALSA) may be usable but +will require more setup, outside the scope of this README. diff --git a/games/prboom-plus/prboom-plus.SlackBuild b/games/prboom-plus/prboom-plus.SlackBuild index 7922635302ab8..373411b1ad309 100644 --- a/games/prboom-plus/prboom-plus.SlackBuild +++ b/games/prboom-plus/prboom-plus.SlackBuild @@ -8,6 +8,9 @@ # http://www.wtfpl.net/txt/copying/ for details. # 20230714 bkw: update for v2.6.66. SDL MIDI is still broken. +# - change default fluidsynth soundfont to one that exists in Slackware. +# - document optional dependency dumb. + # 20220622 bkw: update for v2.6.2, add missing doinst.sh. # 20211027 bkw: @@ -83,6 +86,11 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ sed -i '/install/s,/bin,/games,' src/CMakeLists.txt sed -i '/^set(CMAKE_INSTALL_DOCDIR/d' CMakeLists.txt +# 20230714 bkw: use a default soundfont that exists. allows choosing the +# fluidsynth midi option. personally I think opl2 sounds better, but *shrug*. +US="/usr/share" +sed -i '/snd_soundfont/s,"'$US'[^"]*","'$US'/minuet/soundfonts/GeneralUser-v1.47.sf2",' src/m_misc.c + MIXEROPT=ON if [ "${BANDAID:-yes}" = "yes" ]; then # 20211027 bkw: Band-aid. The game segfaults when the midi backend @@ -91,6 +99,8 @@ if [ "${BANDAID:-yes}" = "yes" ]; then # backend to "opl2", which doesn't sound as nice, but allows the game # to run. Also it increases the default volume, since the opl2 synth # is quieter. + # 20230714 bkw: this is still needed for v2.6.66. the fault is in + # Slackware 15.0, so it's not going to change soon. MIXEROPT=OFF sed -i -e '/"snd_midiplayer"/s,"sdl","opl2",' \ -e '/"music_volume"/s,8,12,' \ |