lol

Adding cinepaint 0.22.1 and as a dependency, also fltk 1.1.9

svn path=/nixpkgs/trunk/; revision=14841

+115
+39
pkgs/applications/graphics/cinepaint/default.nix
··· 1 + { stdenv, fetchurl, pkgconfig, gtk, freetype, fontconfig, lcms, fltk, 2 + flex, libtiff, libjpeg, libpng, libexif, zlib, perl, libX11, 3 + perlXMLParser, python, pygtk, gettext, intltool, babl, gegl, 4 + glib, makedepend, xf86vidmodeproto, xineramaproto, libXmu, openexr, 5 + mesa, libXext, libXpm, libXxf86vm } : 6 + 7 + stdenv.mkDerivation { 8 + name = "cinepaint-0.22-1"; 9 + 10 + src = fetchurl { 11 + url = mirror://sourceforge/cinepaint/cinepaint-0.22-1.tar.gz; 12 + sha256 = "bb08a9210658959772df12408769d660999ede168b7431514e1f3cead07c0fea"; 13 + }; 14 + 15 + buildInputs = [ pkgconfig gtk freetype fontconfig lcms fltk flex libtiff 16 + libjpeg libpng libexif zlib perl libX11 perlXMLParser python pygtk gettext 17 + intltool babl gegl glib makedepend xf86vidmodeproto xineramaproto libXmu 18 + openexr mesa libXext libXpm libXxf86vm ]; 19 + 20 + patches = [ ./fltk.patch ]; 21 + 22 + prePatch = '' 23 + sed -i -e s@/usr/X11R6/bin/makedepend@${makedepend}/bin/makedepend@ \ 24 + -e s@/usr/X11R6/include/X11/extensions/xf86vmode@${xf86vidmodeproto}/include/X11/extensions/xf86vmode@ \ 25 + -e s@/usr/X11R6/include/X11/Xlib.h@${libX11}/include/X11/Xlib.h@ \ 26 + -e s@/usr/X11R6/include/X11/extensions/Xinerama.h@${xineramaproto}/include/X11/extensions/Xinerama.h@ \ 27 + -e s@/usr/X11R6/lib/libfreetype.a@${freetype}/lib/libfreetype.a@ \ 28 + plug-ins/icc_examin/icc_examin/configure \ 29 + plug-ins/icc_examin/icc_examin/configure.sh 30 + ''; 31 + 32 + configureFlags = [ "--disable-print" "--enable-gtk2" ]; 33 + 34 + meta = { 35 + homepage = http://www.cinepaint.org/; 36 + license = "free"; 37 + description = "Image editor which supports images over 8bpp and ICC profiles"; 38 + }; 39 + }
+13
pkgs/applications/graphics/cinepaint/fltk.patch
··· 1 + diff --git a/plug-ins/icc_examin/icc_examin/icc_helfer_fltk.cpp b/plug-ins/icc_examin/icc_examin/icc_helfer_fltk.cpp 2 + index b507454..85f4441 100644 3 + --- a/plug-ins/icc_examin/icc_examin/icc_helfer_fltk.cpp 4 + +++ b/plug-ins/icc_examin/icc_examin/icc_helfer_fltk.cpp 5 + @@ -226,7 +226,7 @@ namespace icc_examin_ns { 6 + 7 + int awake(void) 8 + { 9 + - Fl::awake(0); 10 + + Fl::awake((void *)0); 11 + return 0; 12 + } 13 + int leerWait(void) { return 0; }
+45
pkgs/development/libraries/fltk/fltk11.nix
··· 1 + args: with args; 2 + let inherit (args.composableDerivation) composableDerivation edf; in 3 + composableDerivation {} { 4 + 5 + name = "fltk-1.1.9"; 6 + 7 + src = args.fetchurl { 8 + url = http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/fltk/1.1.9/fltk-1.1.9-source.tar.bz2; 9 + sha256 = "1ppdqc4vg3g11px4dxm6czxi4sswfxs485q44nrr5ji0galsbjzs"; 10 + }; 11 + 12 + propagatedBuildInputs=[x11 inputproto libXi freeglut]; 13 + 14 + buildInputs = [ args.pkgconfig ]; 15 + 16 + flags = 17 + # this could be tidied up (?).. eg why does it require freeglut without glSupport? 18 + edf { name = "cygwin"; } # use the CygWin libraries default=no 19 + // edf { name = "debug"; } # turn on debugging default=no 20 + // edf { name = "gl"; enable = { buildInputs = [ mesa ]; }; } # turn on OpenGL support default=yes 21 + // edf { name = "shared"; } # turn on shared libraries default=no 22 + // edf { name = "threads"; } # enable multi-threading support 23 + // edf { name = "quartz"; enable = { buildInputs = "quartz"; }; } # don't konw yet what quartz is # use Quartz instead of Quickdraw (default=no) 24 + // edf { name = "largefile"; } # omit support for large files 25 + // edf { name = "localjpeg"; disable = { buildInputs = [libjpeg]; }; } # use local JPEG library, default=auto 26 + // edf { name = "localzlib"; disable = { buildInputs = [zlib]; }; } # use local ZLIB library, default=auto 27 + // edf { name = "localpng"; disable = { buildInputs = [libpng]; }; } # use local PNG library, default=auto 28 + // edf { name = "xinerama"; enable = { buildInputs = [libXinerama]; }; } # turn on Xinerama support default=no 29 + // edf { name = "xft"; enable = { buildInputs=[libXft]; }; } # turn on Xft support default=no 30 + // edf { name = "xdbe"; }; # turn on Xdbe support default=no 31 + cfg = { 32 + largefileSupport = true; # is default 33 + glSupport = true; # doesn't build without it. Why? 34 + localjpegSupport = false; 35 + localzlibSupport = false; 36 + localpngSupport = false; 37 + sharedSupport = true; 38 + threadsSupport = true; 39 + }; 40 + 41 + meta = { 42 + description = "a C++ cross platform lightweight gui library binding"; 43 + homepage = http://www.fltk.org; 44 + }; 45 + }
+18
pkgs/top-level/all-packages.nix
··· 2921 2921 singlePrecision = true; 2922 2922 }; 2923 2923 2924 + fltk11 = (import ../development/libraries/fltk/fltk11.nix) { 2925 + inherit composableDerivation x11 lib pkgconfig freeglut; 2926 + inherit fetchurl stdenv mesa mesaHeaders libpng libjpeg zlib ; 2927 + inherit (xlibs) inputproto libXi libXinerama libXft; 2928 + flags = [ "useNixLibs" "threads" "shared" "gl" ]; 2929 + }; 2930 + 2924 2931 fltk20 = (import ../development/libraries/fltk) { 2925 2932 inherit composableDerivation x11 lib pkgconfig freeglut; 2926 2933 inherit fetchurl stdenv mesa mesaHeaders libpng libjpeg zlib ; ··· 7879 7886 7880 7887 bbdb = import ../applications/editors/emacs-modes/bbdb { 7881 7888 inherit fetchurl stdenv emacs texinfo ctags; 7889 + }; 7890 + 7891 + cinepaint = import ../applications/graphics/cinepaint { 7892 + inherit stdenv fetchurl pkgconfig freetype fontconfig lcms flex libtiff 7893 + libjpeg libpng libexif zlib perl mesa perlXMLParser python pygtk gettext 7894 + intltool babl gegl; 7895 + inherit (xlibs) makedepend libX11 xf86vidmodeproto xineramaproto libXmu 7896 + libXext libXpm libXxf86vm; 7897 + inherit (gtkLibs) gtk glib; 7898 + openexr = openexr_1_6_1; 7899 + fltk = fltk11; 7882 7900 }; 7883 7901 7884 7902 codeville = builderDefsPackage (selectVersion ../applications/version-management/codeville "0.8.0") {