[8/9] soxr: Update CMakeLists.txt with cmake min version
Commit Message
- 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 <adolf.belka@ipfire.org>
---
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
@@ -1,7 +1,7 @@
###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
+# Copyright (C) 2007-2025 IPFire Team <info@ipfire.org> #
# #
# 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)
new file mode 100644
@@ -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