sonnet: add PACKAGECONFIG for hunspell disabled by default
Came up when building with meta-office in layers. A patch moving hunspell to meta-oe is pending. Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
From e0b2cd6d9a7339f5e73d4fe19a4a0ad07223f571 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Fri, 29 Jan 2016 22:23:11 +0100
|
||||
Subject: [PATCH] make build of hunspell optional
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Finding hunspell is done by a taylored solution which does not seem to
|
||||
support disable.
|
||||
|
||||
Upstream-Status: Inappropriate [configuration]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
src/plugins/CMakeLists.txt | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt
|
||||
index f275f63..dbad160 100644
|
||||
--- a/src/plugins/CMakeLists.txt
|
||||
+++ b/src/plugins/CMakeLists.txt
|
||||
@@ -35,6 +35,9 @@ endif ()
|
||||
# add_subdirectory( enchant )
|
||||
#endif ()
|
||||
|
||||
+option(BUILD_HUNSPELL "Build hunspell" OFF)
|
||||
+
|
||||
+if(BUILD_HUNSPELL)
|
||||
find_package(HUNSPELL)
|
||||
set_package_properties(HUNSPELL PROPERTIES
|
||||
URL "http://hunspell.sourceforge.net/"
|
||||
@@ -44,6 +47,7 @@ set_package_properties(HUNSPELL PROPERTIES
|
||||
if (HUNSPELL_FOUND)
|
||||
add_subdirectory( hunspell )
|
||||
endif ()
|
||||
+endif ()
|
||||
|
||||
|
||||
find_package(VOIKKO)
|
||||
--
|
||||
2.5.0
|
||||
|
||||
@@ -22,3 +22,6 @@ FILES_${PN}-dbg += " \
|
||||
CMAKE_ALIGN_SYSROOT[1] = "KF5Sonnet, -S${libdir}/lib, -S${STAGING_LIBDIR}/lib"
|
||||
CMAKE_ALIGN_SYSROOT[2] = "KF5Sonnet, -S${includedir}, -S${STAGING_INCDIR}"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[hunspell] = "-DBUILD_HUNSPELL=ON,-DBUILD_HUNSPELL=OFF, hunspell"
|
||||
|
||||
|
||||
@@ -7,3 +7,4 @@ inherit kde-kf5
|
||||
PV = "${KF5_VERSION}"
|
||||
SRC_URI[md5sum] = "8fb3c2fac12e7c2671c3318f41bc4161"
|
||||
SRC_URI[sha256sum] = "6ffa49bab59dba0080c03a8b7863efd53006239350f634575b4aabe9f496009d"
|
||||
SRC_URI += "file://0003-make-build-of-hunspell-optional.patch"
|
||||
|
||||
Reference in New Issue
Block a user