2008-01-13 16:21:21 +01:00
|
|
|
# is this configure option of interest?
|
|
|
|
#--enable-udev-rules-dir=PATH
|
|
|
|
# Where to install udev rules (/etc/udev/rules.d)
|
|
|
|
|
2008-01-13 19:08:51 +01:00
|
|
|
#TODO shared version?
|
2008-01-13 16:21:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2016-09-11 23:24:51 +02:00
|
|
|
{ stdenv, fetchurl, gtk2, libglade, libxml2, libraw1394, libsamplerate, libdv
|
2018-10-13 00:56:15 +02:00
|
|
|
, pkgconfig, perlPackages, libavc1394, libiec61883, libXv, gettext
|
2015-02-20 22:44:10 +01:00
|
|
|
, libX11, glib, cairo, intltool, ffmpeg, libv4l
|
2011-06-29 18:21:02 +02:00
|
|
|
}:
|
2008-01-13 16:21:21 +01:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
stdenv.mkDerivation {
|
2011-06-29 18:21:02 +02:00
|
|
|
name = "kino-1.3.4";
|
2008-01-13 19:08:51 +01:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2013-07-14 02:31:12 +02:00
|
|
|
url = mirror://sourceforge/kino/kino-1.3.4.tar.gz;
|
2011-06-29 18:21:02 +02:00
|
|
|
sha256 = "020s05k0ma83rq2kfs8x474pqicaqp9spar81qc816ddfrnh8k8i";
|
2008-01-13 16:21:21 +01:00
|
|
|
};
|
|
|
|
|
2016-09-11 23:24:51 +02:00
|
|
|
buildInputs = [ gtk2 libglade libxml2 libraw1394 libsamplerate libdv
|
2018-10-13 00:56:15 +02:00
|
|
|
pkgconfig libavc1394 libiec61883 intltool libXv gettext libX11 glib cairo ffmpeg libv4l ] # TODOoptional packages
|
|
|
|
++ (with perlPackages; [ perl XMLParser ]);
|
2008-01-13 16:21:21 +01:00
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "--enable-local-ffmpeg=no" ];
|
2008-01-13 16:21:21 +01:00
|
|
|
|
2016-08-03 22:08:54 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
2015-02-20 22:44:10 +01:00
|
|
|
|
2019-01-04 20:33:50 +01:00
|
|
|
NIX_LDFLAGS = [
|
|
|
|
"-lavcodec"
|
|
|
|
"-lavutil"
|
|
|
|
];
|
|
|
|
|
2016-08-03 22:08:54 +02:00
|
|
|
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 ];
|
2015-02-20 22:44:10 +01:00
|
|
|
|
2008-01-13 16:21:21 +01:00
|
|
|
postInstall = "
|
2008-01-13 19:08:51 +01:00
|
|
|
rpath=`patchelf --print-rpath \$out/bin/kino`;
|
2019-09-17 00:15:21 +02:00
|
|
|
for i in $buildInputs; do
|
2008-01-13 16:21:21 +01:00
|
|
|
echo adding \$i/lib
|
2008-01-13 19:08:51 +01:00
|
|
|
rpath=\$rpath\${rpath:+:}\$i/lib
|
|
|
|
done
|
|
|
|
for i in \$out/bin/*; do
|
|
|
|
patchelf --set-rpath \"\$rpath\" \"\$i\"
|
2008-01-13 16:21:21 +01:00
|
|
|
done
|
|
|
|
";
|
|
|
|
|
2016-08-03 22:08:54 +02:00
|
|
|
meta = {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Non-linear DV editor for GNU/Linux";
|
2008-01-13 16:21:21 +01:00
|
|
|
homepage = http://www.kinodv.org/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-01-13 16:21:21 +01:00
|
|
|
};
|
|
|
|
}
|