git.iko.soy/typeable/nixpkgs
on master help sign in
Merge #15622: remove fltk-2, improve fltk13
commit6d16979d7a77ece345be8d7a877f8af78a8360c7 authorVladimír Čunát <vcunat@gmail.com> dateThu 26 May 2016, 10:45 (11 years ago) parent0b3b45c34e5582
3 files changed+29−89
pkgs/development/libraries/fltk/default.nix+24−9 pkgs/development/libraries/fltk/fltk13.nix−66 pkgs/top-level/all-packages.nix+5−14
pkgs/development/libraries/fltk/default.nix+24−9
@@ -1,19 +1,29 @@
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+}:
35
46let inherit (composableDerivation) edf; in
57
6−composableDerivation.composableDerivation {} rec {
7− name = "fltk-2.0.x-alpha-r9296";
8+let version = "1.3.3"; in
9+composableDerivation.composableDerivation {} {
10+ name = "fltk-${version}";
811
912 src = fetchurl {
10− url = "ftp://ftp.easysw.com/pub/fltk/snapshots/${name}.tar.bz2";
11− sha256 = "0353ngb7gpyklc9mdz8629big2na3c73akfwhis8fhqp7jkbs9ih";
13+ url = "http://fltk.org/pub/fltk/${version}/fltk-${version}-source.tar.gz";
14+ sha256 = "15qd7lkz5d5ynz70xhxhigpz3wns39v9xcf7ggkl0792syc8sfgq";
1215 };
1316
17+ # http://www.fltk.org/str.php?L3156
18+ postPatch = ''
19+ substituteInPlace FL/x.H \
20+ --replace 'class Fl_XFont_On_Demand' 'class FL_EXPORT Fl_XFont_On_Demand'
21+ '';
22+
23+ nativeBuildInputs = [ pkgconfig ];
1424 propagatedBuildInputs = [ xlibsWrapper inputproto libXi freeglut ];
1525
16− buildInputs = [ pkgconfig ];
26+ enableParallelBuilding = true;
1727
1828 flags =
1929 # this could be tidied up (?).. eg why does it require freeglut without glSupport?
@@ -39,10 +49,15 @@ composableDerivation.composableDerivation {} rec {
3949 localpngSupport = false;
4050 sharedSupport = true;
4151 threadsSupport = true;
42− };
52+ xftSupport = true;
53+ } // cfg;
4354
4455 meta = {
45− description = "a C++ cross platform lightweight gui library binding";
56+ description = "A C++ cross-platform lightweight GUI library";
4657 homepage = http://www.fltk.org;
58+ platforms = stdenv.lib.platforms.linux;
59+ license = stdenv.lib.licenses.gpl2;
4760 };
61+
4862}
63+
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+5−14
@@ -5564,7 +5564,6 @@ in
55645564 };
55655565
55665566 octave = callPackage ../development/interpreters/octave {
5567− fltk = fltk13.override { cfg.xftSupport = true; };
55685567 qt = null;
55695568 ghostscript = null;
55705569 llvm = null;
@@ -5575,7 +5574,6 @@ in
55755574 openblas = openblasCompat;
55765575 };
55775576 octaveFull = (lowPrio (callPackage ../development/interpreters/octave {
5578− fltk = fltk13.override { cfg.xftSupport = true; };
55795577 qt = qt4;
55805578 }));
55815579
@@ -6918,9 +6916,8 @@ in
69186916
69196917 flite = callPackage ../development/libraries/flite { };
69206918
6921− fltk13 = callPackage ../development/libraries/fltk/fltk13.nix { };
6922−
6923− fltk20 = callPackage ../development/libraries/fltk { };
6919+ fltk13 = callPackage ../development/libraries/fltk { };
6920+ fltk = self.fltk13;
69246921
69256922 fmod = callPackage ../development/libraries/fmod { };
69266923
@@ -12491,9 +12488,7 @@ in
1249112488
1249212489 keepass-keefox = callPackage ../applications/misc/keepass-plugins/keefox { };
1249312490
12494− exrdisplay = callPackage ../applications/graphics/exrdisplay {
12495− fltk = fltk13.override { cfg.xftSupport = true; };
12496− };
12491+ exrdisplay = callPackage ../applications/graphics/exrdisplay { };
1249712492
1249812493 fbpanel = callPackage ../applications/window-managers/fbpanel { };
1249912494
@@ -14867,9 +14862,7 @@ in
1486714862
1486814863 ykpers = callPackage ../applications/misc/ykpers {};
1486914864
14870− yoshimi = callPackage ../applications/audio/yoshimi {
14871− fltk = fltk13.override { cfg.xftSupport = true; };
14872− };
14865+ yoshimi = callPackage ../applications/audio/yoshimi { };
1487314866
1487414867 zam-plugins = callPackage ../applications/audio/zam-plugins { };
1487514868
@@ -15050,9 +15043,7 @@ in
1505015043
1505115044 fish-fillets-ng = callPackage ../games/fish-fillets-ng {};
1505215045
15053− flightgear = qt5.callPackage ../games/flightgear {
15054− fltk13 = fltk13.override { cfg.xftSupport = true; };
15055− };
15046+ flightgear = qt5.callPackage ../games/flightgear { };
1505615047
1505715048 freecell-solver = callPackage ../games/freecell-solver { };
1505815049