From b6896ef5e9e45e700c3765032011eb7b853096b6 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 1/3] 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 a510c5263..5e2639f81 100755 --- a/.travis/deps.sh +++ b/.travis/deps.sh @@ -20,6 +20,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 @@ -84,7 +91,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 f5778fdd8..c1999378b 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 From 09b5db4d3b1de7edd407f1f1cea6ca875478328a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20B=C3=A1nffy?= Date: Fri, 24 Oct 2025 16:47:23 +0100 Subject: [PATCH 2/3] Fix missing "}" --- .travis/deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis/deps.sh b/.travis/deps.sh index 5e2639f81..534ad39cb 100755 --- a/.travis/deps.sh +++ b/.travis/deps.sh @@ -25,7 +25,7 @@ install_redhat() { 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 From caa98e99d22631f82067661323b53b9e6a35b6bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20B=C3=A1nffy?= Date: Sun, 26 Oct 2025 17:16:21 +0000 Subject: [PATCH 3/3] Use SDL2 instead of SDL --- .travis/deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis/deps.sh b/.travis/deps.sh index 534ad39cb..c89737584 100755 --- a/.travis/deps.sh +++ b/.travis/deps.sh @@ -23,7 +23,7 @@ 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 SDL2_ttf-devel sudo dnf install -y freetype-devel }