imlib2: add version without X11

wip/yesman
Franz Pletz 8 years ago
parent ffac67fcf3
commit 5a184be96f
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4
  1. 18
      pkgs/development/libraries/imlib2/default.nix
  2. 3
      pkgs/top-level/all-packages.nix

@ -1,4 +1,8 @@
{ stdenv, fetchurl, xlibsWrapper, libjpeg, libtiff, giflib, libpng, bzip2, pkgconfig }:
{ stdenv, fetchurl, libjpeg, libtiff, giflib, libpng, bzip2, pkgconfig
, freetype
, x11Support ? true, xlibsWrapper ? null }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "imlib2-1.4.9";
@ -8,7 +12,8 @@ stdenv.mkDerivation rec {
sha256 = "08809xxk2555yj6glixzw9a0x3x8cx55imd89kj3r0h152bn8a3x";
};
buildInputs = [ xlibsWrapper libjpeg libtiff giflib libpng bzip2 ];
buildInputs = [ libjpeg libtiff giflib libpng bzip2 freetype ]
++ optional x11Support xlibsWrapper;
nativeBuildInputs = [ pkgconfig ];
@ -21,7 +26,8 @@ stdenv.mkDerivation rec {
# Do not build amd64 assembly code on Darwin, because it fails to compile
# with unknow directive errors
configureFlags = if stdenv.isDarwin then [ "--enable-amd64=no" ] else null;
configureFlags = optional stdenv.isDarwin "--enable-amd64=no"
++ optional (!x11Support) "--without-x";
meta = {
description = "Image manipulation library";
@ -34,8 +40,8 @@ stdenv.mkDerivation rec {
easily, without sacrificing speed.
'';
license = stdenv.lib.licenses.free;
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ spwhitt ];
license = licenses.free;
platforms = platforms.unix;
maintainers = with maintainers; [ spwhitt ];
};
}

@ -7452,6 +7452,9 @@ in
iml = callPackage ../development/libraries/iml { };
imlib2 = callPackage ../development/libraries/imlib2 { };
imlib2-nox = imlib2.override {
x11Support = false;
};
imlibsetroot = callPackage ../applications/graphics/imlibsetroot { libXinerama = xorg.libXinerama; } ;

Loading…
Cancel
Save