git: 17e60871409c - main - audio/libsoxr: fix build with cmake 4
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 13 Sep 2026 11:20:47 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=17e60871409cf566c34fa2881f74d97c42c2423c
commit 17e60871409cf566c34fa2881f74d97c42c2423c
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-09-11 15:33:54 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-09-13 11:18:33 +0000
audio/libsoxr: fix build with cmake 4
- convert static REINPLACE_CMD into patch file as per policy
Approved by: portmgr (build fix blanket)
Event: EuroBSDcon Devsummit 2026
---
audio/libsoxr/Makefile | 6 ------
audio/libsoxr/files/patch-CMakeLists.txt | 28 ++++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 6 deletions(-)
diff --git a/audio/libsoxr/Makefile b/audio/libsoxr/Makefile
index ae97f154fd78..6027f1eb868d 100644
--- a/audio/libsoxr/Makefile
+++ b/audio/libsoxr/Makefile
@@ -51,10 +51,4 @@ PFFFT_CMAKE_ON= -DWITH_PFFFT:BOOL=ON
PFFFT_CMAKE_OFF= -DWITH_PFFFT:BOOL=OFF
PFFFT_IMPLIES= SIMD
-post-patch:
- @${GREP} -El 'SOURCE_DIR}/LICENCE|AVCODEC_INCLUDE_DIRS' \
- ${WRKSRC}/CMakeLists.txt | ${XARGS} ${REINPLACE_CMD} \
- -e '/$${CMAKE_CURRENT_SOURCE_DIR}\/LICENCE/d' \
- -e 's/AVCODEC_INCLUDE_DIRS/AVCODEC_INCLUDES/'
-
.include <bsd.port.mk>
diff --git a/audio/libsoxr/files/patch-CMakeLists.txt b/audio/libsoxr/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..a72b92afba6b
--- /dev/null
+++ b/audio/libsoxr/files/patch-CMakeLists.txt
@@ -0,0 +1,28 @@
+--- CMakeLists.txt.orig 2018-02-23 21:39:25 UTC
++++ CMakeLists.txt
+@@ -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.5 FATAL_ERROR)
+
+ project (soxr C)
+ set (DESCRIPTION_SUMMARY
+@@ -129,7 +129,7 @@ if (WITH_AVFFT)
+ if (WITH_AVFFT)
+ find_package (LibAVCodec REQUIRED)
+ if (AVCODEC_FOUND)
+- include_directories (${AVCODEC_INCLUDE_DIRS})
++ include_directories (${AVCODEC_INCLUDES})
+ set (LIBS ${LIBS} ${AVCODEC_LIBRARIES})
+ endif ()
+ endif ()
+@@ -268,7 +268,6 @@ install (FILES
+
+ install (FILES
+ ${CMAKE_CURRENT_SOURCE_DIR}/README
+- ${CMAKE_CURRENT_SOURCE_DIR}/LICENCE
+ ${CMAKE_CURRENT_SOURCE_DIR}/NEWS
+ DESTINATION ${DOC_INSTALL_DIR})
+