svn commit: r492784 - in head/games/dhewm3: . files

Dmitry Marakasov amdmi3 at FreeBSD.org
Tue Feb 12 15:20:29 UTC 2019


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 at 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__)


More information about the svn-ports-all mailing list