2016-01-26 21:10:12 +00:00
|
|
|
{ stdenv, fetchFromGitHub, boost, cairo, fontsConf, gettext, glibmm, gtk3, gtkmm3
|
2015-09-13 18:58:22 +00:00
|
|
|
, libjack2, libsigcxx, libtool, libxmlxx, makeWrapper, mlt-qt5, pango, pkgconfig
|
2016-01-26 21:10:12 +00:00
|
|
|
, imagemagick, intltool, autoreconfHook, which
|
2014-03-13 00:14:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2016-01-26 21:10:12 +00:00
|
|
|
version = "1.0.2";
|
2014-03-13 00:14:05 +00:00
|
|
|
|
|
|
|
ETL = stdenv.mkDerivation rec {
|
2015-09-13 18:58:22 +00:00
|
|
|
name = "ETL-0.04.19";
|
2014-03-13 00:14:05 +00:00
|
|
|
|
2016-01-26 21:10:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "synfig";
|
|
|
|
owner = "synfig";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "09ldkvzczqvb1yvlibd62y56dkyprxlr0w3rk38rcs7jnrhj2cqc";
|
2014-03-13 00:14:05 +00:00
|
|
|
};
|
2016-01-26 21:10:12 +00:00
|
|
|
|
|
|
|
postUnpack = "sourceRoot=\${sourceRoot}/ETL/";
|
|
|
|
|
|
|
|
buildInputs = [ autoreconfHook ];
|
2014-03-13 00:14:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
synfig = stdenv.mkDerivation rec {
|
|
|
|
name = "synfig-${version}";
|
|
|
|
|
2016-01-26 21:10:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "synfig";
|
|
|
|
owner = "synfig";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "09ldkvzczqvb1yvlibd62y56dkyprxlr0w3rk38rcs7jnrhj2cqc";
|
2014-03-13 00:14:05 +00:00
|
|
|
};
|
|
|
|
|
2016-01-26 21:10:12 +00:00
|
|
|
postUnpack = "sourceRoot=\${sourceRoot}/synfig-core/";
|
|
|
|
|
2014-11-01 23:46:07 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-boost=${boost.dev}"
|
2016-04-27 21:41:28 +00:00
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
2014-11-01 23:46:07 +00:00
|
|
|
];
|
|
|
|
|
2014-03-13 00:14:05 +00:00
|
|
|
buildInputs = [
|
2016-01-26 21:10:12 +00:00
|
|
|
ETL boost cairo gettext glibmm mlt-qt5 libsigcxx libxmlxx pango
|
|
|
|
pkgconfig autoreconfHook
|
2014-03-13 00:14:05 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "synfigstudio-${version}";
|
|
|
|
|
2016-01-26 21:10:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "synfig";
|
|
|
|
owner = "synfig";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "09ldkvzczqvb1yvlibd62y56dkyprxlr0w3rk38rcs7jnrhj2cqc";
|
2014-11-01 23:46:07 +00:00
|
|
|
};
|
2014-03-13 00:14:05 +00:00
|
|
|
|
2016-01-26 21:10:12 +00:00
|
|
|
postUnpack = "sourceRoot=\${sourceRoot}/synfig-studio/";
|
|
|
|
|
|
|
|
preConfigure = "./bootstrap.sh";
|
|
|
|
|
2014-03-13 00:14:05 +00:00
|
|
|
buildInputs = [
|
2015-09-13 18:58:22 +00:00
|
|
|
ETL boost cairo gettext glibmm gtk3 gtkmm3 imagemagick intltool
|
2016-01-26 21:10:12 +00:00
|
|
|
libjack2 libsigcxx libxmlxx makeWrapper mlt-qt5 pkgconfig
|
|
|
|
synfig autoreconfHook which
|
2014-11-01 23:46:07 +00:00
|
|
|
];
|
|
|
|
|
2015-09-13 18:58:22 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/synfigstudio" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
|
2014-08-25 20:58:22 +00:00
|
|
|
'';
|
|
|
|
|
2014-11-26 22:11:00 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-03-13 00:14:05 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A 2D animation program";
|
|
|
|
homepage = http://www.synfig.org;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|