diff options
author | Domen Kožar <domen@dev.si> | 2014-09-23 11:33:30 +0200 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2014-09-23 11:33:40 +0200 |
commit | 6e3114a8a3c71eb43e1b00c701bce162ae5118d6 (patch) | |
tree | 78169407e6df614792638bd875b4363c03302c7e /pkgs/applications/graphics/k3d | |
parent | d3d889eaef90c0c44c204aa1e0a4d47d078226bb (diff) | |
download | nixpkgs-6e3114a8a3c71eb43e1b00c701bce162ae5118d6.tar nixpkgs-6e3114a8a3c71eb43e1b00c701bce162ae5118d6.tar.gz nixpkgs-6e3114a8a3c71eb43e1b00c701bce162ae5118d6.tar.bz2 nixpkgs-6e3114a8a3c71eb43e1b00c701bce162ae5118d6.tar.lz nixpkgs-6e3114a8a3c71eb43e1b00c701bce162ae5118d6.tar.xz nixpkgs-6e3114a8a3c71eb43e1b00c701bce162ae5118d6.tar.zst nixpkgs-6e3114a8a3c71eb43e1b00c701bce162ae5118d6.zip |
k3d: 0.8.0.2 -> 0.8.03
Diffstat (limited to 'pkgs/applications/graphics/k3d')
-rw-r--r-- | pkgs/applications/graphics/k3d/default.nix | 24 | ||||
-rw-r--r-- | pkgs/applications/graphics/k3d/k3d_gtkmm224.patch | 40 | ||||
-rw-r--r-- | pkgs/applications/graphics/k3d/libpng-1.4.patch | 53 |
3 files changed, 10 insertions, 107 deletions
diff --git a/pkgs/applications/graphics/k3d/default.nix b/pkgs/applications/graphics/k3d/default.nix index e7d337d7b1f..f204114a581 100644 --- a/pkgs/applications/graphics/k3d/default.nix +++ b/pkgs/applications/graphics/k3d/default.nix @@ -1,31 +1,27 @@ -{stdenv, fetchurl +{ stdenv, fetchurl, unzip, ftgl, glew, asciidoc , cmake, mesa, zlib, python, expat, libxml2, libsigcxx, libuuid, freetype , libpng, boost, doxygen, cairomm, pkgconfig, imagemagick, libjpeg, libtiff -, gettext, intltool, perl, gtkmm, glibmm, gtkglext, pangox_compat, libXmu -}: +, gettext, intltool, perl, gtkmm, glibmm, gtkglext, pangox_compat, libXmu }: stdenv.mkDerivation rec { - version = "0.8.0.2"; + version = "0.8.0.3"; name = "k3d-${version}"; src = fetchurl { - url = "mirror://sourceforge/k3d/k3d-source-0.8.0.2.tar.bz2"; - sha256 = "01fd2qb0zddif3wz1a2wdmwyzn81cf73678qp2gjs8iikmdz6w7x"; + url = "https://github.com/K-3D/k3d/archive/${name}.zip"; + sha256 = "09ywwvlk8hh1357pnal96kc40ma4jq7776hqk0609rgz13s6babp"; }; - - patches = [ - ./k3d_gtkmm224.patch - ./libpng-1.4.patch - ]; + + cmakeFlags = "-DK3D_BUILD_DOCS=false -DK3D_BUILD_GUIDE=false"; preConfigure = '' export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/build/lib" - export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -fpermissive -I$(echo ${gtkglext}/include/gtkglext-*) -I$(echo ${gtkglext}/lib/gtkglext-*/include)" + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$(echo ${gtkglext}/include/gtkglext-*) -I$(echo ${gtkglext}/lib/gtkglext-*/include)" ''; buildInputs = [ cmake mesa zlib python expat libxml2 libsigcxx libuuid freetype libpng - boost boost.lib doxygen cairomm pkgconfig imagemagick libjpeg libtiff - gettext intltool perl + boost boost doxygen cairomm pkgconfig imagemagick libjpeg libtiff + gettext intltool perl unzip ftgl glew asciidoc gtkmm glibmm gtkglext pangox_compat libXmu ]; diff --git a/pkgs/applications/graphics/k3d/k3d_gtkmm224.patch b/pkgs/applications/graphics/k3d/k3d_gtkmm224.patch deleted file mode 100644 index 2484994531f..00000000000 --- a/pkgs/applications/graphics/k3d/k3d_gtkmm224.patch +++ /dev/null @@ -1,40 +0,0 @@ ---- a/k3dsdk/ngui/main_document_window.cpp -+++ b/k3dsdk/ngui/main_document_window.cpp -@@ -1371,7 +1371,7 @@ - Gtk::HBox import_box(false, 5); - Gtk::Label import_label(_("Choose import plugin:")); - -- Gtk::ComboBox import_combo(model); -+ Gtk::ComboBox import_combo((Glib::RefPtr<Gtk::TreeModel> &) model); - import_combo.pack_start(columns.icon, false); - import_combo.pack_start(columns.label); - import_combo.set_active(0); -@@ -1461,7 +1461,7 @@ - Gtk::HBox export_box(false, 5); - Gtk::Label export_label(_("Choose export plugin:")); - -- Gtk::ComboBox export_combo(model); -+ Gtk::ComboBox export_combo((Glib::RefPtr<Gtk::TreeModel> &) model); - export_combo.pack_start(columns.icon, false); - export_combo.pack_start(columns.label); - export_combo.set_active(0); ---- a/k3dsdk/ngui/render.cpp -+++ b/k3dsdk/ngui/render.cpp -@@ -169,7 +169,7 @@ - row[columns.separator] = false; - } - -- Gtk::ComboBox combo(model); -+ Gtk::ComboBox combo((Glib::RefPtr<Gtk::TreeModel> &) model); - - combo.pack_start(columns.icon, false); - -@@ -295,7 +295,7 @@ - row[columns.separator] = false; - } - -- Gtk::ComboBox combo(model); -+ Gtk::ComboBox combo((Glib::RefPtr<Gtk::TreeModel> &) model); - - combo.pack_start(columns.icon, false); - diff --git a/pkgs/applications/graphics/k3d/libpng-1.4.patch b/pkgs/applications/graphics/k3d/libpng-1.4.patch deleted file mode 100644 index e67236617af..00000000000 --- a/pkgs/applications/graphics/k3d/libpng-1.4.patch +++ /dev/null @@ -1,53 +0,0 @@ ---- k3d-source-0.8.0.1/k3dsdk/gil/boost/gil/extension/io/png_io_private.hpp 2010-04-18 13:49:33.000000000 +0800 -+++ k3d-source-0.8.0.1-patched/k3dsdk/gil/boost/gil/extension/io/png_io_private.hpp 2010-06-10 21:17:51.555920268 +0800 -@@ -148,12 +148,12 @@ - // allocate/initialize the image information data - _info_ptr = png_create_info_struct(_png_ptr); - if (_info_ptr == NULL) { -- png_destroy_read_struct(&_png_ptr,png_infopp_NULL,png_infopp_NULL); -+ png_destroy_read_struct(&_png_ptr,NULL,NULL); - io_error("png_get_file_size: fail to call png_create_info_struct()"); - } - if (setjmp(png_jmpbuf(_png_ptr))) { - //free all of the memory associated with the png_ptr and info_ptr -- png_destroy_read_struct(&_png_ptr, &_info_ptr, png_infopp_NULL); -+ png_destroy_read_struct(&_png_ptr, &_info_ptr, NULL); - io_error("png_get_file_size: fail to call setjmp()"); - } - png_init_io(_png_ptr, get()); -@@ -165,7 +165,7 @@ - png_reader(const char* filename) : file_mgr(filename, "rb") { init(); } - - ~png_reader() { -- png_destroy_read_struct(&_png_ptr,&_info_ptr,png_infopp_NULL); -+ png_destroy_read_struct(&_png_ptr,&_info_ptr,NULL); - } - point2<std::ptrdiff_t> get_dimensions() { - return point2<std::ptrdiff_t>(png_get_image_width(_png_ptr,_info_ptr), -@@ -177,7 +177,7 @@ - int bit_depth, color_type, interlace_type; - png_get_IHDR(_png_ptr, _info_ptr, - &width, &height,&bit_depth,&color_type,&interlace_type, -- int_p_NULL, int_p_NULL); -+ (int *) NULL, (int *) NULL); - io_error_if(((png_uint_32)view.width()!=width || (png_uint_32)view.height()!= height), - "png_read_view: input view size does not match PNG file size"); - -@@ -219,7 +219,7 @@ - int bit_depth, color_type, interlace_type; - png_get_IHDR(_png_ptr, _info_ptr, - &width, &height,&bit_depth,&color_type,&interlace_type, -- int_p_NULL, int_p_NULL); -+ (int *) NULL, (int *) NULL); - io_error_if(((png_uint_32)view.width()!=width || (png_uint_32)view.height()!= height), - "png_reader_color_convert::apply(): input view size does not match PNG file size"); - switch (color_type) { -@@ -308,7 +308,7 @@ - io_error_if(!_png_ptr,"png_write_initialize: fail to call png_create_write_struct()"); - _info_ptr = png_create_info_struct(_png_ptr); - if (!_info_ptr) { -- png_destroy_write_struct(&_png_ptr,png_infopp_NULL); -+ png_destroy_write_struct(&_png_ptr,NULL); - io_error("png_write_initialize: fail to call png_create_info_struct()"); - } - if (setjmp(png_jmpbuf(_png_ptr))) { |