From 2777b7fae6bdbfedc205e859a1f068ac8a0af12d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sun, 23 Aug 2020 21:45:53 +0200 Subject: [PATCH] waifu2x-converter-cpp: fix build --- srcpkgs/waifu2x-converter-cpp/patches/fix-cstdio.patch | 7 +++++++ srcpkgs/waifu2x-converter-cpp/template | 1 + 2 files changed, 8 insertions(+) create mode 100644 srcpkgs/waifu2x-converter-cpp/patches/fix-cstdio.patch diff --git a/srcpkgs/waifu2x-converter-cpp/patches/fix-cstdio.patch b/srcpkgs/waifu2x-converter-cpp/patches/fix-cstdio.patch new file mode 100644 index 00000000000..3086726acab --- /dev/null +++ b/srcpkgs/waifu2x-converter-cpp/patches/fix-cstdio.patch @@ -0,0 +1,7 @@ +--- src/threadPool.cpp 2019-03-25 11:44:59.000000000 +0100 ++++ src/threadPool.cpp 2020-08-23 21:43:43.087489818 +0200 +@@ -1,3 +1,4 @@ ++#include + #include + #include + #include "threadPool.hpp" diff --git a/srcpkgs/waifu2x-converter-cpp/template b/srcpkgs/waifu2x-converter-cpp/template index 70d4a134836..4030c6f0da0 100644 --- a/srcpkgs/waifu2x-converter-cpp/template +++ b/srcpkgs/waifu2x-converter-cpp/template @@ -17,6 +17,7 @@ checksum=e10bd5c64015553d1340988cf886aa51ed3cf4108f1a3ba864b3ea818426de7d case "$XBPS_TARGET_MACHINE" in ppc*) CXXFLAGS+=" -D__APPLE_ALTIVEC__";; esac +CXXFLAGS+=" -DCL_TARGET_OPENCL_VERSION=220" pre_configure() { # conv is a generator built with add_executable