From 9b948dd5af9bd63ee1da8e6ba96cd940114f7fca Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 15 Feb 2021 13:17:56 -0500 Subject: games/frotz: Fix non-libmodplug build. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- games/frotz/README | 9 +++++++-- games/frotz/frotz.SlackBuild | 10 +++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) (limited to 'games') diff --git a/games/frotz/README b/games/frotz/README index 11b9f1eeec..20f3a359e6 100644 --- a/games/frotz/README +++ b/games/frotz/README @@ -4,5 +4,10 @@ Frotz is an interpreter for Infocom games and other Z-machine games. It complies with standard 1.0 of Graham Nelson's specification. Games can be found at: http://www.ifarchive.org/ -Optional dependencies: SDL2 and SDL2_mixer. If these are installed, -the SDL build of frotz (sfrotz) will be included in the package. +Optional dependencies: + +libmodplug - If this is installed, the curses build (frotz) will +support sound. + +SDL2_mixer - If this is installed, the SDL build of frotz (sfrotz) will +be included in the package. sfrotz always supports sound. diff --git a/games/frotz/frotz.SlackBuild b/games/frotz/frotz.SlackBuild index 06f5ac9b81..52fc0d334a 100644 --- a/games/frotz/frotz.SlackBuild +++ b/games/frotz/frotz.SlackBuild @@ -9,6 +9,8 @@ # Original had no license. This modified version is released under the # WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20210215 bkw: fix building without libmodplug. BUILD=2. + # 20201212 bkw: too many changes, can't build older versions. # - updated for v2.52. # - new homepage. @@ -25,7 +27,7 @@ PRGNAM=frotz VERSION=${VERSION:-2.52} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -103,11 +105,13 @@ run_make() { $1 } -# No autodetection for SDL2, help it out. +# No autodetection for libmodplug or SDL2_mixer, help it out. +maintarg="nosound" +pkg-config --exists libmodplug && maintarg="$PRGNAM" pkg-config --exists sdl2 SDL2_mixer && extra="clean sdl install_sdl" sed -i "s,-O3.*,$SLKCFLAGS," Makefile -for target in $PRGNAM install clean dumb install_dumb $extra; do +for target in $maintarg install clean dumb install_dumb $extra; do run_make $target done -- cgit v1.2.3