biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / misc / k2pdfopt / 0001-Fix-CMakeLists.patch
blob8f9271ac996b2f44e4af334b1ef4841d07ef4dad
1 From 2629af4ed00d7ca65359178203d80fb146901cdb Mon Sep 17 00:00:00 2001
2 From: Daniel Fullmer <danielrf12@gmail.com>
3 Date: Fri, 3 Jul 2020 21:00:45 -0700
4 Subject: [PATCH 1/2] Fix CMakeLists
6 ---
7 CMakeLists.txt | 12 ++++++++----
8 1 file changed, 8 insertions(+), 4 deletions(-)
10 diff --git a/CMakeLists.txt b/CMakeLists.txt
11 index e218279..4341de9 100644
12 --- a/CMakeLists.txt
13 +++ b/CMakeLists.txt
14 @@ -57,6 +57,7 @@ endif(JPEG_FOUND)
15 include(FindJasper)
16 if(JASPER_FOUND)
17 set(HAVE_JASPER_LIB 1)
18 + set(K2PDFOPT_LIB ${K2PDFOPT_LIB} ${JASPER_LIBRARY})
19 endif(JASPER_FOUND)
21 # paths from willuslib/wgs.c
22 @@ -71,9 +72,12 @@ else()
23 message(STATUS "Could NOT find ghostscript executable")
24 endif(GHOSTSCRIPT_EXECUTABLE)
26 -# willus.h
27 -# HAVE_GSL_LIB
29 +pkg_check_modules(GSL gsl)
30 +if(GSL_FOUND)
31 + set(HAVE_GSL_LIB 1)
32 + include_directories(SYSTEM ${GSL_INCLUDEDIR})
33 + set(K2PDFOPT_LIB ${K2PDFOPT_LIB} ${GSL_LDFLAGS})
34 +endif(GSL_FOUND)
36 # libfreetype6 (>= 2.3.9), libjbig2dec0, libjpeg8 (>= 8c), libx11-6, libxext6, zlib1g (>= 1:1.2.0)
37 # MUPDF_STATIC_LDFLAGS misses mupdf-js-none, and doubles libs ...
38 @@ -85,7 +89,7 @@ if(MUPDF_FOUND)
39 include_directories(SYSTEM ${MUPDF_INCLUDEDIR})
40 message(STATUS "mupdf libraries: ${MUPDF_LDFLAGS}")
41 set(K2PDFOPT_LIB ${K2PDFOPT_LIB} ${MUPDF_LDFLAGS}
42 - -lmupdf-js-none -lopenjpeg -ljbig2dec -ljpeg -lfreetype
45 endif(MUPDF_FOUND)
47 --
48 2.27.0