Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2018 19:35:20 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r483328 - in head/games/spacejunk: . files
Message-ID:  <201810281935.w9SJZKcw054499@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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