git.iko.soy/typeable/nixpkgs
on master help sign in
fltk: 2-alpha -> 1.3.3
commit2607b53e9d7b66d7e016f00338502194c70cbc50 authorJulien Dehos <dehos@lisic.univ-littoral.fr> dateSun 22 May 2016, 16:50 (11 years ago) parente591789
3 files changed+31−79
pkgs/development/libraries/fltk/default.nix+28−9 pkgs/development/libraries/fltk/fltk13.nix−66 pkgs/top-level/all-packages.nix+3−4
pkgs/development/libraries/fltk/default.nix+28−9
@@ -1,19 +1,34 @@
1−{ composableDerivation, fetchurl, pkgconfig, xlibsWrapper, inputproto, libXi
2−, freeglut, mesa, libjpeg, zlib, libXinerama, libXft, libpng }:
1+{ stdenv, composableDerivation, fetchurl, pkgconfig, xlibsWrapper, inputproto, libXi
2+, freeglut, mesa, libjpeg, zlib, libXinerama, libXft, libpng
3+, cfg ? {}
4+, automake, autoconf, libtool
5+}:
36
47let inherit (composableDerivation) edf; in
58
6−composableDerivation.composableDerivation {} rec {
7− name = "fltk-2.0.x-alpha-r9296";
9+let version = "1.3.3"; in
10+composableDerivation.composableDerivation {} {
11+ name = "fltk-${version}";
812
913 src = fetchurl {
10− url = "ftp://ftp.easysw.com/pub/fltk/snapshots/${name}.tar.bz2";
11− sha256 = "0353ngb7gpyklc9mdz8629big2na3c73akfwhis8fhqp7jkbs9ih";
14+ url = "http://fltk.org/pub/fltk/${version}/fltk-${version}-source.tar.gz";
15+ sha256 = "15qd7lkz5d5ynz70xhxhigpz3wns39v9xcf7ggkl0792syc8sfgq";
1216 };
1317
18+ # http://www.fltk.org/str.php?L3156
19+ patchPhase = ''
20+ substituteInPlace FL/x.H \
21+ --replace 'class Fl_XFont_On_Demand' 'class FL_EXPORT Fl_XFont_On_Demand'
22+ '';
23+
1424 propagatedBuildInputs = [ xlibsWrapper inputproto libXi freeglut ];
1525
16− buildInputs = [ pkgconfig ];
26+ enableParallelBilding = true;
27+
28+ nativeBuildInputs = [
29+ pkgconfig
30+ automake autoconf libtool # only required because of patch
31+ ];
1732
1833 flags =
1934 # this could be tidied up (?).. eg why does it require freeglut without glSupport?
@@ -39,10 +54,14 @@ composableDerivation.composableDerivation {} rec {
3954 localpngSupport = false;
4055 sharedSupport = true;
4156 threadsSupport = true;
42− };
57+ } // cfg;
4358
4459 meta = {
45− description = "a C++ cross platform lightweight gui library binding";
60+ description = "A C++ cross-platform lightweight GUI library";
4661 homepage = http://www.fltk.org;
62+ platforms = stdenv.lib.platforms.linux;
63+ license = stdenv.lib.licenses.gpl2;
4764 };
65+
4866}
67+
pkgs/development/libraries/fltk/fltk13.nixdeleted−66
@@ -1,66 +0,0 @@
1−{ composableDerivation, fetchurl, pkgconfig, xlibsWrapper, inputproto, libXi
2−, freeglut, mesa, libjpeg, zlib, libXinerama, libXft, libpng
3−, cfg ? {}
4−, automake, autoconf, libtool
5−}:
6−
7−let inherit (composableDerivation) edf; in
8−
9−let version = "1.3.3"; in
10−composableDerivation.composableDerivation {} {
11− name = "fltk-${version}";
12−
13− src = fetchurl {
14− url = "http://fltk.org/pub/fltk/${version}/fltk-${version}-source.tar.gz";
15− sha256 = "15qd7lkz5d5ynz70xhxhigpz3wns39v9xcf7ggkl0792syc8sfgq";
16− };
17−
18− # http://www.fltk.org/str.php?L3156
19− postPatch = ''
20− substituteInPlace FL/x.H \
21− --replace 'class Fl_XFont_On_Demand' 'class FL_EXPORT Fl_XFont_On_Demand'
22− '';
23−
24− propagatedBuildInputs = [ xlibsWrapper inputproto libXi freeglut ];
25−
26− enableParallelBilding = true;
27−
28− nativeBuildInputs = [
29− pkgconfig
30− automake autoconf libtool # only required because of patch
31− ];
32−
33− flags =
34− # this could be tidied up (?).. eg why does it require freeglut without glSupport?
35− edf { name = "cygwin"; } # use the CygWin libraries default=no
36− // edf { name = "debug"; } # turn on debugging default=no
37− // edf { name = "gl"; enable = { buildInputs = [ mesa ]; }; } # turn on OpenGL support default=yes
38− // edf { name = "shared"; } # turn on shared libraries default=no
39− // edf { name = "threads"; } # enable multi-threading support
40− // edf { name = "quartz"; enable = { buildInputs = "quartz"; }; } # don't konw yet what quartz is # use Quartz instead of Quickdraw (default=no)
41− // edf { name = "largefile"; } # omit support for large files
42− // edf { name = "localjpeg"; disable = { buildInputs = [libjpeg]; }; } # use local JPEG library, default=auto
43− // edf { name = "localzlib"; disable = { buildInputs = [zlib]; }; } # use local ZLIB library, default=auto
44− // edf { name = "localpng"; disable = { buildInputs = [libpng]; }; } # use local PNG library, default=auto
45− // edf { name = "xinerama"; enable = { buildInputs = [libXinerama]; }; } # turn on Xinerama support default=no
46− // edf { name = "xft"; enable = { buildInputs=[libXft]; }; } # turn on Xft support default=no
47− // edf { name = "xdbe"; }; # turn on Xdbe support default=no
48−
49− cfg = {
50− largefileSupport = true; # is default
51− glSupport = true; # doesn't build without it. Why?
52− localjpegSupport = false;
53− localzlibSupport = false;
54− localpngSupport = false;
55− sharedSupport = true;
56− threadsSupport = true;
57− } // cfg;
58−
59− meta = {
60− description = "A C++ cross-platform light-weight GUI library binding";
61− homepage = http://www.fltk.org;
62− };
63−
64− patches = [
65− ];
66−}
pkgs/top-level/all-packages.nix+3−4
@@ -6905,9 +6905,8 @@ in
69056905
69066906 flite = callPackage ../development/libraries/flite { };
69076907
6908− fltk13 = callPackage ../development/libraries/fltk/fltk13.nix { };
6909−
6910− fltk20 = callPackage ../development/libraries/fltk { };
6908+ fltk13 = callPackage ../development/libraries/fltk { };
6909+ fltk = callPackage ../development/libraries/fltk { };
69116910
69126911 fmod = callPackage ../development/libraries/fmod { };
69136912
@@ -12477,7 +12476,7 @@ in
1247712476 keepass-keefox = callPackage ../applications/misc/keepass-plugins/keefox { };
1247812477
1247912478 exrdisplay = callPackage ../applications/graphics/exrdisplay {
12480− fltk = fltk20;
12479+ fltk = fltk13.override { cfg.xftSupport = true; };
1248112480 };
1248212481
1248312482 fbpanel = callPackage ../applications/window-managers/fbpanel { };