mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Fix build on powerpc64.
PR: 232325 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket)
This commit is contained in:
parent
fd506a0133
commit
f4be306cd9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=483328
2 changed files with 13 additions and 2 deletions
|
@ -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_aarch64= Fails to compile: error: _compile_time_assert__ declared as an array with a negative size
|
||||||
BROKEN_sparc64= Doesn't compile on sparc64
|
BROKEN_sparc64= Doesn't compile on sparc64
|
||||||
|
|
||||||
USES= localbase
|
USES= dos2unix localbase
|
||||||
|
USE_CXXSTD= c++98
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
USE_SDL= sdl mixer image
|
USE_SDL= sdl mixer image
|
||||||
|
|
||||||
CXXFLAGS+= -Wno-c++11-narrowing
|
|
||||||
CXXFLAGS+= -O0 # XXX: segfaults with optimization, need to investigate
|
CXXFLAGS+= -O0 # XXX: segfaults with optimization, need to investigate
|
||||||
|
|
||||||
SUB_FILES= spacejunk
|
SUB_FILES= spacejunk
|
||||||
|
|
11
games/spacejunk/files/patch-src_pmask.h
Normal file
11
games/spacejunk/files/patch-src_pmask.h
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue