2012-02-01 23:33:35 +01:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, gpm, openssl, pkgconfig # Misc.
|
|
|
|
, libpng, libjpeg, libtiff # graphic formats
|
|
|
|
, bzip2, zlib, xz # Transfer encodings
|
|
|
|
, enableFB ? true
|
|
|
|
, enableDirectFB ? false, directfb
|
|
|
|
, enableX11 ? true, libX11, libXt, libXau # GUI support
|
|
|
|
}:
|
2009-10-24 17:39:54 +02:00
|
|
|
|
2012-02-01 23:33:35 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.5";
|
|
|
|
name = "links2-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/download/links-${version}.tar.bz2";
|
|
|
|
sha256 = "1wlmj8s6bxgznh0pnawihyvhffzryciz3lkagcxhf7fp64zz5izm";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ libpng libjpeg libtiff gpm openssl xz bzip2 zlib ]
|
|
|
|
++ stdenv.lib.optionals enableX11 [ libX11 libXau libXt ]
|
|
|
|
++ stdenv.lib.optional enableDirectFB [ directfb ];
|
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig bzip2 ];
|
2012-02-01 23:33:35 +01:00
|
|
|
|
|
|
|
configureFlags = [ "--with-ssl" ]
|
|
|
|
++ stdenv.lib.optional (enableX11 || enableFB || enableDirectFB) "--enable-graphics"
|
|
|
|
++ stdenv.lib.optional enableX11 "--with-x"
|
|
|
|
++ stdenv.lib.optional enableFB "--with-fb"
|
|
|
|
++ stdenv.lib.optional enableDirectFB "--with-directfb";
|
|
|
|
|
|
|
|
crossAttrs = {
|
|
|
|
preConfigure = ''
|
|
|
|
export CC=$crossConfig-gcc
|
|
|
|
'';
|
|
|
|
};
|
2009-10-24 17:39:54 +02:00
|
|
|
|
|
|
|
meta = {
|
2012-02-01 23:33:35 +01:00
|
|
|
homepage = http://links.twibright.com/;
|
2009-10-24 17:39:54 +02:00
|
|
|
description = "A small browser with some graphics support";
|
2012-02-01 23:33:35 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ raskin urkud viric ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-10-24 17:39:54 +02:00
|
|
|
};
|
|
|
|
}
|