]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
libid3tag: Update CMakeLists.txt with min cmake version
authorAdolf Belka <adolf.belka@ipfire.org>
Sun, 11 May 2025 10:13:01 +0000 (12:13 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 12 May 2025 14:41:27 +0000 (14:41 +0000)
- Patch has been created in the libid3tag source but not yet released.
- This patch can be removed when the next version of libid3tag is released.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/libid3tag
src/patches/libid3tag-0.16.3-allow_build_with_cmake-4.0.x.patch [new file with mode: 0644]

index b7f1ff19de7c07b7cf0d8938abd9c56e5a032dee..4cace7a745b5b4c7aaaf2e6f1965dfdd22d366a0 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2024  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)/$(PROG)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = libid3tag
-PAK_VER    = 4
+PAK_VER    = 5
 
 DEPS       =
 
@@ -81,10 +81,11 @@ $(subst %,%_BLAKE2,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/libid3tag-0.16.3-allow_build_with_cmake-4.0.x.patch
        $(UPDATE_AUTOMAKE)
        cd $(DIR_APP) && mkdir build
-       cd $(DIR_APP)/build && cmake ..         \
-               -DCMAKE_INSTALL_PREFIX=/usr
+       cd $(DIR_APP)/build && cmake .. \
+                               -DCMAKE_INSTALL_PREFIX=/usr
        cd $(DIR_APP)/build && make $(MAKETUNING)
        cd $(DIR_APP)/build && make install
        @rm -rf $(DIR_APP)
diff --git a/src/patches/libid3tag-0.16.3-allow_build_with_cmake-4.0.x.patch b/src/patches/libid3tag-0.16.3-allow_build_with_cmake-4.0.x.patch
new file mode 100644 (file)
index 0000000..9a8e11e
--- /dev/null
@@ -0,0 +1,8 @@
+--- libid3tag/CMakeLists.txt.orig      2023-09-24 03:52:54.000000000 +0200
++++ libid3tag/CMakeLists.txt   2025-05-08 17:22:58.411633461 +0200
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.1.0)
++cmake_minimum_required(VERSION 3.10)
+ project(id3tag VERSION 0.16.3)
+ option(BUILD_SHARED_LIBS "Build dynamic library" ON)