From owner-svn-ports-all@freebsd.org Thu Aug 17 19:53:54 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2606DDD30F4; Thu, 17 Aug 2017 19:53:54 +0000 (UTC) (envelope-from ultima@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D8FD92736; Thu, 17 Aug 2017 19:53:53 +0000 (UTC) (envelope-from ultima@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7HJrrs9009647; Thu, 17 Aug 2017 19:53:53 GMT (envelope-from ultima@FreeBSD.org) Received: (from ultima@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7HJrqkg009641; Thu, 17 Aug 2017 19:53:52 GMT (envelope-from ultima@FreeBSD.org) Message-Id: <201708171953.v7HJrqkg009641@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ultima set sender to ultima@FreeBSD.org using -f From: Richard Gallamore Date: Thu, 17 Aug 2017 19:53:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r448184 - in head/audio: . ir-lv2 ir-lv2/files X-SVN-Group: ports-head X-SVN-Commit-Author: ultima X-SVN-Commit-Paths: in head/audio: . ir-lv2 ir-lv2/files X-SVN-Commit-Revision: 448184 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2017 19:53:54 -0000 Author: ultima Date: Thu Aug 17 19:53:52 2017 New Revision: 448184 URL: https://svnweb.freebsd.org/changeset/ports/448184 Log: LV2 Impulse response (convolution) plugin (for reverb and cabinet simulation). This fork adds LV2 State extenstion support for proper storing of internal plugin data. IR is a no-latency/low-latency, realtime, high performance signal convolver especially for creating reverb effects. Supports impulse responses with 1, 2 or 4 channels, in any soundfile format supported by libsndfile. WWW: https://github.com/Anchakor/ir.lv2 PR: 221232 Submitted by: Yuri Victorovich (maintainer) Reviewed by: matthew (mentor) Approved by: matthew (mentor) Differential Revision: https://reviews.freebsd.org/D12059 Added: head/audio/ir-lv2/ head/audio/ir-lv2/Makefile (contents, props changed) head/audio/ir-lv2/distinfo (contents, props changed) head/audio/ir-lv2/files/ head/audio/ir-lv2/files/patch-Makefile (contents, props changed) head/audio/ir-lv2/files/patch-ir.h (contents, props changed) head/audio/ir-lv2/pkg-descr (contents, props changed) Modified: head/audio/Makefile Modified: head/audio/Makefile ============================================================================== --- head/audio/Makefile Thu Aug 17 19:50:26 2017 (r448183) +++ head/audio/Makefile Thu Aug 17 19:53:52 2017 (r448184) @@ -328,6 +328,7 @@ SUBDIR += id3v2 SUBDIR += idjc SUBDIR += ifp-line + SUBDIR += ir-lv2 SUBDIR += jack SUBDIR += jack-keyboard SUBDIR += jack-rack Added: head/audio/ir-lv2/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/ir-lv2/Makefile Thu Aug 17 19:53:52 2017 (r448184) @@ -0,0 +1,36 @@ +# Created by: Yuri Victorovich +# $FreeBSD$ + +PORTNAME= ir +PORTVERSION= g20130909 +CATEGORIES= audio +PKGNAMESUFFIX= -lv2 + +MAINTAINER= yuri@rawbw.com +COMMENT= LV2 impulse response plugin for reverb and cabinet simulation + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= lv2>0:audio/lv2 \ + ${LOCALBASE}/include/fftw3.h:math/fftw3 +LIB_DEPENDS= libfreetype.so:print/freetype2 \ + libsndfile.so:audio/libsndfile \ + libsamplerate.so:audio/libsamplerate \ + libzita-convolver.so:audio/zita-convolver \ + libfontconfig.so:x11-fonts/fontconfig + +USES= gmake pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= Anchakor +GH_PROJECT= ir.lv2 +GH_TAGNAME= af1f8ab +USE_GNOME= glib20 gtk20 gdkpixbuf2 cairo + +PLIST_FILES= lib/lv2/ir.lv2/ir.so lib/lv2/ir.lv2/ir.ttl \ + lib/lv2/ir.lv2/ir_gui.so lib/lv2/ir.lv2/manifest.ttl + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lv2/ir.lv2/*.so + +.include Added: head/audio/ir-lv2/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/ir-lv2/distinfo Thu Aug 17 19:53:52 2017 (r448184) @@ -0,0 +1,3 @@ +TIMESTAMP = 1502858890 +SHA256 (Anchakor-ir.lv2-g20130909-af1f8ab_GH0.tar.gz) = 430eb1733aff4a9e8d3eec57097141026a08366bd43f891ad70ec4a5dc552037 +SIZE (Anchakor-ir.lv2-g20130909-af1f8ab_GH0.tar.gz) = 51267 Added: head/audio/ir-lv2/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/ir-lv2/files/patch-Makefile Thu Aug 17 19:53:52 2017 (r448184) @@ -0,0 +1,54 @@ +--- Makefile.orig 2013-09-10 06:27:31 UTC ++++ Makefile +@@ -4,8 +4,8 @@ + # Issue 'make convert4chan' to compile the 4-channel converter utility + # (for local use, not installed by make install) + +-PREFIX = /usr +-INSTDIR = $(PREFIX)/lib/lv2/ir.lv2 ++PREFIX ?= /usr ++INSTDIR = $(DESTDIR)/$(PREFIX)/lib/lv2/ir.lv2 + + INST_FILES = ir.so ir_gui.so ir.ttl manifest.ttl + +@@ -27,31 +27,31 @@ C4LIBS = -lsndfile `pkg-config --libs gt + all: ir.so ir_gui.so + + ir.o: ir.cc ir.h ir_utils.h +- g++ ir.cc $(CPPFLAGS) -c -fPIC -o ir.o ++ $(CXX) ir.cc $(CPPFLAGS) -c -fPIC -o ir.o + + ir_gui.o: ir_gui.cc ir.h ir_utils.h ir_wavedisplay.h +- g++ ir_gui.cc $(CPPFLAGS) -c -fPIC -o ir_gui.o ++ $(CXX) ir_gui.cc $(CPPFLAGS) -c -fPIC -o ir_gui.o + + ir_utils.o: ir_utils.cc ir_utils.h ir.h +- g++ ir_utils.cc $(CPPFLAGS) -c -fPIC -o ir_utils.o ++ $(CXX) ir_utils.cc $(CPPFLAGS) -c -fPIC -o ir_utils.o + + ir_meter.o: ir_meter.cc ir_meter.h ir.h ir_utils.h +- g++ ir_meter.cc $(CPPFLAGS) -c -fPIC -o ir_meter.o ++ $(CXX) ir_meter.cc $(CPPFLAGS) -c -fPIC -o ir_meter.o + + ir_modeind.o: ir_modeind.cc ir_modeind.h ir.h ir_utils.h +- g++ ir_modeind.cc $(CPPFLAGS) -c -fPIC -o ir_modeind.o ++ $(CXX) ir_modeind.cc $(CPPFLAGS) -c -fPIC -o ir_modeind.o + + ir_wavedisplay.o: ir_wavedisplay.cc ir_wavedisplay.h ir.h ir_utils.h +- g++ ir_wavedisplay.cc $(CPPFLAGS) -c -fPIC -o ir_wavedisplay.o ++ $(CXX) ir_wavedisplay.cc $(CPPFLAGS) -c -fPIC -o ir_wavedisplay.o + + ir.so: ir.o ir_utils.o +- g++ $(LDFLAGS) ir.o ir_utils.o $(LIBS) -shared -o ir.so ++ $(CXX) $(LDFLAGS) ir.o ir_utils.o $(LIBS) -shared -o ir.so + + ir_gui.so: ir_gui.o ir_utils.o ir_meter.o ir_modeind.o ir_wavedisplay.o +- g++ $(LDFLAGS) ir_gui.o ir_utils.o ir_meter.o ir_modeind.o ir_wavedisplay.o $(LIBS) -shared -z nodelete -o ir_gui.so ++ $(CXX) $(LDFLAGS) ir_gui.o ir_utils.o ir_meter.o ir_modeind.o ir_wavedisplay.o $(LIBS) -shared -o ir_gui.so + + convert4chan: convert4chan.c +- gcc $(C4CFLAGS) convert4chan.c $(C4LIBS) -o convert4chan ++ $(CC) $(C4CFLAGS) convert4chan.c $(C4LIBS) -o convert4chan + + install: all + mkdir -p $(INSTDIR) Added: head/audio/ir-lv2/files/patch-ir.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/ir-lv2/files/patch-ir.h Thu Aug 17 19:53:52 2017 (r448184) @@ -0,0 +1,12 @@ +--- ir.h.orig 2013-09-10 06:27:31 UTC ++++ ir.h +@@ -35,6 +35,9 @@ + #define BSIZE_SR 0x1000 /* Blocksize for SRC */ + #define MAXSIZE 0x00100000 /* Max. available convolver size of zita-convolver */ + ++#define exp10(x) pow(10., x) // TODO not as good as exp10()? ++#define exp10f(x) powf(10., x) // TODO not as good as exp10f()? ++ + #define DB_CO(g) ((g) > -90.0f ? exp10f((g) * 0.05f) : 0.0f) + #define CO_DB(g) ((g) > 0.0f ? 20.0f * log10f(g) : -90.0f) + Added: head/audio/ir-lv2/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/ir-lv2/pkg-descr Thu Aug 17 19:53:52 2017 (r448184) @@ -0,0 +1,10 @@ +LV2 Impulse response (convolution) plugin (for reverb and cabinet simulation). +This fork adds LV2 State extenstion support for proper storing of internal +plugin data. + +IR is a no-latency/low-latency, realtime, high performance signal +convolver especially for creating reverb effects. Supports impulse +responses with 1, 2 or 4 channels, in any soundfile format supported +by libsndfile. + +WWW: https://github.com/Anchakor/ir.lv2