2012-03-04 09:53:46 +01:00
|
|
|
{ stdenv, fetchurl, libjpeg, libexif, libungif, libtiff, libpng, libwebp
|
|
|
|
, pkgconfig, freetype, fontconfig, which, imagemagick, curl, saneBackends
|
2011-01-16 17:28:08 +01:00
|
|
|
}:
|
2009-08-04 09:14:43 +02:00
|
|
|
|
2011-01-16 17:28:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2012-03-04 09:53:46 +01:00
|
|
|
name = "fbida-2.09";
|
2011-01-16 17:28:08 +01:00
|
|
|
|
2009-08-04 09:14:43 +02:00
|
|
|
src = fetchurl {
|
2011-01-16 17:28:08 +01:00
|
|
|
url = "http://dl.bytesex.org/releases/fbida/${name}.tar.gz";
|
2012-03-04 09:53:46 +01:00
|
|
|
sha256 = "1riia87v5nsx858xnlvc7sspr1p36adjqrdch1255ikr5xbv6h6x";
|
2009-08-04 09:14:43 +02:00
|
|
|
};
|
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig which ];
|
2011-01-16 17:28:08 +01:00
|
|
|
buildInputs =
|
2012-03-04 09:53:46 +01:00
|
|
|
[ libexif libjpeg libpng libungif freetype fontconfig libtiff libwebp
|
|
|
|
imagemagick curl saneBackends
|
|
|
|
];
|
2011-01-16 17:28:08 +01:00
|
|
|
|
|
|
|
makeFlags = [ "prefix=$(out)" "verbose=yes" ];
|
|
|
|
|
2012-03-04 09:53:46 +01:00
|
|
|
patchPhase =
|
|
|
|
''
|
|
|
|
sed -e 's@ cpp\>@ gcc -E -@' -i GNUmakefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
configurePhase = "make config $makeFlags";
|
|
|
|
|
2012-01-07 16:03:56 +01:00
|
|
|
crossAttrs = {
|
|
|
|
makeFlags = makeFlags ++ [ "CC=${stdenv.cross.config}-gcc" "STRIP="];
|
|
|
|
};
|
|
|
|
|
2009-08-04 09:14:43 +02:00
|
|
|
meta = {
|
2011-01-16 17:28:08 +01:00
|
|
|
description = "Image viewing and manipulation programs";
|
2009-08-04 09:14:43 +02:00
|
|
|
};
|
|
|
|
}
|