Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2017 17:33:06 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r432939 - in head/audio: . zita-resampler zita-resampler/files
Message-ID:  <201701311733.v0VHX6fB087628@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Jan 31 17:33:06 2017
New Revision: 432939
URL: https://svnweb.freebsd.org/changeset/ports/432939

Log:
  Zita-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.
  
  The library operates on signals represented in single-precision floating point
  format. For multichannel operation both the input and output signals are assumed
  to be stored as interleaved samples.
  
  The API allows a trade-off between quality and CPU load. For the latter a range
  of approximately 1:6 is available. Even at the highest quality setting
  libzita-resampler will be faster than most similar libraries providing the same
  quality, e.g. libsamplerate.
  
  WWW: http://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html
  
  PR:		215981
  Submitted by:	meka@tilda.center

Added:
  head/audio/zita-resampler/
  head/audio/zita-resampler/Makefile   (contents, props changed)
  head/audio/zita-resampler/distinfo   (contents, props changed)
  head/audio/zita-resampler/files/
  head/audio/zita-resampler/files/patch-Makefile   (contents, props changed)
  head/audio/zita-resampler/pkg-descr   (contents, props changed)
  head/audio/zita-resampler/pkg-plist   (contents, props changed)
Modified:
  head/audio/Makefile

Modified: head/audio/Makefile
==============================================================================
--- head/audio/Makefile	Tue Jan 31 16:59:19 2017	(r432938)
+++ head/audio/Makefile	Tue Jan 31 17:33:06 2017	(r432939)
@@ -852,6 +852,7 @@
     SUBDIR += xwave
     SUBDIR += yell
     SUBDIR += zinf
+    SUBDIR += zita-resampler
     SUBDIR += zynaddsubfx
 
 .include <bsd.port.subdir.mk>

Added: head/audio/zita-resampler/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/zita-resampler/Makefile	Tue Jan 31 17:33:06 2017	(r432939)
@@ -0,0 +1,18 @@
+# Created by: Goran Mekić <meka@tilda.center>
+# $FreeBSD$
+
+PORTNAME=	zita-resampler
+PORTVERSION=	1.6.0
+CATEGORIES=	audio
+MASTER_SITES=	http://kokkinizita.linuxaudio.org/linuxaudio/downloads/
+
+MAINTAINER=	meka@tilda.center
+COMMENT=	C++ library for resampling audio signals
+
+LICENSE=	GPLv3+
+LICENSE_FILE=	${WRKSRC}/../COPYING
+
+USES=		gmake tar:bzip2
+WRKSRC_SUBDIR=	libs
+
+.include <bsd.port.mk>

Added: head/audio/zita-resampler/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/zita-resampler/distinfo	Tue Jan 31 17:33:06 2017	(r432939)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1484153136
+SHA256 (zita-resampler-1.6.0.tar.bz2) = 10888d76299d8072990939be45d6fc5865f5a45d766d7690819c5899d2a588f0
+SIZE (zita-resampler-1.6.0.tar.bz2) = 126427

