audio/supercollider: fix build on non-x86

1. Don't require WebEngine on non-x86.
2. Fix AltiVec for powerpc(64).
This commit is contained in:
Piotr Kubaj 2020-09-04 14:13:19 +00:00
parent bdf7c294d0
commit 7b13ef3cc0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547542
2 changed files with 15 additions and 2 deletions

View file

@ -22,7 +22,7 @@ USES= cmake compiler:c++11-lang iconv localbase pkgconfig \
qt:5 readline shared-mime-info tar:bzip2 xorg
USE_QT= buildtools_build concurrent core declarative gui linguisttools location \
network opengl printsupport qmake_build sensors \
sql widgets webengine websockets webchannel svg
sql widgets websockets webchannel svg
USE_XORG= x11
USE_LDCONFIG= yes
@ -53,7 +53,9 @@ SUPERNOVA_CMAKE_BOOL= SUPERNOVA
.include <bsd.port.pre.mk>
.if ! ${ARCH} == amd64 && ! ${ARCH} == i386
CMAKE_ARGS+= -DSSE:BOOL=FALSE -DSSE2:BOOL=FALSE
CMAKE_ARGS+= -DSSE:BOOL=FALSE -DSSE2:BOOL=FALSE -DSC_USE_QTWEBENGINE:BOOL=FALSE
.else
USE_QT+= webengine
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,11 @@
--- external_libraries/nova-simd/vec/vec_int_altivec.hpp.orig 2020-09-03 23:55:08.848538000 +0200
+++ external_libraries/nova-simd/vec/vec_int_altivec.hpp 2020-09-03 23:58:16.614642000 +0200
@@ -35,7 +35,7 @@
static ivec set_vector(int i)
{
#ifdef __GNUC__
- return (ivec){i, i, i, i};
+ return (ivec){static_cast<unsigned int>(i), static_cast<unsigned int>(i), static_cast<unsigned int>(i), static_cast<unsigned int>(i)};
#else
#error compiler not supported
#endif