summary refs log tree commit diff
path: root/pkgs/applications/video/kino/default.nix
blob: 2a0af3ed59e4c0d6fbf5df0f758ad10411d89fed (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# is this configure option of interest?
#--enable-udev-rules-dir=PATH
#                        Where to install udev rules (/etc/udev/rules.d)

#TODO shared version?


# This is my config output.. Much TODO ?
#source path               /tmp/nix-31998-1/kino-1.2.0/ffmpeg
#C compiler                gcc
#make                      make
#.align is power-of-two    no
#ARCH                      x86_64 (generic)
#build suffix              -kino
#big-endian                no
#MMX enabled               yes
#CMOV enabled              no
#CMOV is fast              no
#gprof enabled             no
#debug symbols             yes
#strip symbols             yes
#optimize                  yes
#static                    yes
#shared                    no
#postprocessing support    no
#software scaler enabled   yes
#video hooking             no
#network support           no
#threading support         no
#SDL support               no
#Sun medialib support      no
#AVISynth enabled          no
#liba52 support            no
#liba52 dlopened           no
#libdts support            no
#libfaac enabled           no
#libfaad enabled           no
#faadbin enabled           no
#libgsm enabled            no
#libmp3lame enabled        no
#libnut enabled            no
#libogg enabled            no
#libtheora enabled         no
#libvorbis enabled         no
#x264 enabled              no
#XviD enabled              no
#zlib enabled              no
#AMR-NB float support      no
#AMR-NB fixed support      no
#AMR-WB float support      no
#AMR-WB IF2 support        no

{ stdenv, fetchurl, gtk2, libglade, libxml2, libraw1394, libsamplerate, libdv
, pkgconfig, perlPackages, libavc1394, libiec61883, libXv, gettext
, libX11, glib, cairo, intltool, ffmpeg, libv4l
}:

stdenv.mkDerivation {
  name = "kino-1.3.4";

  src = fetchurl {
    url = mirror://sourceforge/kino/kino-1.3.4.tar.gz;
    sha256 = "020s05k0ma83rq2kfs8x474pqicaqp9spar81qc816ddfrnh8k8i";
  };

  buildInputs = [ gtk2 libglade libxml2 libraw1394 libsamplerate libdv
      pkgconfig libavc1394 libiec61883 intltool libXv gettext libX11 glib cairo ffmpeg libv4l ] # TODOoptional packages
    ++ (with perlPackages; [ perl XMLParser ]);

  configureFlags = [ "--enable-local-ffmpeg=no" ];

  hardeningDisable = [ "format" ];

  NIX_LDFLAGS = "-lavcodec -lavutil";

  patches = [ ./kino-1.3.4-v4l1.patch ./kino-1.3.4-libav-0.7.patch ./kino-1.3.4-libav-0.8.patch ]; #./kino-1.3.4-libavcodec-pkg-config.patch ];

  postInstall = "
    rpath=`patchelf --print-rpath \$out/bin/kino`;
    for i in $buildInputs; do
      echo adding \$i/lib
      rpath=\$rpath\${rpath:+:}\$i/lib
    done
    for i in \$out/bin/*; do
      patchelf --set-rpath \"\$rpath\" \"\$i\"
    done
  ";

  meta = {
      description = "Non-linear DV editor for GNU/Linux";
      homepage = http://www.kinodv.org/;
      license = stdenv.lib.licenses.gpl2;
    platforms = stdenv.lib.platforms.linux;
  };
}