Skip to content

Commit

Permalink
games/tome4: fix build on powerpc
Browse files Browse the repository at this point in the history
Force GCC:
In file included from ../src/luajit2/src/host/buildvm_lib.c:6:
In file included from ../src/luajit2/src/host/buildvm.h:16:
../src/luajit2/src/lj_arch.h:295:2: error: "Need at least GCC 4.3 or newer"
  • Loading branch information
pkubaj committed Jun 15, 2021
1 parent 5240cba commit 5ba3ec8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions games/tome4/Makefile
Expand Up @@ -18,10 +18,9 @@ BUILD_DEPENDS= premake4:devel/premake4
LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \
libpng.so:graphics/png

USES= compiler:c++11-lang gl gmake openal:al sdl tar:bzip2 xorg
USES= gl gmake openal:al sdl tar:bzip2 xorg
USE_SDL= image2 sdl2 ttf2
USE_GL= gl glu
USE_CSTD= gnu89
SUB_FILES= tome4

MAKE_JOBS_UNSAFE= yes
Expand All @@ -34,7 +33,13 @@ WRKSRC= ${WRKDIR}/t-engine4-src-${DISTVERSION}
MAKE_ARGS+= config=release verbose=yes ARCH="" CC=${CC} CXX=${CXX}
LDFLAGS_i386= -Wl,-znotext

.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>

.if ${ARCH} == powerpc
USES+= compiler:gcc-c++11-lib
.else
USES+= compiler:c++11-lang
.endif

pre-build:
@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/premake4.lua
Expand All @@ -55,4 +60,4 @@ do-install:
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps

.include <bsd.port.post.mk>
.include <bsd.port.mk>

0 comments on commit 5ba3ec8

Please sign in to comment.