public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-libs/zita-resampler/, media-libs/zita-resampler/files/
@ 2019-04-21  5:03 Georgy Yakovlev
  0 siblings, 0 replies; 6+ messages in thread
From: Georgy Yakovlev @ 2019-04-21  5:03 UTC (permalink / raw
  To: gentoo-commits

commit:     dbd7f030d482f5593d4fb1d5c4ebcaf633f3174f
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Mon Apr 15 21:22:22 2019 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Sun Apr 21 05:01:25 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbd7f030

media-libs/zita-resampler: new package

Libzita-resampler is a C++ library for resampling audio signals.
It is designed to be used within a real-time processing context,
to be fast, and to provide high-quality sample rate conversion.

Dependency of media-sound/guitarix

Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 media-libs/zita-resampler/Manifest                 |  1 +
 .../files/zita-resampler-1.6.2-makefile.patch      | 90 ++++++++++++++++++++++
 media-libs/zita-resampler/metadata.xml             | 20 +++++
 .../zita-resampler/zita-resampler-1.6.2.ebuild     | 41 ++++++++++
 4 files changed, 152 insertions(+)

diff --git a/media-libs/zita-resampler/Manifest b/media-libs/zita-resampler/Manifest
new file mode 100644
index 00000000000..60d50f605c7
--- /dev/null
+++ b/media-libs/zita-resampler/Manifest
@@ -0,0 +1 @@
+DIST zita-resampler-1.6.2.tar.bz2 125539 BLAKE2B d2e04fb5e0efbde3432ce973df59a11d2a184146d124b662712a5de2d9c243f6564899f190f7a7b68a9e01bcaab05c92b91ebcbf942473134a12a85e4e08c603 SHA512 d547419dd222c8a399d8f196efa1ec88a3f781275b696ae2fe1bb6e2fc329285affb8aace85972c304ad256becc4a155534dd5ef4ce3c57cbc9dcca0122b670c

diff --git a/media-libs/zita-resampler/files/zita-resampler-1.6.2-makefile.patch b/media-libs/zita-resampler/files/zita-resampler-1.6.2-makefile.patch
new file mode 100644
index 00000000000..29735e7729a
--- /dev/null
+++ b/media-libs/zita-resampler/files/zita-resampler-1.6.2-makefile.patch
@@ -0,0 +1,90 @@
+diff -urN zita-resampler-1.6.2.orig/apps/Makefile zita-resampler-1.6.2/apps/Makefile
+--- zita-resampler-1.6.2.orig/apps/Makefile	2018-08-24 21:41:47.000000000 +0300
++++ zita-resampler-1.6.2/apps/Makefile	2019-04-13 18:49:50.005800712 +0300
+@@ -23,18 +23,17 @@
+ MANDIR ?= /usr/share/man/man1
+ 
+ VERSION = 1.6.0
+-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.1 zretune.1
+ 
+ 
+ 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,25 +41,18 @@
+ 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 $(BINDIR)
+-	install -d $(MANDIR)
++	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
+diff -urN zita-resampler-1.6.2.orig/source/Makefile zita-resampler-1.6.2/source/Makefile
+--- zita-resampler-1.6.2.orig/source/Makefile	2018-08-24 21:41:47.000000000 +0300
++++ zita-resampler-1.6.2/source/Makefile	2019-04-13 18:49:25.936129640 +0300
+@@ -32,8 +32,7 @@
+ 
+ 
+ CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
+-CXXFLAGS += -Wall -fPIC -O2 -ffast-math
+-CXXFLAGS += -march=native
++CXXFLAGS += -Wall -fPIC -ffast-math
+ LDFLAGS += 
+ LDLIBS +=
+ 
+@@ -47,6 +46,9 @@
+ 	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)
+ 
+@@ -58,8 +60,8 @@
+ 	install -d $(DESTDIR)$(LIBDIR)
+ 	install -m 644 $(ZITA-RESAMPLER_H)   $(DESTDIR)$(INCDIR)/zita-resampler
+ 	install -m 755 $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)
+-	ldconfig
+ 	ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-RESAMPLER_SO)
++	ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-RESAMPLER_MAJ)
+ 
+ uninstall:
+ 	/bin/rm -rf $(DESTDIR)$(INCDIR)/zita-resampler

