From owner-dev-commits-ports-main@freebsd.org Tue Jun 15 08:42:24 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 889A96434E0; Tue, 15 Jun 2021 08:42:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G41z41gxqz4qTJ; Tue, 15 Jun 2021 08:42:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DB6BD24CFD; Tue, 15 Jun 2021 08:42:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 15F8gN8H065623; Tue, 15 Jun 2021 08:42:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 15F8gN4V065622; Tue, 15 Jun 2021 08:42:23 GMT (envelope-from git) Date: Tue, 15 Jun 2021 08:42:23 GMT Message-Id: <202106150842.15F8gN4V065622@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: 5ba3ec8f7b88 - main - games/tome4: fix build on powerpc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5ba3ec8f7b88490a906a0b04d7c07c857ac4d79b Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2021 08:42:25 -0000 The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=5ba3ec8f7b88490a906a0b04d7c07c857ac4d79b commit 5ba3ec8f7b88490a906a0b04d7c07c857ac4d79b Author: Piotr Kubaj AuthorDate: 2021-06-15 08:41:20 +0000 Commit: Piotr Kubaj CommitDate: 2021-06-15 08:41:20 +0000 games/tome4: fix build on powerpc 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" --- games/tome4/Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/games/tome4/Makefile b/games/tome4/Makefile index 9849d48a1222..fb98a46e8bcc 100644 --- a/games/tome4/Makefile +++ b/games/tome4/Makefile @@ -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 @@ -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 +.include + +.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 @@ -55,4 +60,4 @@ do-install: ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps -.include +.include