aboutsummaryrefslogtreecommitdiff
path: root/textproc/kf5-sonnet/files
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2019-06-23 13:39:35 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2019-06-23 13:39:35 +0000
commit4a136462431290f1061ed15d9149dee98f9a6385 (patch)
tree3d13de9dae95bf5ac7926ea39c97f9d672d84376 /textproc/kf5-sonnet/files
parentc5b8c9aba4f820b5b28d7236f184caa6413d4031 (diff)
downloadports-4a136462431290f1061ed15d9149dee98f9a6385.tar.gz
ports-4a136462431290f1061ed15d9149dee98f9a6385.zip
textproc/kf5-sonnet: disable building of examples
- examples are built but not installed, so don't build them PR: 238710 Reported by: yuri
Notes
Notes: svn path=/head/; revision=504953
Diffstat (limited to 'textproc/kf5-sonnet/files')
-rw-r--r--textproc/kf5-sonnet/files/patch-CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/textproc/kf5-sonnet/files/patch-CMakeLists.txt b/textproc/kf5-sonnet/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..acba95ad8547
--- /dev/null
+++ b/textproc/kf5-sonnet/files/patch-CMakeLists.txt
@@ -0,0 +1,13 @@
+Allow disabling building examples, as they are not installed anyways.
+
+--- CMakeLists.txt.orig 2019-06-23 11:56:17 UTC
++++ CMakeLists.txt
+@@ -53,7 +53,7 @@ if (NOT CMAKE_CROSSCOMPILING)
+ add_subdirectory(data)
+ endif()
+
+-if(TARGET Qt5::Widgets)
++if((TARGET Qt5::Widgets) AND (ENABLE_EXAMPLES))
+ add_subdirectory(examples)
+ endif()
+