Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2020 12:47:29 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r522568 - branches/2020Q1/games/arx-libertatis
Message-ID:  <202001101247.00AClT9S047887@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Fri Jan 10 12:47:29 2020
New Revision: 522568
URL: https://svnweb.freebsd.org/changeset/ports/522568

Log:
  MFH: r522567
  
  games/arx-libertatis: fix build on GCC architectures
  
  OpenAL needs C++11 compiler:
    /usr/local/lib/libopenal.so: undefined reference to
    `std::thread::join()@GLIBCXX_3.4.11'
  
  Approved by:	portmgr (fix build blanket)

Modified:
  branches/2020Q1/games/arx-libertatis/Makefile
Directory Properties:
  branches/2020Q1/   (props changed)

Modified: branches/2020Q1/games/arx-libertatis/Makefile
==============================================================================
--- branches/2020Q1/games/arx-libertatis/Makefile	Fri Jan 10 12:46:29 2020	(r522567)
+++ branches/2020Q1/games/arx-libertatis/Makefile	Fri Jan 10 12:47:29 2020	(r522568)
@@ -17,14 +17,13 @@ LICENSE_FILE=	${WRKSRC}/ARX_PUBLIC_LICENSE.txt
 LIB_DEPENDS=	libfreetype.so:print/freetype2
 BUILD_DEPENDS=	${LOCALBASE}/include/boost/foreach.hpp:devel/boost-libs
 
-USES=		cmake gl openal sdl tar:xz
+USES=		cmake compiler:c++11-lang gl openal sdl tar:xz
 USE_SDL=	sdl
 USE_GL=		gl glew
 LLD_UNSAFE=	yes
 CMAKE_ARGS=	-DDATA_DIR=arx \
 		-DSTRICT_USE=ON \
 		-DBUILD_CRASHREPORTER=OFF
-CFLAGS_powerpc64+=	-mminimal-toc
 
 SUB_FILES=	pkg-message
 
@@ -33,6 +32,12 @@ PORTDOCS=	AUTHORS CHANGELOG README.md
 OPTIONS_DEFINE=	DOCS
 OPTIONS_SUB=	yes
 
+.include <bsd.port.pre.mk>
+
+.if defined(PPC_ABI) && ${PPC_ABI} == ELFv1
+CFLAGS+=	-mminimal-toc
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/CMakeLists.txt
 
@@ -42,4 +47,4 @@ post-install:
 	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
 .endfor
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001101247.00AClT9S047887>