From b8a525a8b644d9fc9961ca3ab3c4083b93987b2c Mon Sep 17 00:00:00 2001 From: Rahul Gopinath Date: Sat, 11 Jun 2016 23:32:33 -0700 Subject: jfbview: update mupdf 1.8 -> 1.9 --- pkgs/os-specific/linux/jfbview/default.nix | 4 ++++ pkgs/os-specific/linux/jfbview/mupdf-1.9.patch | 28 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/os-specific/linux/jfbview/mupdf-1.9.patch (limited to 'pkgs') diff --git a/pkgs/os-specific/linux/jfbview/default.nix b/pkgs/os-specific/linux/jfbview/default.nix index 31ba5e1152c..bad64a20cac 100644 --- a/pkgs/os-specific/linux/jfbview/default.nix +++ b/pkgs/os-specific/linux/jfbview/default.nix @@ -31,6 +31,10 @@ stdenv.mkDerivation rec { imlib2 ]; + patches = [ + ./mupdf-1.9.patch + ]; + configurePhase = '' # Hack. Probing (`ldconfig -p`) fails with ‘cannot execute binary file’. # Overriding `OPENJP2 =` later works, but makes build output misleading: diff --git a/pkgs/os-specific/linux/jfbview/mupdf-1.9.patch b/pkgs/os-specific/linux/jfbview/mupdf-1.9.patch new file mode 100644 index 00000000000..99d7377239b --- /dev/null +++ b/pkgs/os-specific/linux/jfbview/mupdf-1.9.patch @@ -0,0 +1,28 @@ +--- JFBView-0.5.2-src/Makefile 2016-06-11 23:27:54.969894750 -0700 ++++ JFBView-0.5.2-src/Makefile 2016-06-11 23:24:45.181142832 -0700 +@@ -134,13 +134,22 @@ + + .PHONY: detect_libopenjp2 + detect_libopenjp2: +- $(eval OPENJP2 = $(shell ldconfig -p | grep -q libopenjp2 && echo 'openjp2' || echo 'openjpeg')) ++ $(eval OPENJP2 = $(shell echo libopenjp2 | grep -q libopenjp2 && echo 'openjp2' || echo 'openjpeg')) + @echo "OPENJP2 = $(OPENJP2)" >> $(CONFIG_MK) + + # mupdf_version only depends on -lmupdf. + mupdf_version: mupdf_version.cpp +- $(CXX) $(CXXFLAGS) -o $@ $^ $(LDLIBS) -lmupdf +- ++ $(CXX) $(CXXFLAGS) -o $@ $^ $(LDLIBS) -lmupdf \ ++ -lpthread \ ++ -lform \ ++ -lncurses \ ++ -lfreetype \ ++ -lharfbuzz \ ++ -lz \ ++ -ljbig2dec \ ++ -ljpeg \ ++ -lmujs \ ++ -lopenjp2 + endif + + -- cgit 1.4.1