From owner-svn-ports-head@freebsd.org Sun Oct 28 19:35:21 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EFDFB10DE1C9; Sun, 28 Oct 2018 19:35:20 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9E2B06C118; Sun, 28 Oct 2018 19:35:20 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7D83023BAE; Sun, 28 Oct 2018 19:35:20 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9SJZK3f054501; Sun, 28 Oct 2018 19:35:20 GMT (envelope-from linimon@FreeBSD.org) Received: (from linimon@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9SJZKcw054499; Sun, 28 Oct 2018 19:35:20 GMT (envelope-from linimon@FreeBSD.org) Message-Id: <201810281935.w9SJZKcw054499@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: linimon set sender to linimon@FreeBSD.org using -f From: Mark Linimon Date: Sun, 28 Oct 2018 19:35:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r483328 - in head/games/spacejunk: . files X-SVN-Group: ports-head X-SVN-Commit-Author: linimon X-SVN-Commit-Paths: in head/games/spacejunk: . files X-SVN-Commit-Revision: 483328 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2018 19:35:21 -0000 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