]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
soxr: Update CMakeLists.txt with cmake min version
authorAdolf Belka <adolf.belka@ipfire.org>
Sun, 11 May 2025 10:13:03 +0000 (12:13 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 12 May 2025 14:41:27 +0000 (14:41 +0000)
- 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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/soxr
src/patches/soxr-0.1.3-allow_build_with_cmake-4.0.x.patch [new file with mode: 0644]

index ae00ebd325eaf778d791bb297c30e99a5a47c25c..039c1b945637cbcadee4a7bf5475d74c025224f5 100644 (file)
--- a/lfs/soxr
+++ b/lfs/soxr
@@ -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)
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 (file)
index 0000000..dfee3d1
--- /dev/null
@@ -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