DESCRIPTION = "An audio Sample Rate Conversion library"
SECTION = "libs"
LICENSE = "GPL libsamplerate"

PR = "r1"

SRC_URI = "http://www.mega-nerd.com/SRC/libsamplerate-${PV}.tar.gz \
           file://libsamplerate-0.1.7-macro-quoting.patch;striplevel=0 \
           file://libsamplerate-0.1.7-tests.patch "
S = "${WORKDIR}/libsamplerate-${PV}"

inherit autotools pkgconfig


SRC_URI[md5sum] = "ad093e60ec44f0a60de8e29983ddbc0f"
SRC_URI[sha256sum] = "e0a646224a0323ac63f56ef009b2d7fee11452a7b8af139b19ae71d2890dbc9c"

DESCRIPTION = "An audio Sample Rate Conversion library"
SECTION = "libs"
LICENSE = "GPL libsamplerate"

PR = "r2"

SRC_URI = "http://www.mega-nerd.com/SRC/libsamplerate-${PV}.tar.gz \
           file://libsamplerate-0.1.7-macro-quoting.patch;striplevel=0 \
           file://libsamplerate-0.1.7-tests.patch "
S = "${WORKDIR}/libsamplerate-${PV}"

inherit autotools pkgconfig


SRC_URI[md5sum] = "6731a81cb0c622c483b28c0d7f90867d"
SRC_URI[sha256sum] = "78ed5d9ff1bf162c4a078f6a3e7432a537dd2f22dc58872b081fb01156027fcc"

Fix checksums to match downloaded file
libsamplerate: Fix checksums to match downloaded file

* libsamplerate-0.1.7.tar.gz has changed upstream.  The Angstrom mirror has an old version of the file.  Pulling it from the source, I see that the following two changes have been made without bumping the version:
*
* diff -ur old-libsamplerate-0.1.7/ChangeLog libsamplerate-0.1.7/ChangeLog
* --- old-libsamplerate-0.1.7/ChangeLog   2009-02-14 11:37:27.000000000 +0000
* +++ libsamplerate-0.1.7/ChangeLog       2009-02-15 00:17:35.000000000 +0000
* @@ -11,7 +11,7 @@
*      This bug has zero security implications beyond the ability to cause a
*      program hitting this bug to exit immediately with a segfault.
*      See : http://www.mega-nerd.com/erikd/Blog/2009/Feb/14/index.html
* -    Thanks to David Cournapeau for the bug report.
* +    Thanks to David Cournapeau and Lev Givon for the bug report.
*
*      * doc/win32.html Makefile.am configure.ac
*      Reinstate Win32/MSVC compile instructions.
* diff -ur old-libsamplerate-0.1.7/Win32/config.h libsamplerate-0.1.7/Win32/config.h
* --- old-libsamplerate-0.1.7/Win32/config.h      2009-02-14 11:42:49.000000000 +0000
* +++ libsamplerate-0.1.7/Win32/config.h  2009-02-14 11:46:40.000000000 +0000
* @@ -190,8 +190,7 @@
*  #define STDC_HEADERS 1
*
*  /* Version number of package */
* -<<<<<<< diff from left file
* -#define VERSION "0.1.4"
* +#define VERSION "0.1.7"
*
*
*
* @@ -203,6 +202,3 @@
*  */
*
*  #define inline __inline
* -========
* -#define VERSION "0.1.7"
* ->>>>>>> diff from right file
*
*
* The following patch corrects the checksums for the new version.
*

Signed-off-by: Martin Jansa <516df3ff67e1fa5d153800b15fb204c0a1a389dc@gmail.com>
