svn commit: r557842 - head/multimedia/wlrobs
Piotr Kubaj
pkubaj at FreeBSD.org
Sat Dec 12 17:30:10 UTC 2020
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>
More information about the svn-ports-head
mailing list