diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-28 09:54:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-28 09:54:45 +0100 |
commit | b7ebc951da8800f711142f69d9d958bde67a112d (patch) | |
tree | e318514216845acb8f2e49fff7a5cba4027e9d91 /media-libs/zita-resampler | |
parent | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (diff) |
gentoo resync : 28.04.2019
Diffstat (limited to 'media-libs/zita-resampler')
-rw-r--r-- | media-libs/zita-resampler/Manifest | 4 | ||||
-rw-r--r-- | media-libs/zita-resampler/files/zita-resampler-1.6.2-makefile.patch | 90 | ||||
-rw-r--r-- | media-libs/zita-resampler/metadata.xml | 20 | ||||
-rw-r--r-- | media-libs/zita-resampler/zita-resampler-1.6.2.ebuild | 41 |
4 files changed, 155 insertions, 0 deletions
diff --git a/media-libs/zita-resampler/Manifest b/media-libs/zita-resampler/Manifest new file mode 100644 index 000000000000..dac695688c08 --- /dev/null +++ b/media-libs/zita-resampler/Manifest @@ -0,0 +1,4 @@ +AUX zita-resampler-1.6.2-makefile.patch 3036 BLAKE2B 595ebbae53d4c0ec344d02f4602eec599e9d301a308384f3a4d3c99a9e64111f7b183ccee92c9f7e069a00275f3304712b9644409bbe23030961aeeadf9c8b52 SHA512 a7bb5621c761ab36502303053872782cf275e55b248f0387765c1251ab43c58577862c5fc2b321f6746fd7ec0a8e7c7766bcac290cb204f2e94947aa27cb1992 +DIST zita-resampler-1.6.2.tar.bz2 125539 BLAKE2B d2e04fb5e0efbde3432ce973df59a11d2a184146d124b662712a5de2d9c243f6564899f190f7a7b68a9e01bcaab05c92b91ebcbf942473134a12a85e4e08c603 SHA512 d547419dd222c8a399d8f196efa1ec88a3f781275b696ae2fe1bb6e2fc329285affb8aace85972c304ad256becc4a155534dd5ef4ce3c57cbc9dcca0122b670c +EBUILD zita-resampler-1.6.2.ebuild 864 BLAKE2B f4e3d81cec30c0b8c93aa7e7d878e06e5b854aee3dcfde141ef648b220a734f576c6086badff147b5532c39942ffe7ab788fceb174a5f647c3284961970d40b8 SHA512 b6189ad721dec36e6d6dcb5254762d6ce0e6ef6c88bd833784487ceae3994504d6e182a529156af42a53f00c1bdb65216ac7cd8311c67b7b182a261dca83567e +MISC metadata.xml 692 BLAKE2B fad59853ee366f99db8e9c0dfa932c564eb0d8194808b809182ce64f286d39de2a363eb86f192d124adbbc92b1e7801a9fa5be0752fad1725f147d468484f589 SHA512 be926699e99357b49f5fe90a78c60b0fd701229fd603dca5988b40611ae5bb0c271a6a346469e0ebaff62bdc718c400954491ccc2557e5799a4fba08c67207cf 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 000000000000..29735e7729a0 --- /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 000000000000..d939c6084b53 --- /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 000000000000..754fa1dfdde9 --- /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 +} |