summaryrefslogtreecommitdiff
path: root/graphics/vigra/files/patch-CMakeLists.txt
blob: 1394543c47e7b45eb4327d1f980655a1fde971b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- CMakeLists.txt.orig	2018-10-19 16:12:20 UTC
+++ CMakeLists.txt
@@ -97,14 +97,27 @@ endif()
 #
 ##################################################
 
+# FreeBSD ports: add toggles for options
+option( WITH_PNG "Enable PNG support" ON )
+option( WITH_JPEG "Enable JPEG support" ON )
+option( WITH_TIFF "Enable TIFF support" ON )
+option( WITH_FFTW "Enable FFTW support" ON )
+
 INCLUDE(VigraFindPackage)
 VIGRA_FIND_PACKAGE(ZLIB)
+if (WITH_TIFF)
 VIGRA_FIND_PACKAGE(TIFF NAMES libtiff_i libtiff) # prefer DLL on Windows
+endif ()
+if (WITH_JPEG)
 VIGRA_FIND_PACKAGE(JPEG NAMES libjpeg)
+endif ()
+if (WITH_PNG)
 VIGRA_FIND_PACKAGE(PNG)
+endif ()
+if (WITH_FFTW)
 VIGRA_FIND_PACKAGE(FFTW3 NAMES libfftw3-3 libfftw-3.3)
 VIGRA_FIND_PACKAGE(FFTW3F NAMES libfftw3f-3 libfftwf-3.3)
-
+endif ()
 
 IF(WITH_OPENEXR)
     VIGRA_FIND_PACKAGE(OpenEXR)