summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-libs/quarter/files/quarter-1.1.0-cmake.patch16
-rw-r--r--media-libs/quarter/quarter-1.1.0.ebuild6
2 files changed, 21 insertions, 1 deletions
diff --git a/media-libs/quarter/files/quarter-1.1.0-cmake.patch b/media-libs/quarter/files/quarter-1.1.0-cmake.patch
new file mode 100644
index 000000000000..73c6473354a0
--- /dev/null
+++ b/media-libs/quarter/files/quarter-1.1.0-cmake.patch
@@ -0,0 +1,16 @@
+diff -ruN quarter/CMakeLists.txt quarter-my/CMakeLists.txt
+--- quarter/CMakeLists.txt 2019-12-25 19:44:38.000000000 +0100
++++ quarter-my/CMakeLists.txt 2020-10-06 20:16:47.094206772 +0200
+@@ -90,7 +90,11 @@
+ find_package(Spacenav)
+
+ if(QUARTER_USE_QT5)
+- find_package(Qt5 COMPONENTS Widgets UiTools OpenGL Designer REQUIRED)
++ if(QUARTER_BUILD_PLUGIN)
++ find_package(Qt5 COMPONENTS Widgets UiTools OpenGL Designer REQUIRED)
++ else()
++ find_package(Qt5 COMPONENTS Widgets OpenGL REQUIRED)
++ endif()
+ endif()
+
+ if(Qt5_FOUND)
diff --git a/media-libs/quarter/quarter-1.1.0.ebuild b/media-libs/quarter/quarter-1.1.0.ebuild
index d52e90e73ea8..71fc4f42430f 100644
--- a/media-libs/quarter/quarter-1.1.0.ebuild
+++ b/media-libs/quarter/quarter-1.1.0.ebuild
@@ -40,6 +40,10 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/quarter"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1.0-cmake.patch
+)
+
DOCS=(AUTHORS ChangeLog NEWS README)
src_configure() {
@@ -47,7 +51,7 @@ src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
-DQUARTER_BUILD_SHARED_LIBS=ON
- -DQUARTER_BUILD_PLUGIN=ON
+ -DQUARTER_BUILD_PLUGIN=$(usex designer)
-DQUARTER_BUILD_EXAMPLES=OFF
-DQUARTER_BUILD_DOCUMENTATION=$(usex doc)
-DQUARTER_BUILD_INTERNAL_DOCUMENTATION=OFF