git: ab0e78078098 - main - audio/zita-alsa-pcmi: Update 0.3.2 -> 0.4.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 31 Dec 2021 17:25:38 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=ab0e780780983fa38787c9982778db890c14dbf2 commit ab0e780780983fa38787c9982778db890c14dbf2 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2021-12-31 17:08:26 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2021-12-31 17:25:33 +0000 audio/zita-alsa-pcmi: Update 0.3.2 -> 0.4.0 Reported by: portscout --- audio/zita-alsa-pcmi/Makefile | 10 +++---- audio/zita-alsa-pcmi/distinfo | 6 ++-- .../files/patch-source_zita-alsa-pcmi.cc | 33 ++++++++++++++++++++-- 3 files changed, 38 insertions(+), 11 deletions(-) diff --git a/audio/zita-alsa-pcmi/Makefile b/audio/zita-alsa-pcmi/Makefile index 615435421c92..67efe783550b 100644 --- a/audio/zita-alsa-pcmi/Makefile +++ b/audio/zita-alsa-pcmi/Makefile @@ -1,5 +1,5 @@ PORTNAME= zita-alsa-pcmi -DISTVERSION= 0.3.2 +DISTVERSION= 0.4.0 CATEGORIES= audio MASTER_SITES= https://kokkinizita.linuxaudio.org/linuxaudio/downloads/ @@ -21,8 +21,8 @@ PLIST_FILES= bin/alsa_delay \ bin/alsa_loopback \ include/zita-alsa-pcmi.h \ lib/libzita-alsa-pcmi.so \ - lib/libzita-alsa-pcmi.so.0 \ - lib/libzita-alsa-pcmi.so.0.3.2 + lib/libzita-alsa-pcmi.so.${DISTVERSION:R:R} \ + lib/libzita-alsa-pcmi.so.${DISTVERSION} do-build: .for d in source apps @@ -40,10 +40,10 @@ do-install: post-install: @cd ${STAGEDIR}${PREFIX} && \ - (cd lib && ${RLN} libzita-alsa-pcmi.so.0.3.2 libzita-alsa-pcmi.so.0) && \ + (cd lib && ${RLN} libzita-alsa-pcmi.so.${DISTVERSION} libzita-alsa-pcmi.so.${DISTVERSION:R:R}) && \ ${STRIP_CMD} \ bin/alsa_delay \ bin/alsa_loopback \ - lib/libzita-alsa-pcmi.so.0.3.2 + lib/libzita-alsa-pcmi.so.${DISTVERSION} .include <bsd.port.mk> diff --git a/audio/zita-alsa-pcmi/distinfo b/audio/zita-alsa-pcmi/distinfo index 104b62a2ee28..a75c95e46b72 100644 --- a/audio/zita-alsa-pcmi/distinfo +++ b/audio/zita-alsa-pcmi/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1626032654 -SHA256 (zita-alsa-pcmi-0.3.2.tar.bz2) = 1a1d9f7e373032bd5702382e4c923407911f4f791c449c0c0f027a725edba789 -SIZE (zita-alsa-pcmi-0.3.2.tar.bz2) = 21480 +TIMESTAMP = 1640969540 +SHA256 (zita-alsa-pcmi-0.4.0.tar.bz2) = bd8c9f360dfb541fb60e48a713baf1e22d41b2c74c19a0fe9f2d34e72f50f1c5 +SIZE (zita-alsa-pcmi-0.4.0.tar.bz2) = 21673 diff --git a/audio/zita-alsa-pcmi/files/patch-source_zita-alsa-pcmi.cc b/audio/zita-alsa-pcmi/files/patch-source_zita-alsa-pcmi.cc index 104799869342..81cfa0fd035c 100644 --- a/audio/zita-alsa-pcmi/files/patch-source_zita-alsa-pcmi.cc +++ b/audio/zita-alsa-pcmi/files/patch-source_zita-alsa-pcmi.cc @@ -1,11 +1,38 @@ ---- source/zita-alsa-pcmi.cc.orig 2021-07-11 19:49:44 UTC +--- source/zita-alsa-pcmi.cc.orig 2021-11-26 09:24:45 UTC +++ source/zita-alsa-pcmi.cc -@@ -18,7 +18,7 @@ +@@ -18,9 +18,17 @@ // ---------------------------------------------------------------------------- --#include <endian.h> ++#if defined(__FreeBSD__) +#include <machine/endian.h> ++#else + #include <endian.h> ++#endif + #include <stdint.h> ++#if defined(__FreeBSD__) ++#include <infiniband/byteswap.h> ++#else + #include <byteswap.h> ++#endif #include <sys/time.h> #include "zita-alsa-pcmi.h" +@@ -983,7 +991,7 @@ char *Alsa_pcmi::play_floatre (const float *src, char + while (nfrm--) + { + d = *src; +- *((float *) dst) = __bswap_32 (d); ++ *((float *) dst) = bswap_32 (d); + dst += _play_step; + src += step; + } +@@ -1105,7 +1113,7 @@ const char *Alsa_pcmi::capt_floatre (const char *src, + while (nfrm--) + { + d = *((float *) src); +- *dst = __bswap_32 (d); ++ *dst = bswap_32 (d); + dst += step; + src += _capt_step; + }