From bc49aff4af1de8d14f040a17d01246ecfc511810 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Sun, 4 Aug 2013 23:22:23 -0500 Subject: Add alsa-tools-1.0.27-mips.patch --- extra/alsa-tools/PKGBUILD | 10 ++++++---- extra/alsa-tools/alsa-tools-1.0.27-mips.patch | 13 +++++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 extra/alsa-tools/alsa-tools-1.0.27-mips.patch 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 + #include + #ifndef __PPC__ ++#ifndef __mips__ + #include + #endif ++#endif + #include + #include + -- cgit v1.2.3-54-g00ecf