mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
libtiff: Update to 4.0.4beta
This commit is contained in:
parent
e7feb89158
commit
f40c885a34
@ -1,12 +1,7 @@
|
||||
{ stdenv, fetchurl, fetchsvn, pkgconfig, zlib, libjpeg, xz }:
|
||||
{ stdenv, fetchurl, pkgconfig, zlib, libjpeg, xz }:
|
||||
|
||||
let
|
||||
version = "4.0.3";
|
||||
patchDir = fetchsvn {
|
||||
url = svn://svn.archlinux.org/packages/libtiff/trunk;
|
||||
rev = "198247";
|
||||
sha256 = "0a47l0zkc1zz7wxg64cyjv9z1djdvfyxgmwd03znlsac4zijkcy4";
|
||||
};
|
||||
version = "4.0.4beta";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libtiff-${version}";
|
||||
@ -19,19 +14,6 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0wj8d1iwk9vnpax2h29xqc2hwknxg3s0ay2d5pxkg59ihbifn6pa";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
for p in ${patchDir}/*-{2013-4244,2012-4447,2012-4564,2013-1960,2013-1961,libjpeg-turbo}.patch; do
|
||||
patch -p1 < "$p"
|
||||
done
|
||||
(
|
||||
cd tools
|
||||
for p in ${patchDir}/*-CVE-{2013-4231,2013-4232}.patch; do
|
||||
patch -p0 < "$p"
|
||||
done
|
||||
)
|
||||
patch -p0 < ${patchDir}/${if stdenv.isDarwin then "tiff-4.0.3" else "*"}-tiff2pdf-colors.patch
|
||||
''; # ^ sh on darwin seems not to expand globs in redirects, and I don't want to rebuild all again elsewhere
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
propagatedBuildInputs = [ zlib libjpeg xz ]; #TODO: opengl support (bogus configure detection)
|
||||
|
Loading…
Reference in New Issue
Block a user