Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2021 22:18:21 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r568619 - head/games/openclonk
Message-ID:  <202103162218.12GMIL7c003085@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Tue Mar 16 22:18:20 2021
New Revision: 568619
URL: https://svnweb.freebsd.org/changeset/ports/568619

Log:
  games/openclonk: fix build on powerpc64le
  
  Use GCC for its SSE -> AltiVec translation:
  /usr/lib/clang/11.0.1/include/mmintrin.h:50:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
      return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);

Modified:
  head/games/openclonk/Makefile

Modified: head/games/openclonk/Makefile
==============================================================================
--- head/games/openclonk/Makefile	Tue Mar 16 22:15:12 2021	(r568618)
+++ head/games/openclonk/Makefile	Tue Mar 16 22:18:20 2021	(r568619)
@@ -28,14 +28,23 @@ LIB_DEPENDS=	libalut.so:audio/freealut \
 WRKSRC=		${WRKDIR}/openclonk-release-${PORTVERSION}-src
 
 # make install has parallel issues with ninja
-USES=		cmake:noninja compiler:c++14-lang desktop-file-utils gl gnome \
-		jpeg openal pkgconfig sdl tar:bzip2 xorg
+USES=		cmake:noninja desktop-file-utils gl gnome jpeg openal \
+		pkgconfig sdl tar:bzip2 xorg
 USE_GL=		gl glew glu
 USE_SDL=	sdl2
 USE_XORG=	x11 xpm
 INSTALLS_ICONS=	yes
 CMAKE_ARGS=	-DAudio_TK:STRING="OpenAL"
 LDFLAGS_i386=	-Wl,-znotext
+
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64le
+CFLAGS+=	-DNO_WARN_X86_INTRINSICS
+USES+=		compiler:gcc-c++11-lib
+.else
+USES+=		compiler:c++14-lang
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|DESTINATION games|DESTINATION bin|' \



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