summaryrefslogtreecommitdiff
path: root/media-libs/zita-resampler
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-01-31 17:48:50 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-01-31 17:48:50 +0000
commit88e6368ac393fb69b358b60fcedf125f4724172f (patch)
treef2511a593c9c60c29d08b5d8f9684d2666bc20b4 /media-libs/zita-resampler
parent0c7c7c833ab740636f5a76d53ebe5bb6e0e793a8 (diff)
gentoo auto-resync : 31:01:2024 - 17:48:49
Diffstat (limited to 'media-libs/zita-resampler')
-rw-r--r--media-libs/zita-resampler/Manifest5
-rw-r--r--media-libs/zita-resampler/files/zita-resampler-1.11.2-makefile.patch86
-rw-r--r--media-libs/zita-resampler/zita-resampler-1.10.1.ebuild11
-rw-r--r--media-libs/zita-resampler/zita-resampler-1.11.2.ebuild61
4 files changed, 159 insertions, 4 deletions
diff --git a/media-libs/zita-resampler/Manifest b/media-libs/zita-resampler/Manifest
index 836081276a0b..64dad68721e9 100644
--- a/media-libs/zita-resampler/Manifest
+++ b/media-libs/zita-resampler/Manifest
@@ -1,7 +1,10 @@
AUX zita-resampler-1.10.1-makefile.patch 3151 BLAKE2B 3edcbfaf2067f8bb47d581d57403f02fd231c38ee472d374dd5d7c7f6308f8ee12d0203453a07f8114ed63c5732f09e0f491b173bb5a23a9a3c095ed5a73b2a6 SHA512 8207bc5d7411f934c3de9d21f2c02a9aafc7c6a2d5c89acdc245c16575d3e309251b811a0b5c69cf1f5604de103135a0af58ad0ef4881cc82c45145b60a27e7c
+AUX zita-resampler-1.11.2-makefile.patch 2801 BLAKE2B ea35286db076d440bec9062725f50e0136d88f9edba85314d30b135f6556ade0eaff770492b90608568f04fcdf26030884fb64a6485093809852e1706ea3e8f9 SHA512 7a351e0a1251198ee60abec9fec464a26197592af3783442d3a995205eba1cd5c41902d4196e5b4bf91045844050dc0e4f1d37ccfa05fece789309e7fbbf874e
AUX zita-resampler-1.8.0-makefile.patch 3222 BLAKE2B d13a3e6b2beeb6eb4b440f68431d7956cf66774e50549f8a7e8d6351d370778b5c3b75c98880a1260f2ac98b812f1fc51cf97f7f86d38ebf7f147714cd3e7b1d SHA512 4487230e87df2b165abb6e59fad6929fecc72c44509a60162976d5d1b54a2a584f04713c7f8cf77e9792213495656eeb45606c330d3c16be05084d4429cc9f84
DIST zita-resampler-1.10.1.tar.xz 118800 BLAKE2B b8871899b7e6cac9b46df3c45c5bb1d8e9c9edd41bcbc5944098d9c4eee2ff4e4d216f97b3bfa96ac43082b5333de26201d6cba9eaa152efd20e8c5017478391 SHA512 ba95286b0744df393194f4f94a8aad62f6c088cf80f6be71482ed55beef6503a9bab6644f2565b69002247611fcf0fb6561fc0072578466a0133311721b43cf5
+DIST zita-resampler-1.11.2.tar.xz 123452 BLAKE2B 627b309b38b238902b1cad2cb0963d0182f8f4cc4bc72efcd2b9ecc9810f019968c141e31ffb94110e8c4ca781e1c57b7d3393a3d4699b3f90873958b34ce47c SHA512 1598c9ead4bf858d3a11677c9512932077e1d0b83588682eba402820936fa1cfc5fe1112abbecd945469b4ae2f7a6f59938a5fbb0fdd79de3b0a3a73703b03dd
DIST zita-resampler-1.8.0.tar.bz2 131161 BLAKE2B 1ba5d255fff9c66e18e6177bc7e48a4710fdf54f58c07f162f8c8801f4f449b22dea9922645e7e33b70e07739c2b381176714e704f9840305f194f3c23d66de2 SHA512 adf1f465ac09104be5a02c1cf0f052a44b4c1a448312f3aca016a889e98cfcdebfded38f60300ad85d18ae03eadca7e8e95efb2875267bc36435ccfac881a8e7
-EBUILD zita-resampler-1.10.1.ebuild 1025 BLAKE2B d19f9b949e38dba83a33b529486fc6fb5f68b8a9959de3a5361787a3f12359462dfc60e046954dab76f156c72056437840544eb37743ca56cf1890120b1af398 SHA512 a2677cb0189d94c73724e421e0e6676192daf5f415a620003f10fb45ffab3f452a55ff7628191f75c9b265af79ce8b1d5393243edd8088db6544c3dfceb5c0df
+EBUILD zita-resampler-1.10.1.ebuild 1303 BLAKE2B 30f1c7375434cfe33b90a18ca66d61491aaec86591a8ff2d51eb736d5dfc9d582fc728c0686072dc054a152afe48e0a7fb259ae132f64be2c040d599dc5eedcb SHA512 3fe0c54010873db19b834514980601759fed973527b937a5356461c3fa5d2ae7defcb8c0af086b52c237dd2264930918e551123ee290eeb976fe176ae9cc5210
+EBUILD zita-resampler-1.11.2.ebuild 1645 BLAKE2B 64f0464b822b72094a2bcffdb1070c1b8231aba63051075a5b308648d763c20ef322529d8d267f355885da7ffd1ac54920e3f8de76227cb9ee63d7179e77722b SHA512 90c313cf03a16a10ad463f34b481a32d861bcfe0caabe9cdf8839a44dfc37fe786d8db351485de9d98d7de63008c66df7dcd01b5d121ef66f0374eb392f33a8d
EBUILD zita-resampler-1.8.0.ebuild 1018 BLAKE2B 881c46d599d4bb9ea758679d4b1eed290831f8ea0d1106171ab324f61349439dd473721ece5dcef400831bc1bd8fc2482f1d03d918b3acb15c9e808bb82bdb44 SHA512 fad9b80ef572da4550353a0dda708d5883d79a85998bf985191c84b0839d40a820d873c93ddac4e47175aead0b229b6eaf606164d6b2c051213177e0c25edbc0
MISC metadata.xml 723 BLAKE2B cda1bf2299fd0da9f05d2d71309a48f50ce45347c7665f390da134e1a406bb4f0bcb241105e590f4274bde1e416b320b841eea3733296ff13bda4b15cd7e58f1 SHA512 3f6939e3e6b3c66e1951dd1ce01b448dafc5528466a9cd1d51f5d12c3508c86ceb0c0960fea031e2e2ed839ddabb260dc2ae2b4921f7b17914edc930708f1a78
diff --git a/media-libs/zita-resampler/files/zita-resampler-1.11.2-makefile.patch b/media-libs/zita-resampler/files/zita-resampler-1.11.2-makefile.patch
new file mode 100644
index 000000000000..a83c2a70db72
--- /dev/null
+++ b/media-libs/zita-resampler/files/zita-resampler-1.11.2-makefile.patch
@@ -0,0 +1,86 @@
+--- a/apps/Makefile 2023-02-17 12:27:32.000000000 +0300
++++ b/apps/Makefile 2023-02-19 15:19:08.513618954 +0300
+@@ -23,18 +23,17 @@ BINDIR ?= $(PREFIX)/bin
+ MANDIR ?= /usr/share/man/man1
+
+ VERSION = 1.10.1
+-CPPFLAGS += -MMD -MP -DVERSION=\"$(VERSION)\"
+-CXXFLAGS += -O2 -ffast-math -Wall
+-CXXFLAGS += -march=native
++CPPFLAGS += -MMD -MP -DVERSION=\"$(VERSION)\" -I ../source
++CXXFLAGS += -ffast-math -Wall
+
+
+-all: zresample zretune zresample.1.gz zretune.1.gz
++all: zresample zretune
+
+
+ ZRESAMPLE_O = zresample.o audiofile.o dither.o
+ zresample: LDLIBS += -lzita-resampler -lsndfile -lrt
+ zresample: $(ZRESAMPLE_O)
+- $(CXX) $(LDFLAGS) -o $@ $(ZRESAMPLE_O) $(LDLIBS)
++ $(CXX) -L ../source $(LDFLAGS) -o $@ $(ZRESAMPLE_O) $(LDLIBS)
+ $(ZRESAMPLE_O):
+ -include $(ZRESAMPLE_O:%.o=%.d)
+
+@@ -42,31 +41,24 @@ $(ZRESAMPLE_O):
+ ZRETUNE_O = zretune.o audiofile.o dither.o
+ zretune: LDLIBS += -lzita-resampler -lsndfile -lrt
+ zretune: $(ZRETUNE_O)
+- $(CXX) $(LDFLAGS) -o $@ $(ZRETUNE_O) $(LDLIBS)
++ $(CXX) -L ../source $(LDFLAGS) -o $@ $(ZRETUNE_O) $(LDLIBS)
+ $(ZRETUNE_O):
+ -include $(ZRETUNE_O:%.o=%.d)
+
+
+-zresample.1.gz: zresample.1
+- gzip -c zresample.1 > zresample.1.gz
+-
+-zretune.1.gz: zretune.1
+- gzip -c zretune.1 > zretune.1.gz
+-
+-
+ install: all
+ install -d $(DESTDIR)$(BINDIR)
+ install -d $(DESTDIR)$(MANDIR)
+ install -m 755 zresample $(DESTDIR)$(BINDIR)
+ install -m 755 zretune $(DESTDIR)$(BINDIR)
+- install -m 644 zresample.1.gz $(DESTDIR)$(MANDIR)
+- install -m 644 zretune.1.gz $(DESTDIR)$(MANDIR)
++ install -m 644 zresample.1 $(DESTDIR)$(MANDIR)
++ install -m 644 zretune.1 $(DESTDIR)$(MANDIR)
+
+ uninstall:
+ /bin/rm -f $(DESTDIR)$(BINDIR)/zresample
+ /bin/rm -f $(DESTDIR)$(BINDIR)/zretune
+- /bin/rm -f $(DESTDIR)$(MANDIR)/zresample.1.gz
+- /bin/rm -f $(DESTDIR)$(MANDIR)/zretune.1.gz
++ /bin/rm -f $(DESTDIR)$(MANDIR)/zresample.1
++ /bin/rm -f $(DESTDIR)$(MANDIR)/zretune.1
+
+ clean:
+ /bin/rm -f *~ *.o *.a *.d *.so *.gz zresample zretune
+--- a/source/Makefile 2023-02-17 12:27:32.000000000 +0300
++++ b/source/Makefile 2023-02-19 15:07:48.327102241 +0300
+@@ -31,10 +31,7 @@ VERSION = $(MAJVERS).$(MINVERS)
+ DISTDIR = zita-resampler-$(VERSION)
+
+ CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
+-CPPFLAGS += -DENABLE_SSE2
+-#CPPFLAGS += -DENABLE_NEON
+-CXXFLAGS += -Wall -fPIC -O2 -ffast-math
+-CXXFLAGS += -march=native
++CXXFLAGS += -Wall -fPIC -ffast-math
+ LDFLAGS +=
+ LDLIBS +=
+
+@@ -49,6 +47,9 @@ ZITA-RESAMPLER_H = zita-resampler/resamp
+ zita-resampler/vresampler.h zita-resampler/cresampler.h
+
+
++$(ZITA-RESAMPLER_SO): $(ZITA-RESAMPLER_MIN)
++ ln -sf $(ZITA-RESAMPLER_MIN) $(ZITA-RESAMPLER_SO)
++
+ $(ZITA-RESAMPLER_MIN): $(ZITA-RESAMPLER_O)
+ $(CXX) -shared $(LDFLAGS) -Wl,-soname,$(ZITA-RESAMPLER_MAJ) -o $(ZITA-RESAMPLER_MIN) $(ZITA-RESAMPLER_O) $(ZITA-RESAMPLER_DEP)
+
diff --git a/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild b/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild
index 2e8977814e6c..7e35d5a6f7bb 100644
--- a/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild
+++ b/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -16,7 +16,6 @@ IUSE="cpu_flags_x86_sse2 tools"
RDEPEND="tools? ( media-libs/libsndfile )"
DEPEND="${RDEPEND}"
-BDEPEND=""
HTML_DOCS="docs/."
@@ -24,8 +23,14 @@ PATCHES=( "${FILESDIR}"/${PN}-1.10.1-makefile.patch )
src_compile() {
tc-export CXX
+ # Code paths that uses intrinsics are not properly guarded by symbol checks
if use cpu_flags_x86_sse2 ; then
- append-cppflags "-DENABLE_SSE2"
+ if tc-cpp-is-true "defined(__SSE2__)" ${CFLAGS} ${CXXFLAGS} ; then
+ append-cppflags "-DENABLE_SSE2"
+ else
+ ewarn "SSE2 support has been disabled automatically because the"
+ ewarn "compiler does not support corresponding intrinsics"
+ fi
fi
emake -C source
diff --git a/media-libs/zita-resampler/zita-resampler-1.11.2.ebuild b/media-libs/zita-resampler/zita-resampler-1.11.2.ebuild
new file mode 100644
index 000000000000..f10622423cf7
--- /dev/null
+++ b/media-libs/zita-resampler/zita-resampler-1.11.2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="C++ library for real-time resampling of audio signals"
+HOMEPAGE="http://kokkinizita.linuxaudio.org/linuxaudio/"
+SRC_URI="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${P}.tar.xz"
+
+LICENSE="GPL-3+"
+SLOT="0/1"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="cpu_flags_arm_neon cpu_flags_x86_sse2 tools"
+
+RDEPEND="tools? ( media-libs/libsndfile )"
+DEPEND="${RDEPEND}"
+
+HTML_DOCS="docs/."
+
+PATCHES=( "${FILESDIR}"/${PN}-1.11.2-makefile.patch )
+
+src_compile() {
+ tc-export CXX
+ # Code paths that uses intrinsics are not properly guarded by symbol checks
+ if use cpu_flags_x86_sse2 ; then
+ if tc-cpp-is-true "defined(__SSE2__)" ${CFLAGS} ${CXXFLAGS} ; then
+ append-cppflags "-DENABLE_SSE2"
+ else
+ ewarn "SSE2 support has been disabled automatically because the"
+ ewarn "compiler does not support corresponding intrinsics"
+ fi
+ elif use cpu_flags_arm_neon ; then
+ if tc-cpp-is-true "defined(__ARM_NEON__)" ${CFLAGS} ${CXXFLAGS} ; then
+ append-cppflags "-DENABLE_NEON"
+ else
+ ewarn "NEON support has been disabled automatically because the"
+ ewarn "compiler does not support corresponding intrinsics"
+ fi
+ fi
+
+ emake -C source
+ if use tools; then
+ emake -C apps
+ fi
+}
+
+src_install() {
+ local myemakeargs=(
+ DESTDIR="${D}"
+ PREFIX="${EPREFIX}/usr"
+ LIBDIR="${EPREFIX}"/usr/$(get_libdir)
+ )
+ emake -C source "${myemakeargs[@]}" install
+ if use tools; then
+ emake -C apps "${myemakeargs[@]}" install
+ fi
+
+ einstalldocs
+}