blob: 4c35ca8916ff3dd485176317d8aa0c0d920ba020 (
plain)
1 --- xpdf-4.01.orig/cmake-config.txt 2019-02-18 21:24:19.000000000 +0300
2 +++ xpdf-4.01/cmake-config.txt 2019-03-10 20:59:59.769610445 +0300
3 @@ -93,6 +93,10 @@
4 option(XPDFWIDGET_PRINTING "include printing support in XpdfWidget" ON)
5 endif ()
6
7 +#--- disable lib dep automagick ---
8 +option(WITH_LIBPAPER "Enable libpaper support for getting paper size preferences" ON)
9 +option(WITH_LIBPNG "Enable png support via libpng" ON)
10 +
11 #--- check for various library functions
12 check_function_exists(mkstemp HAVE_MKSTEMP)
13 check_function_exists(mkstemps HAVE_MKSTEMPS)
14 @@ -182,7 +186,9 @@
15 find_package(ZLIB)
16
17 #--- look for libpng
18 +if (WITH_LIBPNG)
19 find_package(PNG)
20 +endif ()
21
22
23
24 @@ -239,10 +245,12 @@
25 endif()
26
27 #--- look for libpaper
28 +if (WITH_LIBPAPER)
29 find_library(PAPER_LIBRARY
30 NAMES paper libpaper
31 PATH_SUFFIXES lib64 lib
32 )
33 +endif ()
34 if (PAPER_LIBRARY)
35 set(HAVE_PAPER_H TRUE)
36 else ()
|