summary refs log tree commit diff
path: root/pkgs/development/libraries/xavs/default.nix
blob: adace96afad833608c400afcf85a7220a9f52562 (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
{ stdenv, fetchsvn }:

stdenv.mkDerivation rec {
  name = "xavs-${version}";
  version = "55";

  src = fetchsvn {
    url = "https://svn.code.sf.net/p/xavs/code/trunk";
    rev = "${version}";
    sha256 = "0drw16wm95dqszpl7j33y4gckz0w0107lnz6wkzb66f0dlbv48cf";
  };

  patchPhase = ''
    patchShebangs configure
    patchShebangs config.sub
    patchShebangs version.sh
    patchShebangs tools/countquant_xavs.pl
    patchShebangs tools/patcheck
    patchShebangs tools/regression-test.pl
    patchShebangs tools/xavs-format
  '';

  configureFlags = [
    "--enable-pic"
    "--enable-shared"
    # Bug preventing compilation with assembly enabled
    "--disable-asm"
  ];

  meta = with stdenv.lib; {
    description = "AVS encoder and decoder";
    homepage    = http://xavs.sourceforge.net/;
    license     = licenses.lgpl2;
    platforms   = platforms.linux;
    maintainers = with maintainers; [ codyopel ];
  };
}