diff --git a/games/spacejunk/Makefile b/games/spacejunk/Makefile index 1664a897cb1c..c5bb711c2843 100644 --- a/games/spacejunk/Makefile +++ b/games/spacejunk/Makefile @@ -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 diff --git a/games/spacejunk/files/patch-src_pmask.h b/games/spacejunk/files/patch-src_pmask.h new file mode 100644 index 000000000000..9eedafb99492 --- /dev/null +++ b/games/spacejunk/files/patch-src_pmask.h @@ -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