2019-06-16 21:59:06 +02:00
|
|
|
{ stdenv, fetchurl, qt5, ffmpeg, guvcview, cmake, ninja, libxml2
|
2019-08-07 20:38:12 +02:00
|
|
|
, gettext, pkgconfig, libgphoto2, gphoto2, v4l-utils, libv4l, pcre
|
2018-08-12 12:09:36 +02:00
|
|
|
, qwt, extra-cmake-modules }:
|
2017-06-15 01:45:06 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "qstopmotion";
|
2019-02-26 22:57:38 +01:00
|
|
|
version = "2.4.1";
|
2017-06-15 01:45:06 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/project/${pname}/Version_${builtins.replaceStrings ["."] ["_"] version}/${pname}-${version}-Source.tar.gz";
|
2019-02-26 22:57:38 +01:00
|
|
|
sha256 = "03r6jxyq0bak2vsy2b78nk27m7fm96hnl8cx11l3l17704j4iglh";
|
2017-06-15 01:45:06 +02:00
|
|
|
};
|
|
|
|
|
2019-08-07 20:38:12 +02:00
|
|
|
buildInputs = with qt5; [ v4l-utils libv4l pcre qtbase qtmultimedia ffmpeg guvcview
|
2018-08-12 12:09:36 +02:00
|
|
|
qwt qtquickcontrols qtimageformats qtxmlpatterns ];
|
2017-06-15 01:45:06 +02:00
|
|
|
|
2018-08-12 12:09:36 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake extra-cmake-modules ninja
|
|
|
|
gettext libgphoto2 gphoto2 libxml2 libv4l ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace "find_package(Qt5 REQUIRED COMPONENTS Core Widgets Xml" \
|
|
|
|
"find_package(Qt5 REQUIRED COMPONENTS Core Widgets Xml Multimedia"
|
|
|
|
grep -rl 'qwt' . | xargs sed -i 's@<qwt/qwt_slider.h>@<qwt_slider.h>@g'
|
|
|
|
'';
|
2017-06-15 01:45:06 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.qstopmotion.org;
|
2017-06-15 01:45:06 +02:00
|
|
|
description = "Create stopmotion animation with a (web)camera";
|
|
|
|
longDescription = ''
|
|
|
|
Qstopmotion is a tool to create stopmotion
|
|
|
|
animation. Its users are able to create stop-motions from pictures
|
|
|
|
imported from a camera or from the harddrive and export the
|
|
|
|
animation to different video formats such as mpeg or avi.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.leenaars ];
|
2018-05-01 00:47:47 +02:00
|
|
|
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux;
|
2017-06-15 01:45:06 +02:00
|
|
|
};
|
|
|
|
}
|