2021-11-07 20:29:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libjpeg
|
|
|
|
, libexif
|
|
|
|
, giflib
|
|
|
|
, libtiff
|
|
|
|
, libpng
|
|
|
|
, libwebp
|
|
|
|
, libdrm
|
|
|
|
, pkg-config
|
|
|
|
, freetype
|
|
|
|
, fontconfig
|
|
|
|
, which
|
|
|
|
, imagemagick
|
|
|
|
, curl
|
|
|
|
, sane-backends
|
|
|
|
, libXpm
|
|
|
|
, epoxy
|
|
|
|
, poppler
|
|
|
|
, mesa
|
|
|
|
, lirc
|
|
|
|
}:
|
2009-08-04 07:14:43 +00:00
|
|
|
|
2011-01-16 16:28:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-11-07 20:29:51 +00:00
|
|
|
pname = "fbida";
|
|
|
|
version = "2.14";
|
2019-05-28 19:09:34 +00:00
|
|
|
|
2009-08-04 07:14:43 +00:00
|
|
|
src = fetchurl {
|
2021-11-07 20:29:51 +00:00
|
|
|
url = "http://dl.bytesex.org/releases/fbida/fbida-${version}.tar.gz";
|
2018-07-04 19:48:48 +00:00
|
|
|
sha256 = "0f242mix20rgsqz1llibhsz4r2pbvx6k32rmky0zjvnbaqaw1dwm";
|
2009-08-04 07:14:43 +00:00
|
|
|
};
|
|
|
|
|
2021-09-29 06:58:42 +00:00
|
|
|
patches = [
|
|
|
|
# Upstream patch to fix build on -fno-common toolchains.
|
|
|
|
(fetchurl {
|
|
|
|
name = "no-common.patch";
|
|
|
|
url = "https://git.kraxel.org/cgit/fbida/patch/?id=1bb8a8aa29845378903f3c690e17c0867c820da2";
|
|
|
|
sha256 = "0n5vqbp8wd87q60zfwdf22jirggzngypc02ha34gsj1rd6pvwahi";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config which ];
|
2018-03-18 22:43:44 +00:00
|
|
|
buildInputs = [
|
2021-11-07 20:29:51 +00:00
|
|
|
libexif
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
giflib
|
|
|
|
freetype
|
|
|
|
fontconfig
|
|
|
|
libtiff
|
|
|
|
libwebp
|
|
|
|
imagemagick
|
|
|
|
curl
|
|
|
|
sane-backends
|
|
|
|
libdrm
|
|
|
|
libXpm
|
|
|
|
epoxy
|
|
|
|
poppler
|
|
|
|
lirc
|
2019-05-28 19:09:34 +00:00
|
|
|
mesa
|
2018-03-18 22:43:44 +00:00
|
|
|
];
|
2019-05-28 19:09:34 +00:00
|
|
|
|
2018-07-04 19:48:48 +00:00
|
|
|
makeFlags = [ "prefix=$(out)" "verbose=yes" "STRIP=" "JPEG_VER=62" ];
|
2011-01-16 16:28:08 +00:00
|
|
|
|
2021-09-29 06:58:42 +00:00
|
|
|
postPatch = ''
|
2012-03-04 08:53:46 +00:00
|
|
|
sed -e 's@ cpp\>@ gcc -E -@' -i GNUmakefile
|
2018-07-04 19:48:48 +00:00
|
|
|
sed -e 's@$(HAVE_LINUX_FB_H)@yes@' -i GNUmakefile
|
|
|
|
'';
|
2012-03-04 08:53:46 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-09 19:54:36 +00:00
|
|
|
description = "Image viewing and manipulation programs including fbi, fbgs, ida, exiftran and thumbnail.cgi";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.kraxel.org/blog/linux/fbida/";
|
2015-05-31 13:54:28 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2016-11-27 16:07:01 +00:00
|
|
|
platforms = platforms.linux;
|
2009-08-04 07:14:43 +00:00
|
|
|
};
|
|
|
|
}
|