1{ stdenv, fetchurl, popt }:
2
3stdenv.mkDerivation rec {
4 name = "libdv-1.0.0";
5
6 src = fetchurl {
7 url = "mirror://sourceforge/libdv/${name}.tar.gz";
8 sha256 = "1fl96f2xh2slkv1i1ix7kqk576a0ak1d33cylm0mbhm96d0761d3";
9 };
10
11 # This fixes an undefined symbol: _sched_setscheduler error on compile.
12 # See the apple docs: http://cl.ly/2HeF bottom of the "Finding Imported Symbols" section
13 LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-undefined dynamic_lookup";
14
15 configureFlags = [
16 "--disable-asm"
17 "--disable-sdl"
18 "--disable-gtk"
19 "--disable-xv"
20 "--disable-gprof"
21 ];
22
23 buildInputs = [ popt ];
24
25 meta = with stdenv.lib; {
26 description = "Software decoder for DV format video, as defined by the IEC 61834 and SMPTE 314M standards";
27 homepage = http://sourceforge.net/projects/libdv/;
28 license = licenses.lgpl21Plus;
29 platforms = platforms.unix;
30 };
31}