Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2020 15:24:00 +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: r555560 - in head/graphics/darktable: . files
Message-ID:  <202011171524.0AHFO0xX048640@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Tue Nov 17 15:24:00 2020
New Revision: 555560
URL: https://svnweb.freebsd.org/changeset/ports/555560

Log:
  graphics/darktable: fix build on powerpc64le, add aarch64 to the mix
  
  powerpc64le needs already committed patch for opencl, aarch64 is untested because:
  [00:00:12] Finished lang/rust | rust-1.47.0: Ignored: fails to build with qemu-user-static
  
  It may need another fix.

Added:
  head/graphics/darktable/files/patch-src_external_OpenCL_CL_cl__platform.h   (contents, props changed)
Modified:
  head/graphics/darktable/Makefile

Modified: head/graphics/darktable/Makefile
==============================================================================
--- head/graphics/darktable/Makefile	Tue Nov 17 14:12:10 2020	(r555559)
+++ head/graphics/darktable/Makefile	Tue Nov 17 15:24:00 2020	(r555560)
@@ -12,8 +12,8 @@ COMMENT=	Virtual lighttable and darkroom for photograp
 
 LICENSE=	GPLv3
 
-ONLY_FOR_ARCHS=		amd64
-ONLY_FOR_ARCHS_REASON=	uses SSE instructions and 64-bit address space
+ONLY_FOR_ARCHS=		aarch64 amd64 powerpc64le
+ONLY_FOR_ARCHS_REASON=	uses 64-bit address space
 
 BUILD_DEPENDS=	iso-codes>=0:misc/iso-codes \
 		p5-Pod-Parser>=0:textproc/p5-Pod-Parser \

Added: head/graphics/darktable/files/patch-src_external_OpenCL_CL_cl__platform.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/darktable/files/patch-src_external_OpenCL_CL_cl__platform.h	Tue Nov 17 15:24:00 2020	(r555560)
@@ -0,0 +1,13 @@
+--- src/external/OpenCL/CL/cl_platform.h.orig	2020-11-17 15:04:41 UTC
++++ src/external/OpenCL/CL/cl_platform.h
+@@ -355,7 +355,9 @@ typedef unsigned int cl_GLenum;
+ 
+ /* Define basic vector types */
+ #if defined( __VEC__ )
+-   #include <altivec.h>   /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */
++   #if !defined(__clang__)
++      #include <altivec.h>   /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */
++   #endif
+    typedef __vector unsigned char     __cl_uchar16;
+    typedef __vector signed char       __cl_char16;
+    typedef __vector unsigned short    __cl_ushort8;



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