diff --git a/media-libs/zita-resampler/metadata.xml b/media-libs/zita-resampler/metadata.xml
new file mode 100644
index 00000000000..d939c6084b5
--- /dev/null
+++ b/media-libs/zita-resampler/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>alexander@tsoy.me</email>
+		<name>Alexander Tsoy</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+	<longdescription lang="en">
+		Libzita-resampler is a C++ library for resampling audio signals.
+		It is designed to be used within a real-time processing context,
+		to be fast, and to provide high-quality sample rate conversion.
+	</longdescription>
+	<use>
+		<flag name="tools">Install zresample and zretune tools</flag>
+	</use>
+</pkgmetadata>

diff --git a/media-libs/zita-resampler/zita-resampler-1.6.2.ebuild b/media-libs/zita-resampler/zita-resampler-1.6.2.ebuild
new file mode 100644
index 00000000000..754fa1dfdde
--- /dev/null
+++ b/media-libs/zita-resampler/zita-resampler-1.6.2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit 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.bz2"
+
+LICENSE="GPL-3"
+SLOT="0/1"
+KEYWORDS="~amd64"
+IUSE="tools"
+
+RDEPEND="tools? ( media-libs/libsndfile )"
+DEPEND="${RDEPEND}"
+BDEPEND=""
+
+HTML_DOCS="docs/."
+
+PATCHES=( "${FILESDIR}"/${PN}-1.6.2-makefile.patch )
+
+src_compile() {
+	tc-export CXX
+
+	emake -C source
+	if use tools; then
+		emake -C apps
+	fi
+}
+
+src_install() {
+	emake -C source DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}"/usr/$(get_libdir) install
+	if use tools; then
+		emake -C apps DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+	fi
+
+	einstalldocs
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/zita-resampler/, media-libs/zita-resampler/files/
@ 2021-01-06  9:12 Miroslav Šulc
  0 siblings, 0 replies; 6+ messages in thread
