diff options
Diffstat (limited to 'extra/libofa')
-rw-r--r-- | extra/libofa/PKGBUILD | 7 | ||||
-rw-r--r-- | extra/libofa/gcc47.patch | 22 |
2 files changed, 27 insertions, 2 deletions
diff --git a/extra/libofa/PKGBUILD b/extra/libofa/PKGBUILD index 4604e91a0..7ae65d413 100644 --- a/extra/libofa/PKGBUILD +++ b/extra/libofa/PKGBUILD @@ -4,9 +4,9 @@ pkgname=libofa pkgver=0.9.3 -pkgrel=4 +pkgrel=4.1 pkgdesc="An open-source audio fingerprint by MusicIP" -arch=('i686' 'x86_64') +arch=(i686 x86_64 'mips64el') url="http://code.google.com/p/musicip-libofa/" license=('GPL2' 'custom') depends=('expat' 'curl' 'fftw') @@ -16,11 +16,13 @@ source=("http://musicip-libofa.googlecode.com/files/$pkgname-$pkgver.tar.gz" 'gcc-4.patch' 'gcc4.3.patch' 'gcc4.5.patch' + 'gcc47.patch' 'libofa-0.9.3-curl-7.21.patch') md5sums=('51507d2c4b432bd2755f48d58471696e' 'a6f78b90bd0f4354d022a71c3e58ef6c' 'dd57db13770b8f8d196e8a3d3a50e713' 'c245363368d0e6fa2b4676364b81b74f' + '5b571a09118131d7f7c8b84617efba71' '2e1579d74613cfbb1799d0ab5f1a4cba') build() { @@ -28,6 +30,7 @@ build() { patch -p0 -i ${srcdir}/gcc-4.patch patch -p1 -i ${srcdir}/gcc4.3.patch patch -p1 -i ${srcdir}/gcc4.5.patch + patch -p1 -i ${srcdir}/gcc47.patch patch -p1 -i ${srcdir}/libofa-0.9.3-curl-7.21.patch ./configure --prefix=/usr make diff --git a/extra/libofa/gcc47.patch b/extra/libofa/gcc47.patch new file mode 100644 index 000000000..eb4b4ca20 --- /dev/null +++ b/extra/libofa/gcc47.patch @@ -0,0 +1,22 @@ +diff -ru libofa-0.9.3.orig/examples/uselame.cpp libofa-0.9.3/examples/uselame.cpp +--- libofa-0.9.3.orig/examples/uselame.cpp 2012-04-18 19:32:44.176037357 +0200 ++++ libofa-0.9.3/examples/uselame.cpp 2012-04-18 19:33:03.052805199 +0200 +@@ -12,6 +12,7 @@ + #else + #include <sys/wait.h> + #endif ++#include <unistd.h> + + AudioData *loadWaveFile(char *file); + +diff -ru libofa-0.9.3.orig/examples/wavefile.cpp libofa-0.9.3/examples/wavefile.cpp +--- libofa-0.9.3.orig/examples/wavefile.cpp 2012-04-18 19:32:44.176037357 +0200 ++++ libofa-0.9.3/examples/wavefile.cpp 2012-04-18 19:37:38.123467239 +0200 +@@ -11,6 +11,7 @@ + #include "io.h" + #endif + #include <fcntl.h> ++#include <unistd.h> + + static bool readBytes(int fd, unsigned char *buf, int size) { + int ct = 0; |