2014-08-25 21:58:22 +01:00
|
|
|
{ stdenv, fetchurl, boost, cairo, fontsConf, gettext, glibmm, gtk, gtkmm
|
2014-03-13 00:14:05 +00:00
|
|
|
, libsigcxx, libtool, libxmlxx, pango, pkgconfig, imagemagick
|
|
|
|
, intltool
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2014-11-02 23:02:48 +00:00
|
|
|
version = "0.64.2";
|
2014-03-13 00:14:05 +00:00
|
|
|
|
|
|
|
ETL = stdenv.mkDerivation rec {
|
|
|
|
name = "ETL-0.04.17";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/synfig/${name}.tar.gz";
|
2014-11-02 23:02:48 +00:00
|
|
|
sha256 = "1i2m31y5hdwr365z3zmfh5p3zm4ga4l4yqrl1qrmjryqqzkw200l";
|
2014-03-13 00:14:05 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
synfig = stdenv.mkDerivation rec {
|
|
|
|
name = "synfig-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/synfig/synfig-${version}.tar.gz";
|
2014-11-02 23:02:48 +00:00
|
|
|
sha256 = "04mx321z929ngl65hfc1hv5jw37wqbh8y2avmpvajagvn6lp3zdl";
|
2014-03-13 00:14:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./synfig-cstring.patch ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2014-09-19 18:56:08 +01:00
|
|
|
ETL boost boost.lib cairo gettext glibmm libsigcxx libtool libxmlxx pango
|
2014-03-13 00:14:05 +00:00
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
|
2014-09-19 18:56:08 +01:00
|
|
|
configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ];
|
2014-03-13 00:14:05 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "synfigstudio-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/synfig/${name}.tar.gz";
|
2014-11-02 23:02:48 +00:00
|
|
|
sha256 = "13hw4z6yx70g4mnjmvmxkk7b1qzlwmqjhxflq5dd6cqdsmfw9mc7";
|
2014-03-13 00:14:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2014-08-25 21:58:22 +01:00
|
|
|
ETL boost cairo fontsConf gettext glibmm gtk gtkmm imagemagick intltool
|
2014-03-13 00:14:05 +00:00
|
|
|
intltool libsigcxx libtool libxmlxx pkgconfig synfig
|
|
|
|
];
|
|
|
|
|
2014-08-25 21:58:22 +01:00
|
|
|
preBuild = ''
|
|
|
|
export FONTCONFIG_FILE=${fontsConf}
|
|
|
|
'';
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|