From: Miroslav Šulc @ 2021-01-06  9:12 UTC (permalink / raw
  To: gentoo-commits

commit:     ef090ee489fb4b51afefc4495df5349e0343eb44
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Tue Jan  5 17:10:49 2021 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Wed Jan  6 09:10:45 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef090ee4

media-libs/zita-resampler: Version bump to 1.8.0

Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Closes: https://github.com/gentoo/gentoo/pull/18958
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 media-libs/zita-resampler/Manifest                 |  1 +
 .../files/zita-resampler-1.8.0-makefile.patch      | 91 ++++++++++++++++++++++
 .../zita-resampler/zita-resampler-1.8.0.ebuild     | 44 +++++++++++
 3 files changed, 136 insertions(+)

diff --git a/media-libs/zita-resampler/Manifest b/media-libs/zita-resampler/Manifest
index 60d50f605c7..48a5cd2b981 100644
--- a/media-libs/zita-resampler/Manifest
+++ b/media-libs/zita-resampler/Manifest
@@ -1 +1,2 @@
 DIST zita-resampler-1.6.2.tar.bz2 125539 BLAKE2B d2e04fb5e0efbde3432ce973df59a11d2a184146d124b662712a5de2d9c243f6564899f190f7a7b68a9e01bcaab05c92b91ebcbf942473134a12a85e4e08c603 SHA512 d547419dd222c8a399d8f196efa1ec88a3f781275b696ae2fe1bb6e2fc329285affb8aace85972c304ad256becc4a155534dd5ef4ce3c57cbc9dcca0122b670c
+DIST zita-resampler-1.8.0.tar.bz2 131161 BLAKE2B 1ba5d255fff9c66e18e6177bc7e48a4710fdf54f58c07f162f8c8801f4f449b22dea9922645e7e33b70e07739c2b381176714e704f9840305f194f3c23d66de2 SHA512 adf1f465ac09104be5a02c1cf0f052a44b4c1a448312f3aca016a889e98cfcdebfded38f60300ad85d18ae03eadca7e8e95efb2875267bc36435ccfac881a8e7

diff --git a/media-libs/zita-resampler/files/zita-resampler-1.8.0-makefile.patch b/media-libs/zita-resampler/files/zita-resampler-1.8.0-makefile.patch
new file mode 100644
index 00000000000..860e199a51d
--- /dev/null
+++ b/media-libs/zita-resampler/files/zita-resampler-1.8.0-makefile.patch
@@ -0,0 +1,91 @@
+diff -urpN zita-resampler-1.8.0.orig/apps/Makefile zita-resampler-1.8.0/apps/Makefile
+--- zita-resampler-1.8.0.orig/apps/Makefile	2018-08-23 12:52:50.000000000 +0300
++++ zita-resampler-1.8.0/apps/Makefile	2021-01-05 20:27:20.816636061 +0300
+@@ -23,18 +23,17 @@ BINDIR ?= $(PREFIX)/bin
+ MANDIR ?= /usr/share/man/man1
+ 
+ VERSION = 1.6.0
+-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,25 +41,18 @@ $(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 $(BINDIR)
+-	install -d $(MANDIR)
++	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
+diff -urpN zita-resampler-1.8.0.orig/source/Makefile zita-resampler-1.8.0/source/Makefile
+--- zita-resampler-1.8.0.orig/source/Makefile	2020-12-28 23:09:24.000000000 +0300
++++ zita-resampler-1.8.0/source/Makefile	2021-01-05 20:19:47.951831754 +0300
+@@ -31,9 +31,7 @@ VERSION = $(MAJVERS).$(MINVERS)
+ DISTDIR = zita-resampler-$(VERSION)
+ 
+ CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
+-CPPFLAGS += -DENABLE_SSE2
+-CXXFLAGS += -Wall -fPIC -O2 -ffast-math
+-CXXFLAGS += -march=native
++CXXFLAGS += -Wall -fPIC -ffast-math
+ LDFLAGS += 
+ LDLIBS +=
+ 
+@@ -47,6 +45,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)
+ 
+@@ -58,8 +59,8 @@ install:	$(ZITA-RESAMPLER_MIN)
+ 	install -d $(DESTDIR)$(LIBDIR)
+ 	install -m 644 $(ZITA-RESAMPLER_H)   $(DESTDIR)$(INCDIR)/zita-resampler
+ 	install -m 755 $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)
+-	ldconfig
+ 	ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-RESAMPLER_SO)
++	ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-RESAMPLER_MAJ)
+ 
+ uninstall:
+ 	/bin/rm -rf $(DESTDIR)$(INCDIR)/zita-resampler

diff --git a/media-libs/zita-resampler/zita-resampler-1.8.0.ebuild b/media-libs/zita-resampler/zita-resampler-1.8.0.ebuild
new file mode 100644
index 00000000000..b23f3696106
--- /dev/null
+++ b/media-libs/zita-resampler/zita-resampler-1.8.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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.bz2"
+
+LICENSE="GPL-3+"
+SLOT="0/1"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="cpu_flags_x86_sse2 tools"
+
+RDEPEND="tools? ( media-libs/libsndfile )"
+DEPEND="${RDEPEND}"
+BDEPEND=""
+
+HTML_DOCS="docs/."
+
+PATCHES=( "${FILESDIR}"/${PN}-1.8.0-makefile.patch )
+
+src_compile() {
+	tc-export CXX
+	if use cpu_flags_x86_sse2 ; then
+		append-cppflags "-DENABLE_SSE2"
+	fi
+
+	emake -C source
+	if use tools; then
+		emake -C apps
+	fi
+}
+
+src_install() {
+	emake -C source DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}"/usr/$(get_libdir) install
+	if use tools; then
+		emake -C apps DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+	fi
+
+	einstalldocs
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/zita-resampler/, media-libs/zita-resampler/files/
@ 2021-02-20 10:15 Miroslav Šulc
  0 siblings, 0 replies; 6+ messages in thread
