mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
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
This commit is contained in:
parent
935889bb76
commit
54e2a19b7f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=448184
audio
@ -328,6 +328,7 @@
|
||||
SUBDIR += id3v2
|
||||
SUBDIR += idjc
|
||||
SUBDIR += ifp-line
|
||||
SUBDIR += ir-lv2
|
||||
SUBDIR += jack
|
||||
SUBDIR += jack-keyboard
|
||||
SUBDIR += jack-rack
|
||||
|
36
audio/ir-lv2/Makefile
Normal file
36
audio/ir-lv2/Makefile
Normal file
@ -0,0 +1,36 @@
|
||||
# Created by: Yuri Victorovich <yuri@rawbw.com>
|
||||
# $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 <bsd.port.mk>
|
3
audio/ir-lv2/distinfo
Normal file
3
audio/ir-lv2/distinfo
Normal file
@ -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
|
54
audio/ir-lv2/files/patch-Makefile
Normal file
54
audio/ir-lv2/files/patch-Makefile
Normal file
@ -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)
|
12
audio/ir-lv2/files/patch-ir.h
Normal file
12
audio/ir-lv2/files/patch-ir.h
Normal file
@ -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)
|
||||
|
10
audio/ir-lv2/pkg-descr
Normal file
10
audio/ir-lv2/pkg-descr
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user