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

stdenv.mkDerivation rec {
  name = "libdv-1.0.0";

  src = fetchurl {
    url = "mirror://sourceforge/libdv/${name}.tar.gz";
    sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3";
  };

  # This fixes an undefined symbol: _sched_setscheduler error on compile.
  # See the apple docs: http://cl.ly/2HeF bottom of the "Finding Imported Symbols" section
  LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-undefined dynamic_lookup";

  configureFlags = [
    "--disable-asm"
    "--disable-sdl"
    "--disable-gtk"
    "--disable-xv"
    "--disable-gprof"
  ];

  buildInputs = [ popt ];

  meta = with stdenv.lib; {
    description = "Software decoder for DV format video, as defined by the IEC 61834 and SMPTE 314M standards";
    homepage = "https://sourceforge.net/projects/libdv/";
    license = licenses.lgpl21Plus;
    platforms = platforms.unix;
  };
}