From: Miroslav Šulc @ 2021-02-20 10:15 UTC (permalink / raw
  To: gentoo-commits

commit:     60e49bfa0b34374dfc1bbd5b53a3070f8c605a64
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 20 10:15:09 2021 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sat Feb 20 10:15:22 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60e49bfa

media-libs/zita-resampler: removed obsolete 1.6.2

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 media-libs/zita-resampler/Manifest                 |  1 -
 .../files/zita-resampler-1.6.2-makefile.patch      | 90 ----------------------
 .../zita-resampler/zita-resampler-1.6.2.ebuild     | 41 ----------
 3 files changed, 132 deletions(-)

diff --git a/media-libs/zita-resampler/Manifest b/media-libs/zita-resampler/Manifest
index 48a5cd2b981..31977ffd46d 100644
--- a/media-libs/zita-resampler/Manifest
+++ b/media-libs/zita-resampler/Manifest
@@ -1,2 +1 @@
-DIST zita-resampler-1.6.2.tar.bz2 125539 BLAKE2B d2e04fb5e0efbde3432ce973df59a11d2a184146d124b662712a5de2d9c243f6564899f190f7a7b68a9e01bcaab05c92b91ebcbf942473134a12a85e4e08c603 SHA512 d547419dd222c8a399d8f196efa1ec88a3f781275b696ae2fe1bb6e2fc329285affb8aace85972c304ad256becc4a155534dd5ef4ce3c57cbc9dcca0122b670c
 DIST zita-resampler-1.8.0.tar.bz2 131161 BLAKE2B 1ba5d255fff9c66e18e6177bc7e48a4710fdf54f58c07f162f8c8801f4f449b22dea9922645e7e33b70e07739c2b381176714e704f9840305f194f3c23d66de2 SHA512 adf1f465ac09104be5a02c1cf0f052a44b4c1a448312f3aca016a889e98cfcdebfded38f60300ad85d18ae03eadca7e8e95efb2875267bc36435ccfac881a8e7

diff --git a/media-libs/zita-resampler/files/zita-resampler-1.6.2-makefile.patch b/media-libs/zita-resampler/files/zita-resampler-1.6.2-makefile.patch
deleted file mode 100644
index 29735e7729a..00000000000
--- a/media-libs/zita-resampler/files/zita-resampler-1.6.2-makefile.patch
+++ /dev/null
@@ -1,90 +0,0 @@
-diff -urN zita-resampler-1.6.2.orig/apps/Makefile zita-resampler-1.6.2/apps/Makefile
---- zita-resampler-1.6.2.orig/apps/Makefile	2018-08-24 21:41:47.000000000 +0300
-+++ zita-resampler-1.6.2/apps/Makefile	2019-04-13 18:49:50.005800712 +0300
-@@ -23,18 +23,17 @@
- MANDIR ?= /usr/share/man/man1
- 
- VERSION = 1.6.0
--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.1 zretune.1
- 
- 
- 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,25 +41,18 @@
- 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 $(BINDIR)
--	install -d $(MANDIR)
-+	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
-diff -urN zita-resampler-1.6.2.orig/source/Makefile zita-resampler-1.6.2/source/Makefile
---- zita-resampler-1.6.2.orig/source/Makefile	2018-08-24 21:41:47.000000000 +0300
-+++ zita-resampler-1.6.2/source/Makefile	2019-04-13 18:49:25.936129640 +0300
-@@ -32,8 +32,7 @@
- 
- 
- CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
--CXXFLAGS += -Wall -fPIC -O2 -ffast-math
--CXXFLAGS += -march=native
-+CXXFLAGS += -Wall -fPIC -ffast-math
- LDFLAGS += 
- LDLIBS +=
- 
-@@ -47,6 +46,9 @@
- 	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)
- 
-@@ -58,8 +60,8 @@
- 	install -d $(DESTDIR)$(LIBDIR)
- 	install -m 644 $(ZITA-RESAMPLER_H)   $(DESTDIR)$(INCDIR)/zita-resampler
- 	install -m 755 $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)
--	ldconfig
- 	ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-RESAMPLER_SO)
-+	ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-RESAMPLER_MAJ)
- 
- uninstall:
- 	/bin/rm -rf $(DESTDIR)$(INCDIR)/zita-resampler

