diff options
author | ryoon <ryoon@pkgsrc.org> | 2014-01-01 03:03:01 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2014-01-01 03:03:01 +0000 |
commit | d2f35fe1cb63dfa8187b9e985214a32e0eae07b2 (patch) | |
tree | 577250aed201470769012d2538539971ed1ab03b /audio/speex | |
parent | a8d49a95924dc94b2eec01274ab081aee8ace732 (diff) | |
download | pkgsrc-d2f35fe1cb63dfa8187b9e985214a32e0eae07b2.tar.gz |
Fix build on Fedora 22.
Diffstat (limited to 'audio/speex')
-rw-r--r-- | audio/speex/distinfo | 3 | ||||
-rw-r--r-- | audio/speex/patches/patch-libspeex_scal.c | 19 |
2 files changed, 21 insertions, 1 deletions
diff --git a/audio/speex/distinfo b/audio/speex/distinfo index c6a141803f1..6e73a90cd2c 100644 --- a/audio/speex/distinfo +++ b/audio/speex/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.13 2009/05/09 13:22:55 joerg Exp $ +$NetBSD: distinfo,v 1.14 2014/01/01 03:03:01 ryoon Exp $ SHA1 (speex-1.2rc1.tar.gz) = 52daa72572e844e5165315e208da539b2a55c5eb RMD160 (speex-1.2rc1.tar.gz) = 6f4a11ef910b0db9b820826bcac3da1b79cad3a1 Size (speex-1.2rc1.tar.gz) = 1061882 bytes SHA1 (patch-ab) = 377ce413ee4a644327841597ba182f1b67e8eab8 +SHA1 (patch-libspeex_scal.c) = 25f6391b4500a35a04d4a5b12a3fb313778885f1 diff --git a/audio/speex/patches/patch-libspeex_scal.c b/audio/speex/patches/patch-libspeex_scal.c new file mode 100644 index 00000000000..86a6edbd11f --- /dev/null +++ b/audio/speex/patches/patch-libspeex_scal.c @@ -0,0 +1,19 @@ +$NetBSD: patch-libspeex_scal.c,v 1.1 2014/01/01 03:03:02 ryoon Exp $ + +Fix build on Fedora 22. +From upstream, +http://git.xiph.org/?p=speex.git;a=commitdiff_plain;h=42ef4a1d79eb85d450686e633500bc85450d8036 + +--- libspeex/scal.c.orig 2008-06-05 09:27:47.000000000 +0000 ++++ libspeex/scal.c +@@ -52,6 +52,10 @@ The algorithm implemented here is descri + #include <math.h> + #include <stdlib.h> + ++#ifndef M_PI ++#define M_PI 3.14159265358979323846 /* pi */ ++#endif ++ + #define ALLPASS_ORDER 20 + + struct SpeexDecorrState_ { |