Bug 238109

Summary: games/nxengine: fix runtime on big-endian architectures
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Nikolai Lifanov <lifanov>
Status: Closed FIXED    
Severity: Affects Only Me CC: lifanov
Priority: --- Flags: lifanov: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch lifanov: maintainer-approval+

Description Piotr Kubaj freebsd_committer 2019-05-24 20:23:27 UTC
Created attachment 204598 [details]
patch

Without this patch, it fails with:
Loading settings...
Couldn't open file /home/pkubaj/.local/share/nxengine/nxengine-evo/settings.dat.
No saved settings; using defaults.
DW: 1280, DH: 1024
Disabling 1600x1200
Disabling 1360x768
Disabling 1366x768
Disabling 1440x900
Disabling 1920x1080
SDL_CreateWindow: 640x480
Renderer::initVideo: using: opengl renderer
Loading font file font_2.fnt
Loading font file data/font_2.fnt
 error << SIFLoader::LoadHeader: magick check failed--this isn't a SIF file or is wrong version? >>
 error <<  (expected 53494632, got 32464953) >>
 error << fatal: 'Failed to initialize graphics.' >>

Already committed upstream.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2019-05-29 21:23:39 UTC
This builds for me, so once the maintainer approves, consider this mentor approval.
Comment 2 Nikolai Lifanov freebsd_committer 2019-05-29 23:01:10 UTC
Approved!
Comment 3 commit-hook freebsd_committer 2019-05-30 07:58:36 UTC
A commit references this bug:

Author: pkubaj
Date: Thu May 30 07:58:06 UTC 2019
New revision: 503053
URL: https://svnweb.freebsd.org/changeset/ports/503053

Log:
  games/nxengine: fix runtime on big-endian architectures

  Add patches for big-endian architectures.

  PR:		238109
  Approved by:	lifanov (maintainer), linimon (mentor)

Changes:
  head/games/nxengine/Makefile
  head/games/nxengine/distinfo