summaryrefslogtreecommitdiff
path: root/extra/alsa-tools
diff options
context:
space:
mode:
Diffstat (limited to 'extra/alsa-tools')
-rw-r--r--extra/alsa-tools/PKGBUILD10
-rw-r--r--extra/alsa-tools/alsa-tools-1.0.27-mips.patch13
2 files changed, 19 insertions, 4 deletions
diff --git a/extra/alsa-tools/PKGBUILD b/extra/alsa-tools/PKGBUILD
index e728115bd..9c19f436c 100644
--- a/extra/alsa-tools/PKGBUILD
+++ b/extra/alsa-tools/PKGBUILD
@@ -7,7 +7,7 @@ pkgname=alsa-tools
pkgver=1.0.27
pkgrel=5
pkgdesc="Advanced tools for certain sound cards"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://alsa-project.org/"
license=('GPL')
depends=('gcc-libs' 'alsa-lib')
@@ -18,8 +18,10 @@ optdepends=('fltk: hdspconf, hdspmixer'
'bash: couple of tools')
provides=("$pkgname-emu10k1" "$pkgname-ice1712")
options=('!libtool')
-source=("ftp://ftp.alsa-project.org/pub/tools/$pkgname-$pkgver.tar.bz2")
-md5sums=('1ea381d00a6069a98613aa7effa4cb51')
+source=("ftp://ftp.alsa-project.org/pub/tools/$pkgname-$pkgver.tar.bz2"
+ "alsa-tools-1.0.27-mips.patch")
+md5sums=('1ea381d00a6069a98613aa7effa4cb51'
+ 'b34bbbe42216354c4cafae6cd504bdc5')
_tools=("as10k1" "echomixer" "envy24control" "hdajackretask" "hda-verb"
"hdspconf" "hdsploader" "hdspmixer" "ld10k1" "mixartloader"
@@ -28,7 +30,7 @@ _tools=("as10k1" "echomixer" "envy24control" "hdajackretask" "hda-verb"
prepare() {
cd "$srcdir/$pkgname-$pkgver"
-
+ patch -Np1 -i ${srcdir}/alsa-tools-1.0.27-mips.patch
# qlo10k1 cannot be built; it depends on ld10k1
sed -i 's:ld10k1 qlo10k1 \\:ld10k1 \\:' Makefile
diff --git a/extra/alsa-tools/alsa-tools-1.0.27-mips.patch b/extra/alsa-tools/alsa-tools-1.0.27-mips.patch
new file mode 100644
index 000000000..849d94d94
--- /dev/null
+++ b/extra/alsa-tools/alsa-tools-1.0.27-mips.patch
@@ -0,0 +1,13 @@
+--- alsa-tools-1.0.27.orig/hda-verb/hda-verb.c 2013-04-11 06:43:07.000000000 -0500
++++ alsa-tools-1.0.27/hda-verb/hda-verb.c 2013-08-04 22:50:09.688476561 -0500
+@@ -14,8 +14,10 @@
+ #include <unistd.h>
+ #include <sys/ioctl.h>
+ #ifndef __PPC__
++#ifndef __mips__
+ #include <sys/io.h>
+ #endif
++#endif
+ #include <sys/types.h>
+ #include <sys/fcntl.h>
+