Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

284.1. kdiff3-1.12.6

Two- and three-way file and folder comparison and merge

1.12.6-1 · GPL-2.0-or-later · 5.2 SBU · 2.9 MiB, 31 files · 44_apps, 397 of 422 · ports/core/vcs/kdiff3

Homepage: https://apps.kde.org/kdiff3/

Depends on: cmake, ninja, extra-cmake-modules, boost, icu, qt6-qtbase, ki18n, kcoreaddons, kxmlgui, kwidgetsaddons, kconfig, kcrash, kio, kdoctools.

Required by: no port names it.

Sources: kdiff3-1.12.6.tar.xz (1.2 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kdiff3'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-D ENABLE_AUTO=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
test -x "$PKG/usr/bin/kdiff3"

cat > "$PKG/usr/share/applications/org.kde.kdiff3.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=KDiff3
GenericName=Diff and Merge Tool
Comment=Compare and merge two or three files or folders
TryExec=kdiff3
Exec=kdiff3 %U
Icon=kdiff3
Terminal=false
StartupWMClass=org.kde.kdiff3
X-DocPath=kdiff3/index.html
Categories=Qt;KDE;Development;RevisionControl;
Keywords=diff;merge;compare;patch;three-way;folder;kdiff3;
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.kde.kdiff3.desktop"
test -e "$PKG"/usr/share/icons/hicolor/48x48/apps/kdiff3.png

Programs: kdiff3.

Directories: /usr/share/doc/HTML/en/kdiff3, /usr/share/licenses/kdiff3.