diff options
Diffstat (limited to 'games/frotz/frotz.SlackBuild')
-rw-r--r-- | games/frotz/frotz.SlackBuild | 10 |
1 files changed, 7 insertions, 3 deletions
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 |