mjpg-streamer: 182 -> 2016-03-08
This commit is contained in:
parent
4a01f70f8f
commit
84e8fece41
@ -1,34 +1,31 @@
|
|||||||
{stdenv, fetchsvn, pkgconfig, libjpeg, imagemagick, libv4l}:
|
{ stdenv, fetchFromGitHub, cmake, libjpeg }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
rev = "182";
|
name = "mjpg-streamer-${version}";
|
||||||
name = "mjpg-streamer-${rev}";
|
version = "2016-03-08";
|
||||||
|
|
||||||
src = fetchsvn {
|
src = fetchFromGitHub {
|
||||||
url = https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer/mjpg-streamer;
|
owner = "jacksonliam";
|
||||||
inherit rev;
|
repo = "mjpg-streamer";
|
||||||
sha256 = "008k2wk6xagprbiwk8fvzbz4dd6i8kzrr9n62gj5i1zdv7zcb16q";
|
rev = "4060cb64e3557037fd404d10e1c1d076b672e9e8";
|
||||||
|
sha256 = "0g7y832jsz4ylmq9qp2l4fq6bm8l6dhsbi60fr5jfqpx4l0pia8m";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
prePatch = ''
|
||||||
substituteInPlace Makefile "make -C plugins\/input_gspcav1" "# make -C plugins\/input_gspcav1"
|
cd mjpg-streamer-experimental
|
||||||
substituteInPlace Makefile "cp plugins\/input_gspcav1\/input_gspcav1.so" "# cp plugins\/input_gspcav1\/input_gspcav1.so"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake ];
|
||||||
|
buildInputs = [ libjpeg ];
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
patchelf --set-rpath "$(patchelf --print-rpath $out/bin/mjpg_streamer):$out/lib:$out/lib/plugins" $out/bin/mjpg_streamer
|
patchelf --set-rpath "$(patchelf --print-rpath $out/bin/mjpg_streamer):$out/lib/mjpg-streamer" $out/bin/mjpg_streamer
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = "DESTDIR=$(out)";
|
meta = with stdenv.lib; {
|
||||||
|
|
||||||
preInstall = ''
|
|
||||||
mkdir -p $out/{bin,lib}
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildInputs = [ pkgconfig libjpeg imagemagick libv4l ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = http://sourceforge.net/projects/mjpg-streamer/;
|
homepage = http://sourceforge.net/projects/mjpg-streamer/;
|
||||||
description = "MJPG-streamer takes JPGs from Linux-UVC compatible webcams, filesystem or other input plugins and streams them as M-JPEG via HTTP to webbrowsers, VLC and other software";
|
description = "MJPG-streamer takes JPGs from Linux-UVC compatible webcams, filesystem or other input plugins and streams them as M-JPEG via HTTP to webbrowsers, VLC and other software";
|
||||||
|
platforms = platforms.linux;
|
||||||
|
licenses = licenses.gpl2;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user