diff options
Diffstat (limited to 'gnome-unstable/libmusicbrainz4')
-rw-r--r-- | gnome-unstable/libmusicbrainz4/0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch | 28 | ||||
-rw-r--r-- | gnome-unstable/libmusicbrainz4/PKGBUILD | 30 |
2 files changed, 58 insertions, 0 deletions
diff --git a/gnome-unstable/libmusicbrainz4/0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch b/gnome-unstable/libmusicbrainz4/0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch new file mode 100644 index 000000000..e1c099aae --- /dev/null +++ b/gnome-unstable/libmusicbrainz4/0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch @@ -0,0 +1,28 @@ +From 64c68ad42a9089c92dfa4e74f55b6c1b65b8f11c Mon Sep 17 00:00:00 2001 +From: Christophe Fergeau <cfergeau@redhat.com> +Date: Sun, 4 Mar 2012 14:32:49 +0100 +Subject: [PATCH] Make sure gcc 4.7 can find usleep declaration + +Without this, compilation fails with: + +libmusicbrainz-4.0.0/src/Query.cc: In member function 'void MusicBrainz4::CQuery::WaitRequest() const': +libmusicbrainz-4.0.0/src/Query.cc:295:19: error: 'usleep' was not declared in this scope +--- + src/Query.cc | 3 ++- + 1 files changed, 2 insertions(+), 1 deletions(-) + +diff --git a/src/Query.cc b/src/Query.cc +index 5f5934f..9332346 100644 +--- a/src/Query.cc ++++ b/src/Query.cc +@@ -33,6 +33,7 @@ + + #include <string.h> + #include <sys/time.h> ++#include <unistd.h> + + #include <ne_uri.h> + +-- +1.7.7.6 + diff --git a/gnome-unstable/libmusicbrainz4/PKGBUILD b/gnome-unstable/libmusicbrainz4/PKGBUILD new file mode 100644 index 000000000..eb7c4f826 --- /dev/null +++ b/gnome-unstable/libmusicbrainz4/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 154808 2012-03-30 18:44:29Z heftig $ +# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> +# Contributor: Ionut Biru <ibiru@archlinux.org> +# Contributor: Max Fehrm max.fehrm@gmail.com + +pkgname=libmusicbrainz4 +pkgver=4.0.0 +pkgrel=1 +pkgdesc="Library That Provides Access to the MusicBrainz Server " +url="http://musicbrainz.org/" +arch=('i686' 'x86_64') +license=('LGPL2.1') +depends=('neon') +makedepends=('cmake') +source=(ftp://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-$pkgver.tar.gz + 0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch) +md5sums=('21c33f5dd20b8bb945b800e2a964f27e' + 'df1dfa423d32a7a1d08b3fc0114bf087') + +build() { + cd libmusicbrainz-$pkgver + patch -Np1 -i ../0001-Make-sure-gcc-4.7-can-find-usleep-declaration.patch + cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr + make +} + +package() { + cd libmusicbrainz-$pkgver + make DESTDIR="$pkgdir" install +} |