diff options
author | B. Watson <yalhcru@gmail.com> | 2021-02-15 13:17:56 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-02-21 00:05:07 +0700 |
commit | 9b948dd5af9bd63ee1da8e6ba96cd940114f7fca (patch) | |
tree | e0fe441d34254f58d886f93487f02367b5332c7d /games/frotz/frotz.SlackBuild | |
parent | e2072c21c8c038f3e9a5585516552a31c06e71a5 (diff) |
games/frotz: Fix non-libmodplug build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 06f5ac9b81d13..52fc0d334aa2b 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 |