about summary refs log tree commit diff
path: root/pkgs/development/libraries/fltk
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-04-02 15:20:19 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-04-02 15:20:19 +0000
commit19ac94dee3b0914ac3522e9ae1bddf64ddafabaa (patch)
treed0fbf58e489d56336a3e4f7cd928cd4befaf8493 /pkgs/development/libraries/fltk
parent987156abfd85724898cd857e012dd6baaba4937e (diff)
downloadnixlib-19ac94dee3b0914ac3522e9ae1bddf64ddafabaa.tar
nixlib-19ac94dee3b0914ac3522e9ae1bddf64ddafabaa.tar.gz
nixlib-19ac94dee3b0914ac3522e9ae1bddf64ddafabaa.tar.bz2
nixlib-19ac94dee3b0914ac3522e9ae1bddf64ddafabaa.tar.lz
nixlib-19ac94dee3b0914ac3522e9ae1bddf64ddafabaa.tar.xz
nixlib-19ac94dee3b0914ac3522e9ae1bddf64ddafabaa.tar.zst
nixlib-19ac94dee3b0914ac3522e9ae1bddf64ddafabaa.zip
Adding cinepaint 0.22.1 and as a dependency, also fltk 1.1.9
svn path=/nixpkgs/trunk/; revision=14841
Diffstat (limited to 'pkgs/development/libraries/fltk')
-rw-r--r--pkgs/development/libraries/fltk/fltk11.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/libraries/fltk/fltk11.nix b/pkgs/development/libraries/fltk/fltk11.nix
new file mode 100644
index 000000000000..4832410102d7
--- /dev/null
+++ b/pkgs/development/libraries/fltk/fltk11.nix
@@ -0,0 +1,45 @@
+args: with args;
+let inherit (args.composableDerivation) composableDerivation edf; in
+composableDerivation {} {
+
+  name = "fltk-1.1.9";
+
+  src = args.fetchurl {
+    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;
+    sha256 = "1ppdqc4vg3g11px4dxm6czxi4sswfxs485q44nrr5ji0galsbjzs";
+  };
+
+  propagatedBuildInputs=[x11 inputproto libXi freeglut];
+
+  buildInputs = [ args.pkgconfig ];
+
+  flags =
+    # this could be tidied up (?).. eg why does it require freeglut without glSupport?
+    edf { name = "cygwin"; }  #         use the CygWin libraries default=no
+    // edf { name = "debug"; }  #          turn on debugging default=no
+    // edf { name = "gl"; enable = { buildInputs = [ mesa ]; }; }  #             turn on OpenGL support default=yes
+    // edf { name = "shared"; }  #         turn on shared libraries default=no
+    // edf { name = "threads"; }  #        enable multi-threading support
+    // edf { name = "quartz"; enable = { buildInputs = "quartz"; }; }  # don't konw yet what quartz is #         use Quartz instead of Quickdraw (default=no)
+    // edf { name = "largefile"; } #     omit support for large files
+    // edf { name = "localjpeg"; disable = { buildInputs = [libjpeg]; }; } #       use local JPEG library, default=auto
+    // edf { name = "localzlib"; disable = { buildInputs = [zlib]; }; } #       use local ZLIB library, default=auto
+    // edf { name = "localpng"; disable = { buildInputs = [libpng]; }; } #       use local PNG library, default=auto
+    // edf { name = "xinerama"; enable = { buildInputs = [libXinerama]; }; } #       turn on Xinerama support default=no
+    // edf { name = "xft"; enable = { buildInputs=[libXft]; }; } #            turn on Xft support default=no
+    // edf { name = "xdbe"; };  #           turn on Xdbe support default=no
+  cfg = {
+      largefileSupport = true; # is default
+      glSupport = true; # doesn't build without it. Why?
+      localjpegSupport = false;
+      localzlibSupport = false;
+      localpngSupport = false;
+      sharedSupport = true;
+      threadsSupport = true;
+  };
+
+  meta = {
+      description = "a C++ cross platform lightweight gui library binding";
+      homepage = http://www.fltk.org;
+  };
+}