1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

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)
This commit is contained in:
Daniel Engberg 2023-02-20 15:46:23 +01:00
parent 06d5cbc569
commit 26141c14cb
4 changed files with 13 additions and 19 deletions

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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