From a2cac698efa310da25e6081ee25f70bbd5945311 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Mon, 12 Dec 2016 14:40:29 +0100 Subject: [PATCH] libopenshot-audio: fix gcc6 build --- .../patches/fix-std_isfinite.patch | 23 +++++++++++++++++++ srcpkgs/libopenshot-audio/template | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/libopenshot-audio/patches/fix-std_isfinite.patch diff --git a/srcpkgs/libopenshot-audio/patches/fix-std_isfinite.patch b/srcpkgs/libopenshot-audio/patches/fix-std_isfinite.patch new file mode 100644 index 00000000000..231f183d5a7 --- /dev/null +++ b/srcpkgs/libopenshot-audio/patches/fix-std_isfinite.patch @@ -0,0 +1,23 @@ +Fix for gcc6 which does not have std::isfinite() but suggests +to use std::finite() instead. + +--- JuceLibraryCode/modules/juce_core/maths/juce_MathsFunctions.h 2016-08-30 06:24:27.000000000 +0200 ++++ JuceLibraryCode/modules/juce_core/maths/juce_MathsFunctions.h 2016-12-12 14:33:29.170005576 +0100 +@@ -381,7 +381,7 @@ + #if JUCE_WINDOWS && !JUCE_MINGW + return _finite (value) != 0; + #else +- return std::isfinite (value); ++ return finite (value); + #endif + } + +@@ -391,7 +391,7 @@ + #if JUCE_WINDOWS && !JUCE_MINGW + return _finite (value) != 0; + #else +- return std::isfinite (value); ++ return finite (value); + #endif + } + diff --git a/srcpkgs/libopenshot-audio/template b/srcpkgs/libopenshot-audio/template index b4bffe6fdd9..858ff6a0a2e 100644 --- a/srcpkgs/libopenshot-audio/template +++ b/srcpkgs/libopenshot-audio/template @@ -1,7 +1,7 @@ # Template file for 'libopenshot-audio' pkgname=libopenshot-audio version=0.1.2 -revision=1 +revision=2 build_style=cmake only_for_archs="x86_64 i686" hostmakedepends="doxygen"