2011-01-16 17:28:08 +01:00
|
|
|
{ stdenv, fetchurl, libjpeg, libexif, giflib, libtiff, libpng
|
|
|
|
, pkgconfig, freetype, fontconfig
|
|
|
|
}:
|
2009-08-04 09:14:43 +02:00
|
|
|
|
2011-01-16 17:28:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fbida-2.07";
|
|
|
|
|
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";
|
2009-08-04 09:14:43 +02:00
|
|
|
sha256 = "0i6v3fvjc305pfw48sglb5f22lwxldmfch6mjhqbcp7lqkkxw435";
|
|
|
|
};
|
|
|
|
|
2011-01-16 17:39:06 +01:00
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
# Fetch a segfault in exiftran (http://bugs.gentoo.org/284753).
|
|
|
|
# `fbida' contains a copy of some internal libjpeg source files.
|
|
|
|
# If these do not match with the actual libjpeg, exiftran may
|
|
|
|
# fail.
|
|
|
|
tar xvf ${libjpeg.src}
|
|
|
|
for i in jpegint.h jpeglib.h jinclude.h transupp.c transupp.h; do
|
|
|
|
cp jpeg-*/$i jpeg/
|
|
|
|
done
|
|
|
|
'';
|
2009-08-04 09:14:43 +02:00
|
|
|
|
2011-01-16 17:28:08 +01:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig libexif libjpeg giflib libpng giflib freetype fontconfig ];
|
|
|
|
|
|
|
|
makeFlags = [ "prefix=$(out)" "verbose=yes" ];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|