blob: e6c8149edc09163641f8ffc68c9e5eb5caae56f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{stdenv, fetchurl, bash, yasm}:
stdenv.mkDerivation rec {
name = "libvpx-0.9.1";
src = fetchurl {
url = http://webm.googlecode.com/files/libvpx-0.9.1.tar.bz2;
sha256 = "0ngc8y12np2q6yhrrn6cbmlbzwbk10fnldj8d5dxxzvrw1iy9s64";
};
patchPhase = ''
sed -e 's,/bin/bash,${bash}/bin/bash,' -i configure build/make/version.sh \
examples/gen_example_code.sh
sed -e '/enable linux/d' -i configure
'';
configureScript = "../configure";
preConfigure = ''
mkdir -p build
cd build
'';
configureFlags = [
"--disable-install-srcs"
"--disable-examples"
"--enable-vp8"
"--enable-runtime-cpu-detect"
"--enable-shared"
"--enable-pic"
];
installPhase = ''
make quiet=false DIST_DIR=$out install
'';
buildInputs = [ yasm ];
meta = {
description = "VP8 video encoder";
homepage = http://code.google.com/p/webm;
license = "BSD";
};
}
|