From 041327abae217aa7e52b515a51480363fb7a66aa Mon Sep 17 00:00:00 2001 From: lemmi Date: Thu, 26 Dec 2019 09:24:58 +0100 Subject: [PATCH 1/2] darktable: update to 3.0.2. --- srcpkgs/darktable/patches/altivec.patch | 37 ------------------------- srcpkgs/darktable/template | 12 ++++---- 2 files changed, 6 insertions(+), 43 deletions(-) delete mode 100644 srcpkgs/darktable/patches/altivec.patch diff --git a/srcpkgs/darktable/patches/altivec.patch b/srcpkgs/darktable/patches/altivec.patch deleted file mode 100644 index 4bed6ef4b5f..00000000000 --- a/srcpkgs/darktable/patches/altivec.patch +++ /dev/null @@ -1,37 +0,0 @@ -This fixes compilation on ppc with opencl on. Prevent opencl -headers from defining keywords as macros which would conflict -with C++ keywords as well as C99 keyword macro bool. - ---- src/external/CL/cl_platform.h -+++ src/external/CL/cl_platform.h -@@ -275,14 +275,23 @@ typedef unsigned int cl_GLenum; - - /* Define basic vector types */ - #if defined( __VEC__ ) -+ #ifndef __APPLE_ALTIVEC__ -+ /* prevent gcc from defining the keywords as macros -+ * do not manually undef for c99 stdbool.h compat -+ */ -+ #define __APPLE_ALTIVEC__ 1 -+ #include -+ #undef __APPLE_ALTIVEC__ -+ #else - #include /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */ -- typedef vector unsigned char __cl_uchar16; -- typedef vector signed char __cl_char16; -- typedef vector unsigned short __cl_ushort8; -- typedef vector signed short __cl_short8; -- typedef vector unsigned int __cl_uint4; -- typedef vector signed int __cl_int4; -- typedef vector float __cl_float4; -+ #endif -+ typedef __vector unsigned char __cl_uchar16; -+ typedef __vector signed char __cl_char16; -+ typedef __vector unsigned short __cl_ushort8; -+ typedef __vector signed short __cl_short8; -+ typedef __vector unsigned int __cl_uint4; -+ typedef __vector signed int __cl_int4; -+ typedef __vector float __cl_float4; - #define __CL_UCHAR16__ 1 - #define __CL_CHAR16__ 1 - #define __CL_USHORT8__ 1 diff --git a/srcpkgs/darktable/template b/srcpkgs/darktable/template index f54cbd9e2a0..1855ff30ec7 100644 --- a/srcpkgs/darktable/template +++ b/srcpkgs/darktable/template @@ -1,9 +1,9 @@ # Template file for 'darktable' pkgname=darktable -version=2.6.3 -revision=3 +version=3.0.2 +revision=1 # upstream only supports these archs: -archs="i686* x86_64* aarch64* ppc64le*" +archs="x86_64* aarch64* ppc64le*" build_style=cmake # this makes sure to use -march=generic and -msse3 configure_args="-DBINARY_PACKAGE_BUILD=ON -DBUILD_NOISE_TOOLS=ON @@ -13,8 +13,8 @@ makedepends="gtk+3-devel glib-devel exiv2-devel libglade-devel libxslt-devel dbus-glib-devel libcurl-devel libgphoto2-devel libwebp-devel libsoup-devel lensfun-devel sqlite-devel librsvg-devel lua-devel json-glib-devel libgomp-devel libopenjpeg2-devel libopenexr-devel libgraphicsmagick-devel - libsecret-devel pugixml-devel libosmgpsmap-devel flickcurl-devel - colord-gtk-devel desktop-file-utils" + libsecret-devel pugixml-devel libosmgpsmap-devel colord-gtk-devel + desktop-file-utils" depends="adwaita-icon-theme" short_desc="Virtual lighttable and darkroom for photographers" maintainer="lemmi " @@ -22,4 +22,4 @@ license="GPL-3.0-or-later" homepage="http://www.darktable.org/" changelog="https://github.com/darktable-org/darktable/releases" distfiles="https://github.com/darktable-org/darktable/releases/download/release-${version}/darktable-${version}.tar.xz" -checksum=a518999c8458472edfc04577026ce5047d74553052af0f52d10ba8ce601b78f0 +checksum=6abaf661fe9414e92bdb33b58b98ef024ccf6132b7876abaf0751ec2109f36fb From 958ea329ef93471df0982729bd5cfed5a2acfe7f Mon Sep 17 00:00:00 2001 From: lemmi Date: Sat, 18 Apr 2020 08:38:37 +0200 Subject: [PATCH 2/2] fixup! darktable: update to 3.0.2. --- srcpkgs/darktable/template | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/srcpkgs/darktable/template b/srcpkgs/darktable/template index 1855ff30ec7..bbd5d8853ab 100644 --- a/srcpkgs/darktable/template +++ b/srcpkgs/darktable/template @@ -23,3 +23,13 @@ homepage="http://www.darktable.org/" changelog="https://github.com/darktable-org/darktable/releases" distfiles="https://github.com/darktable-org/darktable/releases/download/release-${version}/darktable-${version}.tar.xz" checksum=6abaf661fe9414e92bdb33b58b98ef024ccf6132b7876abaf0751ec2109f36fb + +# Temporarily disable OpenMP for aarch64: +# +# see https://github.com/void-linux/void-packages/issues/21105 + +case $XBPS_TARGET_MACHINE in + aarch64*) + configure_args+=" -DUSE_OPENMP=OFF" + ;; +esac