libtiff: fix case-insensitive build

authored by Ryan Burns and committed by Jonathan Ringer 35ddc196 40b7dd7c

+28 -1
+8 -1
pkgs/development/libraries/libtiff/default.nix
··· 27 27 }; 28 28 29 29 # FreeImage needs this patch 30 - patches = [ ./headers.patch ]; 30 + patches = [ 31 + ./headers.patch 32 + ./rename-version.patch 33 + ]; 34 + 35 + postPatch = '' 36 + mv VERSION VERSION.txt 37 + ''; 31 38 32 39 outputs = [ "bin" "dev" "dev_private" "out" "man" "doc" ]; 33 40
+20
pkgs/development/libraries/libtiff/rename-version.patch
··· 1 + --- a/Makefile.am 2 + +++ b/Makefile.am 3 + @@ -34,7 +34,7 @@ docfiles = \ 4 + README.md \ 5 + RELEASE-DATE \ 6 + TODO \ 7 + - VERSION 8 + + VERSION.txt 9 + 10 + EXTRA_DIST = \ 11 + cmake \ 12 + @@ -61,7 +61,7 @@ SUBDIRS = port libtiff tools build contrib test man html 13 + 14 + release: 15 + (rm -f $(top_srcdir)/RELEASE-DATE && echo $(LIBTIFF_RELEASE_DATE) > $(top_srcdir)/RELEASE-DATE) 16 + - (rm -f $(top_srcdir)/VERSION && echo $(LIBTIFF_VERSION) > $(top_srcdir)/VERSION) 17 + + (rm -f $(top_srcdir)/VERSION.txt && echo $(LIBTIFF_VERSION) > $(top_srcdir)/VERSION.txt) 18 + (rm -f $(top_srcdir)/libtiff/tiffvers.h && sed 's,LIBTIFF_VERSION,$(LIBTIFF_VERSION),;s,LIBTIFF_RELEASE_DATE,$(LIBTIFF_RELEASE_DATE),' $(top_srcdir)/libtiff/tiffvers.h.in > $(top_srcdir)/libtiff/tiffvers.h) 19 + 20 + pkgconfigdir = $(libdir)/pkgconfig