Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2019 15:20:28 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r492784 - in head/games/dhewm3: . files
Message-ID:  <201902121520.x1CFKSaP089561@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Feb 12 15:20:28 2019
New Revision: 492784
URL: https://svnweb.freebsd.org/changeset/ports/492784

Log:
  - Add USES=compiler:c++11-lang to fix build on GCC architectures
  - Also, add patch to fix build on powerpc
  
  PR:		235668
  Submitted by:	pkubaj@anongoth.pl

Added:
  head/games/dhewm3/files/patch-renderer_tr__main.cpp   (contents, props changed)
Modified:
  head/games/dhewm3/Makefile

Modified: head/games/dhewm3/Makefile
==============================================================================
--- head/games/dhewm3/Makefile	Tue Feb 12 15:19:45 2019	(r492783)
+++ head/games/dhewm3/Makefile	Tue Feb 12 15:20:28 2019	(r492784)
@@ -18,7 +18,7 @@ LIB_DEPENDS=	libcurl.so:ftp/curl \
 USE_GITHUB=	yes
 GH_ACCOUNT=	dhewm
 
-USES=		cmake jpeg openal:al
+USES=		cmake compiler:c++11-lang jpeg openal:al
 USE_SDL=	sdl2
 LLD_UNSAFE=	yes
 

Added: head/games/dhewm3/files/patch-renderer_tr__main.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/dhewm3/files/patch-renderer_tr__main.cpp	Tue Feb 12 15:20:28 2019	(r492784)
@@ -0,0 +1,17 @@
+https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235668:
+
+On powerpc* platforms vecLib/vecLib.h is included by default. This
+header is only available on Mac OS X, so remove it. It doesn't seem
+to be actually needed to compile this port
+
+--- renderer/tr_main.cpp.orig	2019-02-11 12:39:53 UTC
++++ renderer/tr_main.cpp
+@@ -26,7 +26,7 @@ If you have questions concerning this license or the a
+ ===========================================================================
+ */
+ 
+-#ifdef __ppc__
++#if defined(__ppc__) && defined(__APPLE__)
+ #include <vecLib/vecLib.h>
+ #endif
+ #if defined(__GNUC__) && defined(__SSE2__)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902121520.x1CFKSaP089561>