diff --git a/media-libs/zita-resampler/zita-resampler-1.6.2.ebuild b/media-libs/zita-resampler/zita-resampler-1.6.2.ebuild
deleted file mode 100644
index af41a8918a7..00000000000
--- a/media-libs/zita-resampler/zita-resampler-1.6.2.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit 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.bz2"
-
-LICENSE="GPL-3"
-SLOT="0/1"
-KEYWORDS="amd64 arm arm64 ~ia64 ppc ppc64 sparc x86"
-IUSE="tools"
-
-RDEPEND="tools? ( media-libs/libsndfile )"
-DEPEND="${RDEPEND}"
-BDEPEND=""
-
-HTML_DOCS="docs/."
-
-PATCHES=( "${FILESDIR}"/${PN}-1.6.2-makefile.patch )
-
-src_compile() {
-	tc-export CXX
-
-	emake -C source
-	if use tools; then
-		emake -C apps
-	fi
-}
-
-src_install() {
-	emake -C source DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}"/usr/$(get_libdir) install
-	if use tools; then
-		emake -C apps DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
-	fi
-
-	einstalldocs
-}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/zita-resampler/, media-libs/zita-resampler/files/
@ 2023-02-26  7:53 Joonas Niilola
  0 siblings, 0 replies; 6+ messages in thread
