author | Eric Bélanger
<eric@archlinux.org> 2009-04-10 07:54:35 UTC |
committer | Eric Bélanger
<eric@archlinux.org> 2009-04-10 07:54:35 UTC |
parent | 60ba947a76bccabc9e377fc02fe2a797f5ae9112 |
PKGBUILD | +14 | -11 |
libofa-0.9.3-gcc-4.3.patch | +35 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index f631b98..59154f2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,22 +1,25 @@ -# Mantainer: Tobias Powalowski <tpowa@archlinux.org> +# Maintainer: Tobias Powalowski <tpowa@archlinux.org> pkgname=libofa pkgver=0.9.3 -pkgrel=1 +pkgrel=2 pkgdesc="Open Fingerprint Architecture" arch=(i686 x86_64) -url="http://www.musicdns.org/" -depends=('expat' 'curl' 'fftw') -makedepends=(pkgconfig) +url="http://code.google.com/p/musicip-libofa/" +license=('GPL2' 'custom') +depends=('expat' 'curl' 'fftw' 'gcc-libs') +makedepends=('pkgconfig') options=('!libtool') source=(http://www.musicip.com/dns/files/$pkgname-$pkgver.tar.gz - gcc-4.patch) -md5sums=('51507d2c4b432bd2755f48d58471696e' 'a6f78b90bd0f4354d022a71c3e58ef6c') + gcc-4.patch libofa-0.9.3-gcc-4.3.patch) +md5sums=('51507d2c4b432bd2755f48d58471696e' 'a6f78b90bd0f4354d022a71c3e58ef6c'\ + 'dd57db13770b8f8d196e8a3d3a50e713') build() { - cd ${startdir}/src/${pkgname}-${pkgver} + cd ${srcdir}/${pkgname}-${pkgver} patch -Np0 -i ../gcc-4.patch || return 1 - ./configure --prefix=/usr + patch -Np1 -i ../libofa-0.9.3-gcc-4.3.patch || return 1 + ./configure --prefix=/usr || return 1 make || return 1 - make DESTDIR=$startdir/pkg install || return 1 + make DESTDIR=${pkgdir} install || return 1 + install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE } - diff --git a/libofa-0.9.3-gcc-4.3.patch b/libofa-0.9.3-gcc-4.3.patch new file mode 100644 index 0000000..f68f42b --- /dev/null +++ b/libofa-0.9.3-gcc-4.3.patch @@ -0,0 +1,35 @@ +diff -ur libofa-0.9.3.orig/examples/example.cpp libofa-0.9.3/examples/example.cpp +--- libofa-0.9.3.orig/examples/example.cpp 2006-05-10 21:05:37.000000000 +0300 ++++ libofa-0.9.3/examples/example.cpp 2008-04-16 15:51:49.000000000 +0300 +@@ -9,6 +9,8 @@ + + #include "protocol.h" + ++#include <string.h> ++ + AudioData* loadWaveFile(char *file); + AudioData* loadDataUsingLAME(char *file); + +Vain hakemistossa libofa-0.9.3/examples: example.cpp.orig +diff -ur libofa-0.9.3.orig/examples/protocol.cpp libofa-0.9.3/examples/protocol.cpp +--- libofa-0.9.3.orig/examples/protocol.cpp 2006-05-10 21:05:42.000000000 +0300 ++++ libofa-0.9.3/examples/protocol.cpp 2008-04-16 15:51:49.000000000 +0300 +@@ -8,6 +8,7 @@ + -------------------------------------------------------------------*/ + #include <stdio.h> + #include <stdlib.h> ++#include <cstring> + #include <string> + #include <map> + #include <expat.h> +diff -ur libofa-0.9.3.orig/lib/signal_op.cpp libofa-0.9.3/lib/signal_op.cpp +--- libofa-0.9.3.orig/lib/signal_op.cpp 2006-05-10 21:01:12.000000000 +0300 ++++ libofa-0.9.3/lib/signal_op.cpp 2008-04-16 15:51:49.000000000 +0300 +@@ -12,6 +12,7 @@ + // DATE CREATED: 1/12/06 + + ++#include <cstdlib> + #include <math.h> + #include "signal_op.h" + #include "AFLIB/aflibConverter.h"