From 4a136462431290f1061ed15d9149dee98f9a6385 Mon Sep 17 00:00:00 2001 From: "Tobias C. Berner" Date: Sun, 23 Jun 2019 13:39:35 +0000 Subject: textproc/kf5-sonnet: disable building of examples - examples are built but not installed, so don't build them PR: 238710 Reported by: yuri --- textproc/kf5-sonnet/Makefile | 4 ++++ textproc/kf5-sonnet/files/patch-CMakeLists.txt | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 textproc/kf5-sonnet/files/patch-CMakeLists.txt (limited to 'textproc/kf5-sonnet') diff --git a/textproc/kf5-sonnet/Makefile b/textproc/kf5-sonnet/Makefile index 28fe9f58b0e2..2cc5f4ca1134 100644 --- a/textproc/kf5-sonnet/Makefile +++ b/textproc/kf5-sonnet/Makefile @@ -2,6 +2,7 @@ PORTNAME= sonnet DISTVERSION= ${KDE_FRAMEWORKS_VERSION} +PORTREVISION= 1 CATEGORIES= textproc kde kde-frameworks MAINTAINER= kde@FreeBSD.org @@ -15,4 +16,7 @@ USE_KDE= ecm USE_QT= buildtools_build core gui linguisttools qmake_build \ testlib widgets +# Disable examples -- they are not installed anyways. +CMAKE_OFF= ENABLE_EXAMPLES + .include 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() + -- cgit v1.2.3