Opened 7 years ago

Closed 7 years ago

#53325 closed submission (fixed)

hedgewars @0.9.22_0 - new port submission

Reported by: kencu (Ken) Owned by: kencu (Ken)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: hedgewars

Description

Another of the 'internet's top open source games' I'm bringing into macports, to join Pingus, Widelands, and Minetest (which is coming). Hedgewars is quite popular, it appears. Works nicely for me on 10,6, 10.7, 10.11, and 10.12.

Here's a YouTube demo video: https://www.youtube.com/watch?feature=player_embedded&v=u1Y_Pw_TtFo

Like many of these games, there are lots of dependencies, and some shenanigans are always needed. This one requires a haskell compiler, a pascal to C translator, and many of macport's deps. It was quite fun to sort out -- we still have qt4 working on current systems, so that's a bonus for macports.

There were a few patches needed to get around some outdated calls into ffmpeg, and a few areas where the game authors needed some help with proper linking and some haskell compiler opt flags. I believe I have them all sorted out, and it all builds and works well on the tested systems.

i hope people enjoy it. More in the pipeline. I hope to fill in as many of these as I can.

Attachments (6)

Portfile (3.7 KB) - added by kencu (Ken) 7 years ago.
patch-0001-avwrapper-avframealloc-fix.diff (1.0 KB) - added by kencu (Ken) 7 years ago.
patch-0002-LibavInteraction-fix.diff (646 bytes) - added by kencu (Ken) 7 years ago.
patch-0003-proj-hwc-CMakeLists-proper-link-flags.diff (516 bytes) - added by kencu (Ken) 7 years ago.
patch-0004-remove-hardcoded-stdlib-and-iokit-QTfrontend.diff (633 bytes) - added by kencu (Ken) 7 years ago.
patch-0005-remove-haskell-spec-constr.diff (520 bytes) - added by kencu (Ken) 7 years ago.

Download all attachments as: .zip

Change History (11)

Changed 7 years ago by kencu (Ken)

Attachment: Portfile added

Changed 7 years ago by kencu (Ken)

Changed 7 years ago by kencu (Ken)

Changed 7 years ago by kencu (Ken)

comment:1 Changed 7 years ago by kencu (Ken)

FYI - to build this, you'll need the hs-bytestring-show port I just submitted as well.

And on Sierra, ghc is presently broken, although with an easy fix. See <https://github.com/macports/macports-ports/pull/70> for the simple ghc fix, if you're interested in trying it out on Sierra.

comment:2 Changed 7 years ago by kencu (Ken)

I originally wrote 'bump' here, but that was nutty, so I deleted it.

Last edited 7 years ago by kencu (Ken) (previous) (diff)

comment:3 Changed 7 years ago by mf2k (Frank Schima)

Some comments:

  • Instead of setting distfiles and worksrcdir, simply set the distname.
  • Add a sha256 checksum and remove the obsolete sha1 checksum unless upstream provides it.
  • The port depends on port:ffmpeg, but will ffmpeg-devel also work? If so, change the dependency to be a path dependency like this: path:bin/ffmpeg:ffmpeg.
Last edited 7 years ago by mf2k (Frank Schima) (previous) (diff)

comment:4 Changed 7 years ago by kencu (Ken)

will look at these - thanks Frank.

comment:5 Changed 7 years ago by kencu (Ken)

Owner: set to kencu
Resolution: fixed
Status: newclosed

In bcfdfc78689bc1f4303353af3cb5fd7349bea9df/macports-ports:

hedgewars: new port

popular open-source game
have updated download site
debugged and repaired an odd hard-coded linkage issue
and fixed all mentioned issues with previous submit on trac
closes: #53325

Note: See TracTickets for help on using tickets.