Bug 239633

Summary: games/openxcom: fix build with GCC-based architectures
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Only Me CC: amdmi3
Priority: --- Flags: bugzilla: maintainer-feedback? (amdmi3)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch pkubaj: maintainer-approval? (amdmi3)

Description Piotr Kubaj freebsd_committer freebsd_triage 2019-08-03 22:37:20 UTC
Created attachment 206260 [details]
patch

This port needs a bunch of #include <algorithm> to build with GCC. Example of error:
Savegame/Craft.cpp:169:83: error: no matching function for call to 'find(std::vector<std::__cxx11::basic_string<char> >::const_iterator, std::vector<std::__cxx11::basic_string<char>
>::const_iterator, const std::__cxx11::basic_string<char>&)'


Also add USES=gl sdl.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2019-08-07 09:34:02 UTC
I can confirm this builds on both amd64 and powerpc64.
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-08-14 17:14:39 UTC
A commit references this bug:

Author: amdmi3
Date: Wed Aug 14 17:14:25 UTC 2019
New revision: 508940
URL: https://svnweb.freebsd.org/changeset/ports/508940

Log:
  - Fix build with GCC-based architectures

  PR:		239633
  Submitted by:	pkubaj@FreeBSD.org

Changes:
  head/games/openxcom/Makefile
  head/games/openxcom/files/patch-src_Engine_Language.cpp
  head/games/openxcom/files/patch-src_Engine_OptionInfo.cpp
  head/games/openxcom/files/patch-src_Menu_ListGamesState.cpp
  head/games/openxcom/files/patch-src_Menu_ListLoadState.cpp
  head/games/openxcom/files/patch-src_Savegame_Craft.cpp