svn commit: r483328 - in head/games/spacejunk: . files
Mark Linimon
linimon at FreeBSD.org
Sun Oct 28 19:35:21 UTC 2018
Author: linimon
Date: Sun Oct 28 19:35:19 2018
New Revision: 483328
URL: https://svnweb.freebsd.org/changeset/ports/483328
Log:
Fix build on powerpc64.
PR: 232325
Submitted by: Piotr Kubaj
Approved by: portmgr (tier-2 blanket)
Added:
head/games/spacejunk/files/patch-src_pmask.h (contents, props changed)
Modified:
head/games/spacejunk/Makefile
Modified: head/games/spacejunk/Makefile
==============================================================================
--- head/games/spacejunk/Makefile Sun Oct 28 19:31:37 2018 (r483327)
+++ head/games/spacejunk/Makefile Sun Oct 28 19:35:19 2018 (r483328)
@@ -16,11 +16,11 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_aarch64= Fails to compile: error: _compile_time_assert__ declared as an array with a negative size
BROKEN_sparc64= Doesn't compile on sparc64
-USES= localbase
+USES= dos2unix localbase
+USE_CXXSTD= c++98
GNU_CONFIGURE= yes
USE_SDL= sdl mixer image
-CXXFLAGS+= -Wno-c++11-narrowing
CXXFLAGS+= -O0 # XXX: segfaults with optimization, need to investigate
SUB_FILES= spacejunk
Added: head/games/spacejunk/files/patch-src_pmask.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/spacejunk/files/patch-src_pmask.h Sun Oct 28 19:35:19 2018 (r483328)
@@ -0,0 +1,11 @@
+--- src/pmask.h.orig 2018-10-16 15:21:01 UTC
++++ src/pmask.h
+@@ -36,7 +36,7 @@ extern "C" {
+ //e.g. 4 for 16-bit ints, 5 for 32-bit ints, 6 for 64-bit ints
+ //don't worry about setting it incorrectly
+ //you'll get a compile error if you do, not a run-time error
+-#if defined(__alpha__) || defined(__ia64__) || defined(__x86_64__)
++#if defined(__alpha__) || defined(__ia64__) || defined(__x86_64__) || defined(__powerpc64__)
+ #define MASK_WORD_BITBITS 6
+ #else
+ #define MASK_WORD_BITBITS 5
More information about the svn-ports-all
mailing list