git: 26141c14cbd4 - main - audio/zita-resampler: Update to 1.10.1

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Mon, 20 Feb 2023 15:10:57 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=26141c14cbd45eb3fdb7aa9b1e38405b87570e45

commit 26141c14cbd45eb3fdb7aa9b1e38405b87570e45
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-02-20 14:46:23 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-02-20 15:10:31 +0000

    audio/zita-resampler: Update to 1.10.1
    
    Respect CXXFLAGS and make -ffast-math optional
    
    Changelog:
    * Fixed dithering of clipped signals.
    * Fixed constructor parameter range tests.
    
    PR:             269674
    Reviewed by:    Goran Mekić <meka@tilda.center> (maintainer)
---
 audio/zita-resampler/Makefile                   |  9 +++++++--
 audio/zita-resampler/distinfo                   |  6 +++---
 audio/zita-resampler/files/patch-CMakeLists.txt | 15 ++-------------
 audio/zita-resampler/pkg-plist                  |  2 +-
 4 files changed, 13 insertions(+), 19 deletions(-)

diff --git a/audio/zita-resampler/Makefile b/audio/zita-resampler/Makefile
index 0025ee20e67c..e9d8e357d7ee 100644
--- a/audio/zita-resampler/Makefile
+++ b/audio/zita-resampler/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	zita-resampler
-DISTVERSION=	1.8.0
+DISTVERSION=	1.10.1
 CATEGORIES=	audio
 MASTER_SITES=	https://kokkinizita.linuxaudio.org/linuxaudio/downloads/
 
@@ -10,9 +10,14 @@ WWW=		https://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.htm
 LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		cmake tar:bzip2
+USES=		cmake tar:xz
 USE_LDCONFIG=	yes
 
 CXXFLAGS_amd64+=	-DENABLE_SSE2
 
+OPTIONS_DEFINE=		OPTIMIZED_CFLAGS
+OPTIONS_DEFAULT=	OPTIMIZED_CFLAGS
+
+OPTIMIZED_CFLAGS_CFLAGS=	-ffast-math
+
 .include <bsd.port.mk>
diff --git a/audio/zita-resampler/distinfo b/audio/zita-resampler/distinfo
index b25efd7add0f..7b92277b326e 100644
--- a/audio/zita-resampler/distinfo
+++ b/audio/zita-resampler/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1610071104
-SHA256 (zita-resampler-1.8.0.tar.bz2) = e5744f23c54dd15b3f783a687bd879eee2a690a4545a15b49c4cf037aa464aa2
-SIZE (zita-resampler-1.8.0.tar.bz2) = 131161
+TIMESTAMP = 1676766785
+SHA256 (zita-resampler-1.10.1.tar.xz) = 71bbb1fa416578ea1ef0df39c4036d6d6a07a7e97bc24062f1d4003b491601ef
+SIZE (zita-resampler-1.10.1.tar.xz) = 118800
diff --git a/audio/zita-resampler/files/patch-CMakeLists.txt b/audio/zita-resampler/files/patch-CMakeLists.txt
index e0b62fe21278..55c67696aed8 100644
--- a/audio/zita-resampler/files/patch-CMakeLists.txt
+++ b/audio/zita-resampler/files/patch-CMakeLists.txt
@@ -6,15 +6,7 @@ Subject: [PATCH] cmake
 cmake
 
 Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
----
- CMakeLists.txt | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++
- 1 file changed, 62 insertions(+)
- create mode 100644 CMakeLists.txt
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-new file mode 100644
-index 0000000..941f1e8
---- /dev/null
+--- CMakeLists.txt.orig	2023-02-19 00:41:59 UTC
 +++ CMakeLists.txt
 @@ -0,0 +1,62 @@
 +cmake_minimum_required(VERSION 3.5)
@@ -50,7 +42,7 @@ index 0000000..941f1e8
 +list(GET VERSION_LIST 1 PROJECT_VERSION_MINOR)
 +# list(GET VERSION_LIST 2 PROJECT_VERSION_PATCH)
 +
-+set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -fPIC -ffast-math")
++set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DZITA_RESAMPLER_MAJOR_VERSION=${MAJVERS} -DZITA_RESAMPLER_MINOR_VERSION=${MINVERS} -fPIC")
 +
 +if(ZITA_RESAMPLER_ENABLE_SHARED)
 +  add_library(zita-resampler SHARED ${ZITA_RESAMPLER_SOURCES})
@@ -79,6 +71,3 @@ index 0000000..941f1e8
 +  RUNTIME DESTINATION "bin")
 +install(DIRECTORY "source/zita-resampler"
 +  DESTINATION "include")
--- 
-2.29.2
-
diff --git a/audio/zita-resampler/pkg-plist b/audio/zita-resampler/pkg-plist
index 983facdd0276..30476c81c6c6 100644
--- a/audio/zita-resampler/pkg-plist
+++ b/audio/zita-resampler/pkg-plist
@@ -4,4 +4,4 @@ include/zita-resampler/resampler.h
 include/zita-resampler/vresampler.h
 lib/libzita-resampler.so
 lib/libzita-resampler.so.1
-lib/libzita-resampler.so.1.8.0
+lib/libzita-resampler.so.1.10.1