Skip to content

Commit aa16cf7

Browse files
gui-apps/organicmaps: fix compilation
Signed-off-by: Vitaly Zdanevich <[email protected]>
1 parent 752306b commit aa16cf7

File tree

5 files changed

+59
-69
lines changed

5 files changed

+59
-69
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/3party/CMakeLists.txt b/3party/CMakeLists.txt
2+
index d4996e302d..953787945b 100644
3+
--- a/3party/CMakeLists.txt
4+
+++ b/3party/CMakeLists.txt
5+
@@ -41,9 +41,6 @@ if (NOT WITH_SYSTEM_PROVIDED_3PARTY)
6+
# Add pugixml library.
7+
add_subdirectory(pugixml)
8+
9+
- # Add protobuf library.
10+
- add_subdirectory(protobuf)
11+
-
12+
if (NOT PLATFORM_LINUX)
13+
add_subdirectory(freetype)
14+
add_subdirectory(icu)
15+
@@ -55,6 +52,9 @@ if (NOT WITH_SYSTEM_PROVIDED_3PARTY)
16+
target_include_directories(utf8cpp INTERFACE "${OMIM_ROOT}/3party/utfcpp/source")
17+
endif()
18+
19+
+# Add protobuf library.
20+
+add_subdirectory(protobuf)
21+
+
22+
add_subdirectory(agg)
23+
add_subdirectory(bsdiff-courgette)
24+
add_subdirectory(liboauthcpp)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
commit 905b161487865a200ce4a43fb2c1d96ecb38e102
2+
Author: Gerion Entrup <[email protected]>
3+
Date: Thu Apr 25 10:14:41 2024 +0200
4+
5+
CMakeLists: import jansson with pkgconfig
6+
7+
Upstream jansson offers compiling with autotools and CMake.
8+
If it is compiled with autotools (the recommended way) it does only
9+
provide a pkgconfig file and not a cmake file.
10+
This is also the way most distributions provide jansson, so this commit
11+
changes the behavior to use pkgconfig, too.
12+
13+
Signed-off-by: Gerion Entrup <[email protected]>
14+
15+
diff --git a/CMakeLists.txt b/CMakeLists.txt
16+
index 1902f0e618..975a402f8a 100644
17+
--- a/CMakeLists.txt
18+
+++ b/CMakeLists.txt
19+
@@ -320,8 +320,11 @@ if (WITH_SYSTEM_PROVIDED_3PARTY)
20+
set(GFLAGS_USE_TARGET_NAMESPACE ON)
21+
find_package(gflags REQUIRED)
22+
23+
+ find_package(PkgConfig)
24+
+ pkg_check_modules(jansson REQUIRED IMPORTED_TARGET jansson)
25+
+ add_library(jansson::jansson ALIAS PkgConfig::jansson)
26+
+
27+
find_package(expat CONFIG REQUIRED)
28+
- find_package(jansson CONFIG REQUIRED)
29+
find_package(pugixml REQUIRED)
30+
find_package(utf8cpp REQUIRED)
31+
endif()

gui-apps/organicmaps/files/more-3party.patch

-46
This file was deleted.

gui-apps/organicmaps/files/no-dynamic-download.patch

-15
This file was deleted.

gui-apps/organicmaps/organicmaps-9999.ebuild

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Copyright 1999-2023 Gentoo Authors
1+
# Copyright 1999-2025 Gentoo Authors
22
# Distributed under the terms of the GNU General Public License v2
33

44
EAPI=8
55

6-
PYTHON_COMPAT=( python3_{11..12} )
6+
PYTHON_COMPAT=( python3_{7..13} )
77
inherit git-r3 python-r1 xdg cmake
88
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
99
# this URL is to make the tests compile since organicmaps usually dynamically clones the repo
@@ -29,6 +29,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
2929

3030
# depend on sys-libs/zlib[minizip] when it is not pulled in as subproject anymore
3131
RDEPEND="
32+
>dev-cpp/fast_double_parser-0.7.0
3233
dev-cpp/gflags
3334
dev-db/sqlite
3435
dev-lang/python
@@ -45,7 +46,7 @@ RDEPEND="
4546
"
4647
DEPEND="${RDEPEND}"
4748

48-
PATCHES=( "${FILESDIR}"/more-3party.patch "${FILESDIR}"/no-dynamic-download.patch )
49+
PATCHES=( "${FILESDIR}"/fix-jansson.patch "${FILESDIR}"/fix-3party.patch)
4950

5051
WORLD_FEED_TESTS_S="${WORKDIR}/world_feed_integration_tests_data-${PV}"
5152

@@ -57,11 +58,6 @@ src_unpack () {
5758
}
5859

5960
src_configure() {
60-
# organicmaps wants a ./configure.sh execution.
61-
# However, this setups mainly stuff for Android and XCode builds that we don't need.
62-
# We need just this line here
63-
cp private_default.h private.h || die
64-
6561
CMAKE_BUILD_TYPE="RelWithDebInfo"
6662
local mycmakeargs=(
6763
-DWITH_SYSTEM_PROVIDED_3PARTY=yes

0 commit comments

Comments
 (0)