From: Joonas Niilola @ 2023-02-26  7:53 UTC (permalink / raw
  To: gentoo-commits

commit:     2c7cc9b33f6b77d08157e2b21b9e333d85634337
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Sun Feb 19 12:22:51 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Feb 26 07:53:18 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c7cc9b3

media-libs/zita-resampler: version bump to 1.10.1

Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Closes: https://github.com/gentoo/gentoo/pull/29660
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-libs/zita-resampler/Manifest                 |  1 +
 .../files/zita-resampler-1.10.1-makefile.patch     | 79 ++++++++++++++++++++++
 .../zita-resampler/zita-resampler-1.10.1.ebuild    | 44 ++++++++++++
 3 files changed, 124 insertions(+)

diff --git a/media-libs/zita-resampler/Manifest b/media-libs/zita-resampler/Manifest
index 31977ffd46dc..58795071635d 100644
--- a/media-libs/zita-resampler/Manifest
+++ b/media-libs/zita-resampler/Manifest
@@ -1 +1,2 @@
+DIST zita-resampler-1.10.1.tar.xz 118800 BLAKE2B b8871899b7e6cac9b46df3c45c5bb1d8e9c9edd41bcbc5944098d9c4eee2ff4e4d216f97b3bfa96ac43082b5333de26201d6cba9eaa152efd20e8c5017478391 SHA512 ba95286b0744df393194f4f94a8aad62f6c088cf80f6be71482ed55beef6503a9bab6644f2565b69002247611fcf0fb6561fc0072578466a0133311721b43cf5
 DIST zita-resampler-1.8.0.tar.bz2 131161 BLAKE2B 1ba5d255fff9c66e18e6177bc7e48a4710fdf54f58c07f162f8c8801f4f449b22dea9922645e7e33b70e07739c2b381176714e704f9840305f194f3c23d66de2 SHA512 adf1f465ac09104be5a02c1cf0f052a44b4c1a448312f3aca016a889e98cfcdebfded38f60300ad85d18ae03eadca7e8e95efb2875267bc36435ccfac881a8e7

diff --git a/media-libs/zita-resampler/files/zita-resampler-1.10.1-makefile.patch b/media-libs/zita-resampler/files/zita-resampler-1.10.1-makefile.patch
new file mode 100644
index 000000000000..45859759c445
--- /dev/null
+++ b/media-libs/zita-resampler/files/zita-resampler-1.10.1-makefile.patch
@@ -0,0 +1,79 @@
+diff -urpN zita-resampler-1.10.1.orig/apps/Makefile zita-resampler-1.10.1/apps/Makefile
+--- zita-resampler-1.10.1.orig/apps/Makefile	2023-02-17 12:27:32.000000000 +0300
++++ zita-resampler-1.10.1/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
+diff -urpN zita-resampler-1.10.1.orig/source/Makefile zita-resampler-1.10.1/source/Makefile
+--- zita-resampler-1.10.1.orig/source/Makefile	2023-02-17 12:27:32.000000000 +0300
++++ zita-resampler-1.10.1/source/Makefile	2023-02-19 15:07:48.327102241 +0300
+@@ -31,11 +31,9 @@ VERSION = $(MAJVERS).$(MINVERS)
+ DISTDIR = zita-resampler-$(VERSION)
+ 
+ CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
+-CPPFLAGS += -DENABLE_SSE2
+ CPPFLAGS += -DZITA_RESAMPLER_MAJOR_VERSION=$(MAJVERS)
+ CPPFLAGS += -DZITA_RESAMPLER_MINOR_VERSION=$(MINVERS)
+-CXXFLAGS += -Wall -fPIC -O2 -ffast-math
+-CXXFLAGS += -march=native
++CXXFLAGS += -Wall -fPIC -ffast-math
+ LDFLAGS += 
+ LDLIBS +=
+ 

diff --git a/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild b/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild
new file mode 100644
index 000000000000..cfb0bb30df59
--- /dev/null
+++ b/media-libs/zita-resampler/zita-resampler-1.10.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2023 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 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="cpu_flags_x86_sse2 tools"
+
+RDEPEND="tools? ( media-libs/libsndfile )"
+DEPEND="${RDEPEND}"
+BDEPEND=""
+
+HTML_DOCS="docs/."
+
+PATCHES=( "${FILESDIR}"/${PN}-1.10.1-makefile.patch )
+
+src_compile() {
+	tc-export CXX
+	if use cpu_flags_x86_sse2 ; then
+		append-cppflags "-DENABLE_SSE2"
+	fi
+
+	emake -C source
+	if use tools; then
+		emake -C apps
+	fi
+}
+
+src_install() {
+	emake -C source DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}"/usr/$(get_libdir) install
+	if use tools; then
+		emake -C apps DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+	fi
+
+	einstalldocs
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/zita-resampler/, media-libs/zita-resampler/files/
@ 2024-01-31 13:10 Joonas Niilola
  0 siblings, 0 replies; 6+ messages in thread
From: Joonas Niilola @ 2024-01-31 13:10 UTC (permalink / raw
  To: gentoo-commits

commit:     fcf9ee2d25254e1e838d83963f4e622fdbe582d4
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Mon Dec 18 03:13:01 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Jan 31 13:10:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcf9ee2d

media-libs/zita-resampler: version bump to 1.11.2

Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-libs/zita-resampler/Manifest                 |  1 +
 .../files/zita-resampler-1.11.2-makefile.patch     | 86 ++++++++++++++++++++++
 .../zita-resampler/zita-resampler-1.11.2.ebuild    | 61 +++++++++++++++
 3 files changed, 148 insertions(+)

diff --git a/media-libs/zita-resampler/Manifest b/media-libs/zita-resampler/Manifest
index 58795071635d..914e8c304d61 100644
--- a/media-libs/zita-resampler/Manifest
+++ b/media-libs/zita-resampler/Manifest
@@ -1,2 +1,3 @@
 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

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.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
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/zita-resampler/, media-libs/zita-resampler/files/
@ 2024-02-05 19:29 Arthur Zamarin
  0 siblings, 0 replies; 6+ messages in thread
From: Arthur Zamarin @ 2024-02-05 19:29 UTC (permalink / raw
  To: gentoo-commits

commit:     2e701c6e5c3fc3d631d93ccfe7fb3216b840a3de
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Sun Feb  4 23:12:59 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Feb  5 19:29:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e701c6e

media-libs/zita-resampler: Remove old

Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Closes: https://github.com/gentoo/gentoo/pull/35185
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 media-libs/zita-resampler/Manifest                 |  1 -
 .../files/zita-resampler-1.8.0-makefile.patch      | 91 ----------------------
 .../zita-resampler/zita-resampler-1.8.0.ebuild     | 44 -----------
 3 files changed, 136 deletions(-)

diff --git a/media-libs/zita-resampler/Manifest b/media-libs/zita-resampler/Manifest
index 914e8c304d61..1fcdc651787a 100644
--- a/media-libs/zita-resampler/Manifest
+++ b/media-libs/zita-resampler/Manifest
@@ -1,3 +1,2 @@
 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

diff --git a/media-libs/zita-resampler/files/zita-resampler-1.8.0-makefile.patch b/media-libs/zita-resampler/files/zita-resampler-1.8.0-makefile.patch
deleted file mode 100644
index 860e199a51de..000000000000
--- a/media-libs/zita-resampler/files/zita-resampler-1.8.0-makefile.patch
+++ /dev/null
@@ -1,91 +0,0 @@
-diff -urpN zita-resampler-1.8.0.orig/apps/Makefile zita-resampler-1.8.0/apps/Makefile
---- zita-resampler-1.8.0.orig/apps/Makefile	2018-08-23 12:52:50.000000000 +0300
-+++ zita-resampler-1.8.0/apps/Makefile	2021-01-05 20:27:20.816636061 +0300
-@@ -23,18 +23,17 @@ BINDIR ?= $(PREFIX)/bin
- MANDIR ?= /usr/share/man/man1
- 
- VERSION = 1.6.0
--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,25 +41,18 @@ $(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 $(BINDIR)
--	install -d $(MANDIR)
-+	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
-diff -urpN zita-resampler-1.8.0.orig/source/Makefile zita-resampler-1.8.0/source/Makefile
---- zita-resampler-1.8.0.orig/source/Makefile	2020-12-28 23:09:24.000000000 +0300
-+++ zita-resampler-1.8.0/source/Makefile	2021-01-05 20:19:47.951831754 +0300
-@@ -31,9 +31,7 @@ VERSION = $(MAJVERS).$(MINVERS)
- DISTDIR = zita-resampler-$(VERSION)
- 
- CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
--CPPFLAGS += -DENABLE_SSE2
--CXXFLAGS += -Wall -fPIC -O2 -ffast-math
--CXXFLAGS += -march=native
-+CXXFLAGS += -Wall -fPIC -ffast-math
- LDFLAGS += 
- LDLIBS +=
- 
-@@ -47,6 +45,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)
- 
-@@ -58,8 +59,8 @@ install:	$(ZITA-RESAMPLER_MIN)
- 	install -d $(DESTDIR)$(LIBDIR)
- 	install -m 644 $(ZITA-RESAMPLER_H)   $(DESTDIR)$(INCDIR)/zita-resampler
- 	install -m 755 $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)
--	ldconfig
- 	ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-RESAMPLER_SO)
-+	ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-RESAMPLER_MAJ)
- 
- uninstall:
- 	/bin/rm -rf $(DESTDIR)$(INCDIR)/zita-resampler

