Package Details: hexen2 1.5.9-1

Git Clone URL: https://aur.archlinux.org/hexen2.git (read-only, click to copy)
Package Base: hexen2
Description: Hammer of Thyrion: Raven Software's Hexen II source port (based on Anvil of Thyrion)
Upstream URL: http://uhexen2.sourceforge.net/
Licenses: GPL2
Provides: hexenworld
Submitter: carstene1ns
Maintainer: Geballin
Last Packager: carstene1ns
Votes: 4
Popularity: 0.000000
First Submitted: 2018-05-11 21:10 (UTC)
Last Updated: 2018-06-15 17:50 (UTC)

Latest Comments

macky commented on 2025-06-09 10:00 (UTC) (edited on 2025-06-09 10:02 (UTC) by macky)

With modern c23 this package doesn't build anymore.

it fails with:

../../common/q_stdinc.h:128:9: error: cannot use keyword ‘false’ as enumeration constant
[..]
./../common/q_stdinc.h:128:9: note: ‘false’ is a keyword with ‘-std=c23’ onwards

I fixed it with exporting CFLAGS="-std=gnu17" before build() and s/CFLAGS =/CFLAGS += in h2patch/Makefile.

Full diff:

*** hexen2/PKGBUILD 2025-06-09 11:51:46.125612424 +0200
--- hexen2-fixed/PKGBUILD   2025-06-09 10:27:57.094840708 +0200
***************
*** 25,39 ****
--- 25,42 ----
              '49462cdf984deee7350d03c7d192d1c34d682647ffc9d06de4308e0a7c71c4d9'
              'fa0bde060ba3afda3683b96d7ece23161816a04a2365ba996c1cb07268d6580f'
              '9882421ee54afa4995c11e3759ab7fffb59a448291f0d647b3857d43b5cf27a9')

  prepare() {
    sed 's|^hexen2dir=.*$|hexen2dir=/opt/hexen2|' -i hexen2source-$pkgver/scripts/hexen2-run.sh
+   sed 's/CFLAGS  =/CFLAGS +=/' -i hexen2source-$pkgver/h2patch/Makefile
  }

  build() {
+   export CFLAGS="-std=gnu17"
+ 
    cd hexen2source-$pkgver

    # main game
    make -C engine/hexen2 h2
    make -s -C engine/hexen2 localclean
    make -C engine/hexen2 glh2

6b6279 commented on 2023-11-14 22:39 (UTC) (edited on 2024-12-20 09:25 (UTC) by 6b6279)

You need the custom TiMidity++ patches to get MIDI playback to work: http://sourceforge.net/project/downloading.php?group_id=124987&filename=timidity_patches.tar.gz

Additionally, you might have to launch glhexen2 with --noextmusic.

alexbrinister commented on 2020-09-18 22:35 (UTC)

This package does not compile without adding

  • alsa-lib
  • libglvnd

to the makedepends.

MagnusW commented on 2018-08-27 12:30 (UTC) (edited on 2018-08-27 12:31 (UTC) by MagnusW)

Just wanted to let you know that I had to install the packages:

alsa-lib
mesa

when building this on a minimal machine recently. Perhaps they should be added to makedepends.

churro commented on 2018-07-21 19:22 (UTC)

Unfortunately it seems this doesn't compile with midi support, I get the following when launching the game:

MIDI_DRV: disabled at compile time.

<deleted-account> commented on 2018-07-05 21:10 (UTC)

Here you can find some games you might be interested in: http://s.go.ro/clh7ajtp