This port needs USES=compiler:c++11-lang to build on GCC architectures.

To build with GCC, it also needs algorithm and sys/limits.h includes.

PR:		232863
Submitted by:	Piotr Kubaj
Approved by:	portmgr (tier-2 blanket)
This commit is contained in:
Mark Linimon 2018-11-02 01:46:24 +00:00
parent 532dfd0b5b
commit f9206ba04d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=483761
2 changed files with 12 additions and 1 deletions

View File

@ -15,7 +15,7 @@ LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes
USES= gmake localbase tar:tgz
USES= compiler:c++11-lang gl gmake localbase tar:tgz
USE_GL= gl
USE_WX= 2.8

View File

@ -0,0 +1,11 @@
--- src/ai.cpp.orig 2018-10-31 18:46:12 UTC
+++ src/ai.cpp
@@ -22,6 +22,8 @@
/* This file is contains the AI logic.
*/
+#include <algorithm>
+#include <sys/limits.h>
#include "ai.h"
AI::AI(BlokishBoard &board)