diff --git a/media-libs/zita-resampler/zita-resampler-1.8.0.ebuild b/media-libs/zita-resampler/zita-resampler-1.8.0.ebuild
deleted file mode 100644
index 3a4a47d9653e..000000000000
--- a/media-libs/zita-resampler/zita-resampler-1.8.0.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-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.bz2"
-
-LICENSE="GPL-3+"
-SLOT="0/1"
-KEYWORDS="amd64 arm arm64 ~ia64 ~loong ppc ppc64 ~riscv sparc x86"
-IUSE="cpu_flags_x86_sse2 tools"
-
-RDEPEND="tools? ( media-libs/libsndfile )"
-DEPEND="${RDEPEND}"
-BDEPEND=""
-
-HTML_DOCS="docs/."
-
-PATCHES=( "${FILESDIR}"/${PN}-1.8.0-makefile.patch )
-
-src_compile() {
-	tc-export CXX
-	if use cpu_flags_x86_sse2 ; then
-		append-cppflags "-DENABLE_SSE2"
-	fi
-
-	emake -C source
-	if use tools; then
-		emake -C apps
-	fi
-}
-
-src_install() {
-	emake -C source DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}"/usr/$(get_libdir) install
-	if use tools; then
-		emake -C apps DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
-	fi
-
-	einstalldocs
-}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-05 19:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-26  7:53 [gentoo-commits] repo/gentoo:master commit in: media-libs/zita-resampler/, media-libs/zita-resampler/files/ Joonas Niilola
  -- strict thread matches above, loose matches on Subject: below --
2024-02-05 19:29 Arthur Zamarin
2024-01-31 13:10 Joonas Niilola
2021-02-20 10:15 Miroslav Šulc
2021-01-06  9:12 Miroslav Šulc
2019-04-21  5:03 Georgy Yakovlev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox