libopenshot-audio: apply upsteam PR 39 to build with GCC 9.
This commit is contained in:
parent
c1598badd9
commit
fbb65f4884
2 changed files with 9 additions and 26 deletions
|
@ -1,23 +0,0 @@
|
|||
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
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'libopenshot-audio'
|
||||
pkgname=libopenshot-audio
|
||||
version=0.1.8
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=cmake
|
||||
hostmakedepends="doxygen"
|
||||
makedepends="alsa-lib-devel libXcursor-devel libXinerama-devel libXrandr-devel
|
||||
|
@ -10,11 +10,17 @@ short_desc="OpenShot audio library"
|
|||
maintainer="Spencer Hill <spencernh77@gmail.com>"
|
||||
license="GPL-3.0-or-later"
|
||||
homepage="https://github.com/OpenShot/libopenshot-audio"
|
||||
distfiles="https://github.com/OpenShot/libopenshot-audio/archive/v${version}.tar.gz"
|
||||
checksum=384d0ef39c78f16d77048de3c96152321724084f978dc622675dd6bb16e15e19
|
||||
distfiles="https://github.com/OpenShot/libopenshot-audio/archive/v${version}.tar.gz
|
||||
https://patch-diff.githubusercontent.com/raw/OpenShot/libopenshot-audio/pull/39.patch"
|
||||
checksum="384d0ef39c78f16d77048de3c96152321724084f978dc622675dd6bb16e15e19
|
||||
ae784a96730f7cf09ba7bf29d06704ba6a0eca662d242d786b0a86a4343e9dc9"
|
||||
|
||||
CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/freetype2"
|
||||
|
||||
post_extract() {
|
||||
patch -p1 <../39.patch
|
||||
}
|
||||
|
||||
libopenshot-audio-devel_package() {
|
||||
short_desc+=" - development files"
|
||||
depends+=" ${sourcepkg}>=${version}_${revision}"
|
||||
|
|
Loading…
Reference in a new issue