Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Dec 2020 17:30:10 +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: r557842 - head/multimedia/wlrobs
Message-ID:  <202012121730.0BCHUAhV033074@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sat Dec 12 17:30:09 2020
New Revision: 557842
URL: https://svnweb.freebsd.org/changeset/ports/557842

Log:
  multimedia/wlrobs: fix build on powerpc64 elfv2
  
  Clang can't build this port, build with GCC:
  /usr/lib/clang/11.0.0/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/multimedia/wlrobs/Makefile

Modified: head/multimedia/wlrobs/Makefile
==============================================================================
--- head/multimedia/wlrobs/Makefile	Sat Dec 12 17:09:23 2020	(r557841)
+++ head/multimedia/wlrobs/Makefile	Sat Dec 12 17:30:09 2020	(r557842)
@@ -16,12 +16,19 @@ LICENSE_FILE=	${WRKSRC}/COPYING.md
 LIB_DEPENDS=	libwayland-client.so:graphics/wayland \
 		libobs.so:multimedia/obs-studio
 
-USES=		compiler:c11 gl meson pkgconfig
+USES=		gl meson pkgconfig
 USE_GL=		egl
 DATADIR=	${PREFIX}/lib/obs-plugins
 PORTDATA=	lib${PORTNAME}.so
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64
+USES+=		compiler:gcc-c++11-lib
 # XXX Move to "pkg-config --cflags libobs"
-CFLAGS_powerpc64=	-DNO_WARN_X86_INTRINSICS -maltivec -mvsx
+CFLAGS+=	-DNO_WARN_X86_INTRINSICS -maltivec -mvsx
+.else
+USES+=		compiler:c11
+.endif
 
 .include <bsd.port.mk>



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