2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, fetchFromGitHub, boost, cairo, gettext, glibmm, gtk3, gtkmm3
|
|
|
|
, libjack2, libsigcxx, libxmlxx, makeWrapper, mlt-qt5, pango, pkgconfig
|
2019-02-13 21:47:50 +00:00
|
|
|
, imagemagick, intltool, autoreconfHook, which, gnome3
|
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
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
ETL = stdenv.mkDerivation {
|
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/";
|
|
|
|
|
2017-09-19 02:23:00 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2014-03-13 00:14:05 +00:00
|
|
|
};
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
synfig = stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "synfig";
|
|
|
|
inherit version;
|
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}/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
|
|
|
];
|
|
|
|
|
2017-09-19 02:23:00 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook gettext ];
|
2014-03-13 00:14:05 +00:00
|
|
|
buildInputs = [
|
2017-09-19 02:23:00 +00:00
|
|
|
ETL boost cairo glibmm mlt-qt5 libsigcxx libxmlxx pango
|
2014-03-13 00:14:05 +00:00
|
|
|
];
|
2017-09-28 21:16:18 +00:00
|
|
|
|
|
|
|
meta.broken = true;
|
2014-03-13 00:14:05 +00:00
|
|
|
};
|
|
|
|
in
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "synfigstudio";
|
|
|
|
inherit version;
|
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-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/";
|
|
|
|
|
2016-05-13 14:35:11 +00:00
|
|
|
postPatch = ''
|
|
|
|
for i in \
|
|
|
|
brushlib/brushlib.hpp \
|
|
|
|
gui/canvasview.cpp \
|
|
|
|
gui/compview.cpp \
|
|
|
|
gui/docks/dock_canvasspecific.cpp \
|
|
|
|
gui/docks/dock_children.cpp \
|
|
|
|
gui/docks/dock_curves.cpp \
|
|
|
|
gui/docks/dock_history.cpp \
|
|
|
|
gui/docks/dock_keyframes.cpp \
|
|
|
|
gui/docks/dock_layergroups.cpp \
|
|
|
|
gui/docks/dock_layers.cpp \
|
|
|
|
gui/docks/dock_metadata.cpp \
|
|
|
|
gui/docks/dock_params.cpp \
|
|
|
|
gui/docks/dock_timetrack.cpp \
|
|
|
|
gui/docks/dock_toolbox.cpp \
|
|
|
|
gui/docks/dockable.cpp \
|
|
|
|
gui/docks/dockdialog.cpp \
|
|
|
|
gui/docks/dockmanager.h \
|
|
|
|
gui/duck.h \
|
|
|
|
gui/duckmatic.cpp \
|
|
|
|
gui/duckmatic.h \
|
|
|
|
gui/instance.cpp \
|
|
|
|
gui/instance.h \
|
|
|
|
gui/states/state_stroke.h \
|
|
|
|
gui/states/state_zoom.cpp \
|
|
|
|
gui/widgets/widget_curves.cpp \
|
|
|
|
gui/workarea.cpp \
|
|
|
|
gui/workarearenderer/workarearenderer.h \
|
|
|
|
synfigapp/action_system.h \
|
|
|
|
synfigapp/canvasinterface.h \
|
|
|
|
synfigapp/instance.h \
|
|
|
|
synfigapp/main.h \
|
|
|
|
synfigapp/uimanager.h
|
|
|
|
do
|
|
|
|
substituteInPlace src/"$i" --replace '#include <sigc++/object.h>' '#include <sigc++/sigc++.h>'
|
|
|
|
substituteInPlace src/"$i" --replace '#include <sigc++/hide.h>' '#include <sigc++/adaptors/hide.h>'
|
|
|
|
substituteInPlace src/"$i" --replace '#include <sigc++/retype.h>' '#include <sigc++/adaptors/retype.h>'
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2016-01-26 21:10:12 +00:00
|
|
|
preConfigure = "./bootstrap.sh";
|
|
|
|
|
2017-09-19 02:23:00 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook gettext ];
|
2014-03-13 00:14:05 +00:00
|
|
|
buildInputs = [
|
2017-09-19 02:23:00 +00:00
|
|
|
ETL boost cairo glibmm gtk3 gtkmm3 imagemagick intltool
|
|
|
|
libjack2 libsigcxx libxmlxx makeWrapper mlt-qt5
|
2019-02-13 21:47:50 +00:00
|
|
|
synfig which gnome3.adwaita-icon-theme
|
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;
|
|
|
|
};
|
|
|
|
}
|