2020-03-04 00:23:43 +00:00
|
|
|
{ stdenv
|
|
|
|
, pkgconfig
|
|
|
|
, glib
|
|
|
|
, libxml2
|
|
|
|
, expat
|
|
|
|
, fftw
|
|
|
|
, orc
|
|
|
|
, lcms
|
|
|
|
, imagemagick
|
|
|
|
, openexr
|
|
|
|
, libtiff
|
|
|
|
, libjpeg
|
|
|
|
, libgsf
|
|
|
|
, libexif
|
|
|
|
, ApplicationServices
|
|
|
|
, python27
|
|
|
|
, libpng ? null
|
|
|
|
, fetchFromGitHub
|
2020-03-04 00:27:23 +00:00
|
|
|
, fetchpatch
|
2020-03-04 00:23:43 +00:00
|
|
|
, autoreconfHook
|
|
|
|
, gtk-doc
|
|
|
|
, gobject-introspection
|
|
|
|
,
|
2015-01-13 23:49:58 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "vips";
|
2020-02-06 23:19:42 +00:00
|
|
|
version = "8.9.1";
|
2015-01-13 23:49:58 +00:00
|
|
|
|
2020-03-04 00:32:41 +00:00
|
|
|
outputs = [ "bin" "out" "man" "dev" ];
|
|
|
|
|
2018-10-08 00:09:51 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libvips";
|
|
|
|
repo = "libvips";
|
|
|
|
rev = "v${version}";
|
2020-02-06 23:19:42 +00:00
|
|
|
sha256 = "01vgvzlygg3fzpinb0x1rdm2sqvnqxmvxbnlbg73ygdadv3l2s0v";
|
2019-06-03 09:49:48 +01:00
|
|
|
# Remove unicode file names which leads to different checksums on HFS+
|
|
|
|
# vs. other filesystems because of unicode normalisation.
|
|
|
|
extraPostFetch = ''
|
|
|
|
rm -r $out/test/test-suite/images/
|
|
|
|
'';
|
2015-01-13 23:49:58 +00:00
|
|
|
};
|
|
|
|
|
2020-03-04 00:27:23 +00:00
|
|
|
patches = [
|
|
|
|
# autogen.sh should not run configure
|
|
|
|
# https://github.com/libvips/libvips/pull/1566
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/libvips/libvips/commit/97a92e0e6abab652fdf99313b138bfd77d70deb4.patch";
|
|
|
|
sha256 = "0w1sm5wmvfp8svdpk8mz57c1n6zzy3snq0g2f8yxjamv0d2gw2dp";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-03-04 00:23:43 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
autoreconfHook
|
|
|
|
gtk-doc
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libxml2
|
|
|
|
fftw
|
|
|
|
orc
|
|
|
|
lcms
|
|
|
|
imagemagick
|
|
|
|
openexr
|
|
|
|
libtiff
|
|
|
|
libjpeg
|
|
|
|
libgsf
|
|
|
|
libexif
|
|
|
|
python27
|
|
|
|
libpng
|
|
|
|
expat
|
|
|
|
] ++ stdenv.lib.optional stdenv.isDarwin ApplicationServices;
|
2015-01-13 23:49:58 +00:00
|
|
|
|
2020-03-04 00:28:09 +00:00
|
|
|
# Required by .pc file
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
2018-10-08 00:09:51 +01:00
|
|
|
autoreconfPhase = ''
|
2020-03-04 00:27:23 +00:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2018-10-08 00:09:51 +01:00
|
|
|
'';
|
|
|
|
|
2015-01-13 23:49:58 +00:00
|
|
|
meta = with stdenv.lib; {
|
2019-06-03 09:49:48 +01:00
|
|
|
homepage = "https://libvips.github.io/libvips/";
|
2015-01-13 23:49:58 +00:00
|
|
|
description = "Image processing system for large images";
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
maintainers = with maintainers; [ kovirobi ];
|
2018-08-21 08:53:12 +01:00
|
|
|
platforms = platforms.unix;
|
2015-01-13 23:49:58 +00:00
|
|
|
};
|
|
|
|
}
|