From 26c1c9807181d7c28c9ac215b0cb8181c731d4fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20B=C3=A1nffy?= Date: Fri, 24 Oct 2025 16:39:17 +0100 Subject: [PATCH] Adds support for DNF-based Linux distributions. --- .travis/deps.sh | 9 ++++++++- README-CMake.md | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.travis/deps.sh b/.travis/deps.sh index 637ab923..f0083ea0 100755 --- a/.travis/deps.sh +++ b/.travis/deps.sh @@ -21,6 +21,13 @@ install_arch_linux() { } +install_redhat() { + sudo dnf group install -y "development-tools" + sudo dnf install -y cmake ninja-build which g++ + sudo dnf install -y SDL_ttf-devel + sudo dnf install -y freetype-devel + + install_linux() { sudo apt-get update -yqqm sudo apt-get install -ym pkg-config @@ -85,7 +92,7 @@ install_clang64() { case "$1" in - osx|macports|linux|mingw32|mingw64|ucrt64|clang64) + osx|macports|linux|mingw32|mingw64|redhat|ucrt64|clang64) install_"$1" ;; arch-linux) diff --git a/README-CMake.md b/README-CMake.md index f5778fdd..c1999378 100644 --- a/README-CMake.md +++ b/README-CMake.md @@ -91,6 +91,8 @@ Before you begin building the simulators, you need the following: apt: `sudo apt install cmake cmake-data` + dnf: `sudo dnf install cmake` + pacman: `sudo pacman install cmake` - macOS: Install `cmake` using your preferred external package management @@ -279,6 +281,12 @@ binaries. $ sudo sh .travis/deps.sh linux ``` + - Linux dnf-based distributions (e.g., Fedora, Red Hat): + + ```bash + $ sudo sh .travis/deps.sh redhat + ``` + - macOS Homebrew: ```bash