From 60679bdad1ac70f44b394aab4e9e79f043adf91d Mon Sep 17 00:00:00 2001 From: Adolf Belka Date: Sun, 11 May 2025 12:13:03 +0200 Subject: [PATCH] soxr: Update CMakeLists.txt with cmake min version - The last update and commit on this package was 7 years ago so unlikely that there will be an update for this. - An issue has been raised on the github site but as none of the other raised issues have been dealt with in the last 7 years it looks like this repo is dead. - Will raise a separate discussion on whether this package should be left in IPFire. - Patch created to update the min cmake version to 3.10 and the build completed successfully with that. Signed-off-by: Adolf Belka Signed-off-by: Michael Tremer --- lfs/soxr | 8 +++++--- .../soxr-0.1.3-allow_build_with_cmake-4.0.x.patch | 11 +++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 src/patches/soxr-0.1.3-allow_build_with_cmake-4.0.x.patch diff --git a/lfs/soxr b/lfs/soxr index ae00ebd32..039c1b945 100644 --- a/lfs/soxr +++ b/lfs/soxr @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2018 IPFire Team # +# Copyright (C) 2007-2025 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -34,7 +34,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP)-Source TARGET = $(DIR_INFO)/$(THISAPP) PROG = soxr -PAK_VER = 1 +PAK_VER = 2 DEPS = @@ -81,9 +81,11 @@ $(subst %,%_BLAKE2,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/soxr-0.1.3-allow_build_with_cmake-4.0.x.patch cd $(DIR_APP) && mkdir -p build cd $(DIR_APP)/build && cmake -Wno-dev \ - -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release .. cd $(DIR_APP)/build && make $(MAKETUNING) cd $(DIR_APP)/build && make install @rm -rf $(DIR_APP) diff --git a/src/patches/soxr-0.1.3-allow_build_with_cmake-4.0.x.patch b/src/patches/soxr-0.1.3-allow_build_with_cmake-4.0.x.patch new file mode 100644 index 000000000..dfee3d103 --- /dev/null +++ b/src/patches/soxr-0.1.3-allow_build_with_cmake-4.0.x.patch @@ -0,0 +1,11 @@ +--- soxr-0.1.3-Source/CMakeLists.txt.orig 2018-02-23 22:39:25.000000000 +0100 ++++ soxr-0.1.3-Source/CMakeLists.txt 2025-05-08 17:35:15.017048157 +0200 +@@ -1,7 +1,7 @@ + # SoX Resampler Library Copyright (c) 2007-18 robs@users.sourceforge.net + # Licence for this file: LGPL v2.1 See LICENCE for details. + +-cmake_minimum_required (VERSION 3.1 FATAL_ERROR) ++cmake_minimum_required (VERSION 3.10 FATAL_ERROR) + + project (soxr C) + set (DESCRIPTION_SUMMARY -- 2.39.5