337.4. marble-26.08.2
Marble: virtual globe and world atlas, with offline Atlas, satellite and OpenStreetMap vector views
| Version | 26.08.2, release 1 |
| Shelf | gis — GIS, maps, projections, GPS, navigation and location |
| Phase | 44_apps (Applications), 214 of 422 in build order |
| Licence | LGPL-2.1-or-later AND GPL-3.0-or-later |
| Homepage | https://marble.kde.org/ |
| Build time | 40.1 SBU |
| Installed size | 48.1 MiB in 1617 files |
| Recipe | ports/core/gis/marble/kpkgbuild |
About
Marble is KDE’s virtual globe and world atlas: the Earth, the Moon and other bodies in Atlas, satellite and OpenStreetMap views, with search, routing and position tracking. The port builds the KDE application marble and two programs beside it that share its library: marble-behaim, the Behaim globe of 1492, and marble-maps, a Kirigami map-and-navigation front end.
Sources
marble-26.08.2.tar.xz(51.3 MiB)
sha256e336e4dd45612700a492420ae9e8d46a4847dfc4142fce19f89126d979483064
upstream: https://download.kde.org/stable/release-service/26.08.2/src/marble-26.08.2.tar.xz
archive copy: sources-2/gis--marble-26.08.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, librsvg, qt6-qtbase, qt6-qtsvg, qt6-qtdeclarative, qt6-qt5compat, qt6-qtwebengine, qt6-qtwebchannel, qt6-qtpositioning, qt6-qtserialport, kcoreaddons, ki18n, kconfig, kcrash, kparts, kio, kdoctools, kirigami, kirigami-addons, libplasma, krunner, protobuf, abseil-cpp, zlib, gpsd, shapelib, shared-mime-info, hicolor-icon-theme.
Required by (1): kde-gear-education.
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install marble'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/gis/marble.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/gis/marble
echo 'e336e4dd45612700a492420ae9e8d46a4847dfc4142fce19f89126d979483064 marble-26.08.2.tar.xz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/marble
SRC=$SRC_ROOT/marble-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf marble-26.08.2.tar.xz -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DKDE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DBUILD_TESTING=OFF \
-DKF_SKIP_PO_PROCESSING=ON \
-DMOBILE=OFF \
-DBUILD_TOUCH=OFF \
-DBUILD_QT_AND_KDE=OFF \
-DBUILD_MARBLE_APPS=ON \
-DBUILD_MARBLE_TOOLS=OFF \
-DBUILD_MARBLE_EXAMPLES=OFF \
-DBUILD_WITH_DBUS=ON \
-DWITH_DESIGNER_PLUGIN=OFF \
-DWITH_libgps=ON \
-DWITH_libshp=ON \
-DWITH_ZLIB=ON \
-DWITH_Phonon4Qt6=OFF \
-DWITH_Plasma=ON \
-DCMAKE_REQUIRE_FIND_PACKAGE_Plasma=ON \
-DWITH_libwlocate=OFF \
-Wno-dev
for v in Protobuf_PROTOC_EXECUTABLE LIBGPS_LIBRARIES LIBSHP_LIBRARIES KF6Runner_DIR; do
grep -Eq "^$v:[A-Z]+=/" build/CMakeCache.txt ||
{ echo "marble: $v not found at configure" >&2; exit 1; }
done
cmake --build build
DESTDIR=$PKG cmake --install build
[ -f "$PKG/usr/share/icons/hicolor/48x48/apps/marble.png" ] ||
{ echo "marble: the hicolor PNG icon was not installed" >&2; exit 1; }
for icon in org.kde.marble.behaim org.kde.marble.maps; do
svg="$PKG/usr/share/icons/hicolor/scalable/apps/$icon.svg"
[ -f "$svg" ] || { echo "marble: $icon.svg was not installed" >&2; exit 1; }
for s in 48 128 256; do
install -d "$PKG/usr/share/icons/hicolor/${s}x${s}/apps"
rsvg-convert -w $s -h $s "$svg" \
-o "$PKG/usr/share/icons/hicolor/${s}x${s}/apps/$icon.png"
done
done
cat > "$PKG/usr/share/applications/org.kde.marble.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=KDE Marble
GenericName=Virtual Globe
Comment=Virtual globe and world atlas
TryExec=marble
Exec=marble %U
Icon=marble
Terminal=false
StartupWMClass=org.kde.marble
X-DocPath=marble/index.html
MimeType=x-scheme-handler/geo;x-scheme-handler/worldwind;
Categories=Qt;KDE;Education;Geoscience;Geography;Science;Maps;
Keywords=globe;atlas;map;maps;earth;geography;osm;openstreetmap;marble;
DESKTOP
cat > "$PKG/usr/share/applications/org.kde.marble.behaim.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Marble Behaim
GenericName=Historic Globe
Comment=The Behaim globe of 1492, the oldest surviving terrestrial globe
TryExec=marble-behaim
Exec=marble-behaim
Icon=org.kde.marble.behaim
Terminal=false
StartupWMClass=org.kde.marble.behaim
Categories=Qt;KDE;Education;Geoscience;Geography;Science;Maps;
Keywords=globe;behaim;history;map;marble;
DESKTOP
cat > "$PKG/usr/share/applications/org.kde.marble.maps.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Marble Maps
GenericName=OpenStreetMap Navigation
Comment=Find your way on OpenStreetMap
TryExec=marble-maps
Exec=marble-maps %F
Icon=org.kde.marble.maps
Terminal=false
StartupWMClass=org.kde.marble.maps
Categories=Qt;KDE;Education;Geoscience;Geography;Science;Maps;
Keywords=map;maps;navigation;route;osm;openstreetmap;marble;
DESKTOP
chmod 644 "$PKG"/usr/share/applications/org.kde.marble*.desktop
The switches, and why each is set:
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON,-DKDE_INSTALL_LIBDIR=lib— The install layout every KDE application here shares (see A graphical application).-DCMAKE_INSTALL_SYSCONFDIR=/etc— Names/etcas the configuration directory, so anything the install puts there lands in/etcand not under/usr. This release installs nothing there.-DKF_SKIP_PO_PROCESSING=ON— Makeski18n_installreturn at once, so the.mocatalogs inpo/are not built. It does not reach Marble’s Qt catalogs inpoqm/or the translated handbookskdoctools_installbuilds frompo/; both are built, and kpkg’s language rule keeps them out of the package, as the image is English only (see Size and language policy).-DBUILD_QT_AND_KDE=OFF— Builds one main program, not both a plain Qt one and a KDE one. With kparts found, the one built is the KDE application insrc/apps/marble-kde, whose program ismarble; without it, the plain Qtmarble-qtwould be built instead.-DBUILD_MARBLE_APPS=ON— Builds the applications, upstream’s default. Behaim and Marble Maps are built with it whenever KConfig, KI18n and KCoreAddons are found; they need kirigami at run time.-DMOBILE=OFF,-DBUILD_TOUCH=OFF— Upstream’s defaults, named.MOBILEreplaces the desktop data set with tiles pre-cut for handheld devices, andBUILD_TOUCHbuilds the touch-friendly variant.-DBUILD_MARBLE_TOOLS=OFF,-DBUILD_MARBLE_EXAMPLES=OFF— Leave out the file-conversion tools and the C++ examples of the library; upstream’s defaults.-DBUILD_WITH_DBUS=ON— Builds the D-Bus interface of the Marble widget, upstream’s default on Linux.-DWITH_DESIGNER_PLUGIN=OFF— Leaves out the Marble widget plugin for Qt Designer, which is on by default.-DWITH_libgps=ON,-DWITH_libshp=ON,-DWITH_ZLIB=ON— Marble probes each of these with a macro that makes an optionWITH_<name>, on by default, and quietly carries on when the package is not found: without gpsd or shapelib the feature is left out, and without zlib the copy insrc/3rdparty/zlibis built instead. Named here: positions from gpsd, shapefiles through shapelib, and the system zlib. The loop after configure checks that gpsd’s and shapelib’s libraries,protocand KRunner were found, so a missing one fails the build instead of shipping a Marble without it.-DWITH_Phonon4Qt6=OFF— No Phonon, which gives the routing plugin spoken turn instructions.-DWITH_Plasma=ON— Searches for libplasma, upstream’s default, named;-DCMAKE_REQUIRE_FIND_PACKAGE_Plasma=ONmakes it a requirement. With it Marble installs the World Clock widget and the World Map wallpaper, both QML packages over Marble’s own QML module, whichsrc/plasmaotherwise skips without an error.-DWITH_libwlocate=OFF— No position from nearby WLAN networks through libwlocate, which is not a port.
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/marble, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf marble-26.08.2-1.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/marble, and runs the triggers its paths call for.
Contents
Installed programs: marble, marble-behaim, marble-maps.
Installed libraries: libastro.so, libmarblewidget-qt6.so.
Installed directories: /usr/include/astro, /usr/include/marble, /usr/lib/cmake/Astro, /usr/lib/cmake/Marble, /usr/lib/marble, /usr/lib/qt6/qml/org/kde/marble, /usr/share/doc/HTML/en/marble, /usr/share/kxmlgui5/marble, /usr/share/licenses/marble, /usr/share/marble, /usr/share/plasma/plasmoids/org.kde.plasma.worldclock, /usr/share/plasma/wallpapers/org.kde.plasma.worldmap.
Notes
The KF6Runner_DIR check stands for the KRunner plugin, which looks up places and coordinates typed into KRunner and opens them in Marble. src/plasmarunner builds it only when krunner is found, through the same quiet macro as the options above, so no CMAKE_REQUIRE_FIND_PACKAGE_ switch reaches it.
The protoc check stands for the OpenStreetMap PBF reader, which Marble builds only when protobuf is found, with abseil-cpp beside it in depends.
Behaim and Marble Maps install their icons only as SVG. build.sh renders each with rsvg-convert to 48, 128 and 256 pixel hicolor PNGs under the same name. The [ -f … ] check before that fails the build if the main program’s own PNG icon is missing.
All three of upstream’s desktop entries are replaced by ones that add StartupWMClass. KAboutData gives each program its desktop file name, and so its Wayland app_id: org.kde.marble for the globe, and org.kde.marble.behaim and org.kde.marble.maps for the two that set theirs explicitly. The globe’s entry keeps the geo: and worldwind: link handlers.