aboutsummaryrefslogtreecommitdiff
path: root/games/hedgewars
diff options
context:
space:
mode:
Diffstat (limited to 'games/hedgewars')
-rw-r--r--games/hedgewars/README4
-rw-r--r--games/hedgewars/hedgewars.SlackBuild5
2 files changed, 9 insertions, 0 deletions
diff --git a/games/hedgewars/README b/games/hedgewars/README
index d32c07bf3fa68..6d54b8b29f36a 100644
--- a/games/hedgewars/README
+++ b/games/hedgewars/README
@@ -10,3 +10,7 @@ excessive thinking or moving.
This SlackBuild packages only the game itself. If you want to compile
the server, you will need to provide additional dependencies.
Please, refer to the documentation in the source tarball.
+
+Note for 32-bit users: on x86, ignore the fpc in the .info file's
+REQUIRES. For 32-bit builds, hedgewars requires ghc, not fpc. Yes,
+this is weird, but it's true.
diff --git a/games/hedgewars/hedgewars.SlackBuild b/games/hedgewars/hedgewars.SlackBuild
index 70ea97aafa072..ffe8c54181695 100644
--- a/games/hedgewars/hedgewars.SlackBuild
+++ b/games/hedgewars/hedgewars.SlackBuild
@@ -22,6 +22,9 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220320 bkw: Modified by SlackBuilds.org: fix 32-bit build.
+# The deps are different on 32-bit and 64-bit; see README.
+
# 20210905 bkw: Modified by SlackBuilds.org:
# - add fpc-3.2.0.patch for recent fpc upgrade
# - add include.qpainterpath.diff to fix compile on -current
@@ -86,6 +89,8 @@ find -L . \
patch -p1 < $CWD/fpc-3.2.0.patch
patch -p1 < $CWD/include.qpainterpath.diff
+SLKCFLAGS+=" -fcommon"
+
mkdir -p build
cd build
cmake \