1 --- cmake-config.txt.orig 2017-08-08 16:22:50.000000000 -0700
2 +++ cmake-config.txt 2017-09-17 21:03:21.838497000 -0700
4 option(USE_FIXEDPOINT "use fixed point (instead of floating point) arithmetic" OFF)
5 option(SPLASH_CMYK "include support for CMYK rasterization" OFF)
6 option(SPLASH_DEVICEN "include support for DeviceN rasterization" OFF)
7 +option(USE_LIBPAPER "use libpaper" OFF)
12 if (XPDFWIDGET_PRINTING)
13 set(QT_INCLUDES "${Qt5Widgets_INCLUDE_DIRS} ${Qt5PrintSupport_INCLUDE_DIRS}")
14 set(QT_DEFINITIONS "${Qt5Widgets_DEFINITIONS} ${Qt5PrintSupport_DEFINITIONS}")
16 - set(QT_LIBRARIES Qt5::Widgets Qt5::PrintSupport "-framework ApplicationServices")
19 set(QT_LIBRARIES Qt5::Widgets Qt5::PrintSupport cups)
21 set(QT_LIBRARIES Qt5::Widgets Qt5::PrintSupport)
23 set(QT_LIBRARIES Qt5::Widgets)
25 if (XPDFWIDGET_PRINTING)
27 - set(EXTRA_QT_LIBRARIES "-framework ApplicationServices")
30 set(EXTRA_QT_LIBRARIES cups)
32 set(EXTRA_QT_LIBRARIES "")
36 #--- look for libpaper
37 -find_library(HAVE_PAPER_H
38 - NAMES paper libpaper
39 - PATH_SUFFIXES lib64 lib
42 + find_library(PAPER_LIBRARY
43 + NAMES paper libpaper
50 + find_path(PAPER_INCLUDE_DIR .h
55 + /usr/freeware/include
56 + PATH_SUFFIXES include
61 + if (PAPER_INCLUDE_DIR AND PAPER_LIBRARY)
62 + set(HAVE_PAPER_H TRUE)
63 + message(STATUS "Found libpaper: ${PAPER_LIBRARY}")
65 + set(HAVE_PAPER_H FALSE)
66 + message(STATUS "libpaper not found")
70 #--- look for pthreads