Added: head/audio/zita-resampler/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/zita-resampler/files/patch-Makefile	Tue Jan 31 17:33:06 2017	(r432939)
@@ -0,0 +1,65 @@
+--- Makefile.orig	2015-10-02 14:59:52 UTC
++++ Makefile
+@@ -1,7 +1,7 @@
+ # ----------------------------------------------------------------------------
+ #
+ #  Copyright (C) 2006-2012 Fons Adriaensen <fons@linuxaudio.org>
+-#    
++#
+ #  This program is free software; you can redistribute it and/or modify
+ #  it under the terms of the GNU General Public License as published by
+ #  the Free Software Foundation; either version 3 of the License, or
+@@ -20,8 +20,8 @@
+ 
+ # Modify as required.
+ #
+-PREFIX = /usr/local
+-SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
++PREFIX ?= /usr/local
++SUFFIX =
+ LIBDIR = lib$(SUFFIX)
+ 
+ MAJVERS = 1
+@@ -31,10 +31,7 @@ DISTDIR = zita-resampler-$(VERSION)
+ 
+ 
+ CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
+-CXXFLAGS += -Wall -fPIC -O2 -ffast-math
+-CXXFLAGS += -march=native
+-LDFLAGS += 
+-LDLIBS +=
++CXXFLAGS += -Wall -fPIC
+ 
+ 
+ ZITA-RESAMPLER_SO = libzita-resampler.so
+@@ -46,8 +43,10 @@ ZITA-RESAMPLER_H = zita-resampler/resamp
+ 	zita-resampler/vresampler.h zita-resampler/cresampler.h
+ 
+ 
++all: $(ZITA-RESAMPLER_MIN)
++
+ $(ZITA-RESAMPLER_MIN): $(ZITA-RESAMPLER_O)
+-	g++ -shared $(LDFLAGS) -Wl,-soname,$(ZITA-RESAMPLER_MAJ) -o $(ZITA-RESAMPLER_MIN) $(ZITA-RESAMPLER_O) $(ZITA-RESAMPLER_DEP)
++	${CXX} -shared $(LDFLAGS) -Wl,-soname,$(ZITA-RESAMPLER_MAJ) -o $(ZITA-RESAMPLER_MIN) $(ZITA-RESAMPLER_O) $(ZITA-RESAMPLER_DEP)
+ 
+ $(ZITA-RESAMPLER_O):	$(ZITA-RESAMPLER_H)
+ 
+@@ -55,10 +54,10 @@ $(ZITA-RESAMPLER_O):	$(ZITA-RESAMPLER_H)
+ install:	$(ZITA-RESAMPLER_MIN)
+ 	install -d $(DESTDIR)$(PREFIX)/include/zita-resampler
+ 	install -d $(DESTDIR)$(PREFIX)/$(LIBDIR)
+-	install -m 644 $(ZITA-RESAMPLER_H) $(DESTDIR)$(PREFIX)/include/zita-resampler
+-	install -m 644 $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)
++	${BSD_INSTALL_DATA} $(ZITA-RESAMPLER_H) $(DESTDIR)$(PREFIX)/include/zita-resampler
++	${BSD_INSTALL_LIB} $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)
+ 	ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-RESAMPLER_SO)
+-	ldconfig
++	ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-RESAMPLER_MAJ)
+ 
+ uninstall:
+ 	/bin/rm -rf $(DESTDIR)$(PREFIX)/include/zita-resampler
+@@ -66,4 +65,3 @@ uninstall:
+ 
+ clean:
+ 	/bin/rm -rf *~ *.o *.a *.d *.so.* zita-resampler/*~
+-

Added: head/audio/zita-resampler/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/zita-resampler/pkg-descr	Tue Jan 31 17:33:06 2017	(r432939)
@@ -0,0 +1,14 @@
+Zita-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.
+
+The library operates on signals represented in single-precision floating point
+format. For multichannel operation both the input and output signals are assumed
+to be stored as interleaved samples.
+
+The API allows a trade-off between quality and CPU load. For the latter a range
+of approximately 1:6 is available. Even at the highest quality setting
+libzita-resampler will be faster than most similar libraries providing the same
+quality, e.g. libsamplerate.
+
+WWW: http://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html

Added: head/audio/zita-resampler/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/zita-resampler/pkg-plist	Tue Jan 31 17:33:06 2017	(r432939)
@@ -0,0 +1,7 @@
+include/zita-resampler/cresampler.h
+include/zita-resampler/resampler-table.h
+include/zita-resampler/resampler.h
+include/zita-resampler/vresampler.h
+lib/libzita-resampler.so
+lib/libzita-resampler.so.1
+lib/libzita-resampler.so.1.6.0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701311733.v0VHX6fB087628>