From 0f795aea78592088be91a2324d3971f425c256bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 14 Jun 2012 19:54:19 +0000 Subject: [PATCH] Making libtheora build on mips64el-linux svn path=/nixpkgs/trunk/; revision=34511 --- pkgs/development/libraries/libtheora/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libtheora/default.nix b/pkgs/development/libraries/libtheora/default.nix index 432e6edc61cc..8514c299679c 100644 --- a/pkgs/development/libraries/libtheora/default.nix +++ b/pkgs/development/libraries/libtheora/default.nix @@ -1,6 +1,6 @@ -{stdenv, fetchurl, libogg, libvorbis, tremor}: +{stdenv, fetchurl, libogg, libvorbis, tremor, autoconf, automake, libtool}: -stdenv.mkDerivation { +stdenv.mkDerivation ({ name = "libtheora-1.1.1"; src = fetchurl { url = http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz; @@ -14,3 +14,10 @@ stdenv.mkDerivation { configureFlags = "--disable-examples"; }; } + +# It has an old config.guess that doesn't know the mips64el. +// (if (stdenv.system == "mips64el-linux") then +{ + propagatedBuildInputs = [libogg libvorbis autoconf automake libtool]; + preConfigure = "rm config.guess; sh autogen.sh"; +} else {}))