2015-09-15 11:13:22 +02:00
|
|
|
{ composableDerivation, fetchurl, pkgconfig, xlibsWrapper, inputproto, libXi
|
2010-07-28 20:01:17 +02:00
|
|
|
, freeglut, mesa, libjpeg, zlib, libXinerama, libXft, libpng }:
|
2007-08-20 12:42:09 +02:00
|
|
|
|
2010-07-28 20:01:17 +02:00
|
|
|
let inherit (composableDerivation) edf; in
|
|
|
|
|
|
|
|
composableDerivation.composableDerivation {} rec {
|
2012-07-02 22:26:38 +02:00
|
|
|
name = "fltk-2.0.x-alpha-r9296";
|
2007-08-20 12:42:09 +02:00
|
|
|
|
2010-07-28 20:01:17 +02:00
|
|
|
src = fetchurl {
|
2010-03-23 14:00:06 +01:00
|
|
|
url = "ftp://ftp.easysw.com/pub/fltk/snapshots/${name}.tar.bz2";
|
2012-07-02 22:26:38 +02:00
|
|
|
sha256 = "0353ngb7gpyklc9mdz8629big2na3c73akfwhis8fhqp7jkbs9ih";
|
2009-03-07 00:21:28 +01:00
|
|
|
};
|
2007-08-20 12:42:09 +02:00
|
|
|
|
2015-09-15 11:13:22 +02:00
|
|
|
propagatedBuildInputs = [ xlibsWrapper inputproto libXi freeglut ];
|
2008-12-20 02:20:35 +01:00
|
|
|
|
2010-07-28 20:01:17 +02:00
|
|
|
buildInputs = [ pkgconfig ];
|
2008-12-20 02:20:35 +01:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
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
|
2010-07-28 20:01:17 +02:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
cfg = {
|
2010-07-28 20:01:17 +02:00
|
|
|
largefileSupport = true; # is default
|
|
|
|
glSupport = true; # doesn't build without it. Why?
|
|
|
|
localjpegSupport = false;
|
|
|
|
localzlibSupport = false;
|
|
|
|
localpngSupport = false;
|
|
|
|
sharedSupport = true;
|
|
|
|
threadsSupport = true;
|
2009-03-07 00:21:28 +01:00
|
|
|
};
|
2008-12-20 02:20:35 +01:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
meta = {
|
2010-07-28 20:01:17 +02:00
|
|
|
description = "a C++ cross platform lightweight gui library binding";
|
|
|
|
homepage = http://www.fltk.org;
|
2007-08-20 12:42:09 +02:00
|
|
|
};
|
2008-12-20 02:20:35 +01:00
|
|
|
}
|