git: 5b490b6045ac - main - audio/py-samplerate: update 0.2.1 → 0.2.4

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 02 Jun 2026 18:16:10 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5b490b6045ac5765d27e124e7421718d0ded8ffa

commit 5b490b6045ac5765d27e124e7421718d0ded8ffa
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-02 17:58:40 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-02 18:15:59 +0000

    audio/py-samplerate: update 0.2.1 → 0.2.4
---
 audio/py-samplerate/Makefile                   |  5 +++--
 audio/py-samplerate/distinfo                   |  6 +++---
 audio/py-samplerate/files/patch-CMakeLists.txt | 14 +++++++-------
 3 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/audio/py-samplerate/Makefile b/audio/py-samplerate/Makefile
index e9a917859212..a9f4a7e1d895 100644
--- a/audio/py-samplerate/Makefile
+++ b/audio/py-samplerate/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	samplerate
-DISTVERSION=	0.2.1
-PORTREVISION=	2
+DISTVERSION=	0.2.4
 CATEGORIES=	audio
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -31,4 +30,6 @@ do-install:
 	${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 	${INSTALL_LIB} ${BUILD_WRKSRC}/samplerate${PYTHON_TAG}.so ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
+# tests as of 0.2.4: 134 passed
+
 .include <bsd.port.mk>
diff --git a/audio/py-samplerate/distinfo b/audio/py-samplerate/distinfo
index a0725985f378..5e5ff57ed681 100644
--- a/audio/py-samplerate/distinfo
+++ b/audio/py-samplerate/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1714760637
-SHA256 (samplerate-0.2.1.tar.gz) = 464d3574412024184fb7428ecbaa1b2e207bddf5fbc10a5d9ddc3fc1c7b7ab1e
-SIZE (samplerate-0.2.1.tar.gz) = 21494
+TIMESTAMP = 1780422893
+SHA256 (samplerate-0.2.4.tar.gz) = c44dcb6fe680246f8f36588ba1f0fc7a0c5fbce710ad5e9b3812d88e8c39ac7d
+SIZE (samplerate-0.2.4.tar.gz) = 22066
diff --git a/audio/py-samplerate/files/patch-CMakeLists.txt b/audio/py-samplerate/files/patch-CMakeLists.txt
index 7f822e90d3d4..bcb8bd13c1f0 100644
--- a/audio/py-samplerate/files/patch-CMakeLists.txt
+++ b/audio/py-samplerate/files/patch-CMakeLists.txt
@@ -1,7 +1,7 @@
---- CMakeLists.txt.orig	2024-01-23 23:51:19 UTC
+--- CMakeLists.txt.orig	2026-03-22 18:12:56 UTC
 +++ CMakeLists.txt
-@@ -11,7 +11,9 @@ cmake_policy(SET CMP0094 NEW)
- cmake_policy(SET CMP0094 NEW)
+@@ -9,7 +9,9 @@ set(PYBIND11_FINDPYTHON ON)
+ set(PYBIND11_FINDPYTHON ON)
  
  # adds the external dependencies
 -add_subdirectory(external)
@@ -11,16 +11,16 @@
  
  pybind11_add_module(python-samplerate src/samplerate.cpp)
  
-@@ -25,7 +27,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR
+@@ -23,7 +25,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR
  if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR
      CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR
      (CMAKE_CXX_COMPILER_ID MATCHES "Intel" AND NOT WIN32))
--    target_compile_options(python-samplerate PRIVATE -std=c++14 -O3 -Wall -Wextra)
-+    target_compile_options(python-samplerate PRIVATE -std=c++14 -Wall -Wextra)
+-    target_compile_options(python-samplerate PRIVATE -std=c++14 -O3 -Wall -Wextra -fPIC)
++    target_compile_options(python-samplerate PRIVATE -std=c++14 -Wall -Wextra -fPIC)
  endif()
  
  ### stick the package and libsamplerate version into the module
-@@ -43,4 +45,9 @@ set_target_properties(
+@@ -41,4 +43,9 @@ set_target_properties(
          LINKER_LANGUAGE C
      )