libffado: rebuilt for multimedia group

This commit is contained in:
Neofytos Kolokotronis 2016-01-19 23:11:47 +01:00
parent 165f0dc95d
commit 4e07e80e14
2 changed files with 57 additions and 8 deletions

View File

@ -1,26 +1,31 @@
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# Contributor: abveritas[at]chakra-project[dot]org>
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/libffado
pkgname=libffado
pkgver=2.2.1
pkgrel=1
pkgrel=2
pkgdesc="Driver for FireWire audio devices"
arch=('x86_64')
url="http://www.ffado.org/"
license=('GPL')
depends=('libiec61883' 'libavc1394' 'libsigc++' 'libxml++' 'alsa-lib'
'dbus' 'libconfig' 'dbus-c++')
makedepends=('scons' 'python2-pyqt4' 'python2')
makedepends=('scons' 'python2-pyqt4')
optdepends=('python2-pyqt4: mixer applet'
'python2: ffado-diag')
source=("http://www.ffado.org/files/libffado-$pkgver.tgz"
'python2-qt.patch')
'python2-qt.patch'
'fix-test-errno-usage.patch')
md5sums=('e113d828835051f835fb4a329cb0cbd4'
'acb6e0dca1239850c7862bf2e1443fd7')
'acb6e0dca1239850c7862bf2e1443fd7'
'd9cf3bed720e82ea97e29003f20b3c6b')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805211
patch -Np1 -i "$srcdir/fix-test-errno-usage.patch"
msg2 "Applying Python 2 compatibility patch (downstream)"
patch -Np1 -i "$srcdir/python2-qt.patch"
}
@ -33,7 +38,7 @@ build() {
PREFIX=/usr \
MANDIR=/usr/share/man \
UDEVDIR=/usr/lib/udev/rules.d \
COMPILE_FLAGS="$CFLAGS"
COMPILE_FLAGS="$CFLAGS -std=gnu++11"
}
package() {

View File

@ -0,0 +1,44 @@
--- a/tests/test-enhanced-mixer.cpp
+++ b/tests/test-enhanced-mixer.cpp
@@ -77,7 +77,7 @@
exit(0);
}
- int errno = 0;
+ extern int errno;
char* tail;
int node_id = strtol( argv[1], &tail, 0 );
int fb_id = strtol( argv[2], &tail, 0 );
--- a/tests/test-mixer.cpp
+++ b/tests/test-mixer.cpp
@@ -227,7 +227,7 @@
exit(0);
}
- int errno = 0;
+ extern int errno;
char* tail;
int port = strtol( argv[1], &tail, 0 );
int node_id = strtol( argv[2], &tail, 0 );
--- a/tests/test-pan.cpp
+++ b/tests/test-pan.cpp
@@ -131,7 +131,7 @@
exit(0);
}
- int errno = 0;
+ extern int errno;
char* tail;
int node_id = strtol( argv[1], &tail, 0 );
int fb_id = strtol( argv[2], &tail, 0 );
--- a/tests/test-volume.cpp
+++ b/tests/test-volume.cpp
@@ -127,7 +127,7 @@
exit(0);
}
- int errno = 0;
+ extern int errno;
char* tail;
int node_id = strtol( argv[1], &tail, 0 );
int fb_id = strtol( argv[2], &tail, 0 );