summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-08-05 08:44:23 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-08-05 08:44:23 +0200
commitf8fb06773f815f5df8988d0395565f5da4fe20f8 (patch)
treecc88638fb7117f5b60db995526a3676a980ddc5b
parent3a2ed4818af5704d7da5c0f7801d7366c2ba87c3 (diff)
parentbc49aff4af1de8d14f040a17d01246ecfc511810 (diff)
Merge branch 'master' of git+ssh://parabola-git/srv/git/abslibre-mips64el
-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 260ec0825..dbdca4980 100644
--- a/extra/alsa-tools/PKGBUILD
+++ b/extra/alsa-tools/PKGBUILD
@@ -6,7 +6,7 @@
pkgname=alsa-tools
pkgver=1.0.27
pkgrel=4
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://alsa-project.org/"
license=('GPL')
depends=('gcc-libs' 'alsa-lib')
@@ -17,8 +17,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"
@@ -27,7 +29,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>
+