Index: audio/Makefile =================================================================== --- audio/Makefile +++ audio/Makefile @@ -128,6 +128,7 @@ SUBDIR += emms SUBDIR += enscribe SUBDIR += epos-devel + SUBDIR += eq10q-lv2 SUBDIR += esound SUBDIR += espeak SUBDIR += esperanza Index: audio/eq10q-lv2/Makefile =================================================================== --- /dev/null +++ audio/eq10q-lv2/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +PORTNAME= eq10q +DISTVERSION= 2.2 +CATEGORIES= audio +MASTER_SITES= SF/${PORTNAME} +PKGNAMESUFFIX= -lv2 + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Parametric equalizer LV2 audio plugin + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= lv2>0:audio/lv2 +LIB_DEPENDS= libfftw3.so:math/fftw3 \ + libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 + +USES= cmake:outsource dos2unix localbase:ldflags pkgconfig +USE_GNOME= glib20 gtk20 gtkmm24 gdkpixbuf2 atkmm cairo cairomm pangomm +DOS2UNIX_FILES= dsp/vu.h + +post-patch: + @${REINPLACE_CMD} -e 's/pow10(/pow(10,/g' \ + ${WRKSRC}/gui/widgets/*.cpp + +.include Index: audio/eq10q-lv2/distinfo =================================================================== --- /dev/null +++ audio/eq10q-lv2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1504743992 +SHA256 (eq10q-2.2.tar.gz) = 337f4c703ba31902565faad1cd450cf0312ad5a48dc499661277f287b662b09a +SIZE (eq10q-2.2.tar.gz) = 797991 Index: audio/eq10q-lv2/files/patch-CMakeLists.txt =================================================================== --- /dev/null +++ audio/eq10q-lv2/files/patch-CMakeLists.txt @@ -0,0 +1,13 @@ +--- CMakeLists.txt.orig 2016-12-11 12:07:48 UTC ++++ CMakeLists.txt +@@ -2,8 +2,8 @@ + cmake_minimum_required(VERSION 2.8) + PROJECT(eq10q) + +-##ADD_DEFINITIONS(-Wall -O3 -fPIC -finline-functions -finline-functions-called-once -msse -mfpmath=sse -std=c99) +-set(CMAKE_C_FLAGS "-Wall -O3 -fPIC -finline-functions -finline-functions-called-once -msse -mfpmath=sse -std=c99") ++##ADD_DEFINITIONS(-Wall -fPIC -finline-functions -finline-functions-called-once -msse -mfpmath=sse -std=c99) ++set(CMAKE_C_FLAGS "-Wall -fPIC -finline-functions -msse -mfpmath=sse -std=c99") + #set(CMAKE_C_FLAGS "-Wall -O0 -g -fPIC -finline-functions -finline-functions-called-once -msse -mfpmath=sse -std=c99") + + set(CMAKE_CXX_FLAGS "-Wall -fPIC -std=c++11") Index: audio/eq10q-lv2/files/patch-dsp_filter.h =================================================================== --- /dev/null +++ audio/eq10q-lv2/files/patch-dsp_filter.h @@ -0,0 +1,23 @@ +--- dsp/filter.h.orig 2016-12-11 12:07:54 UTC ++++ dsp/filter.h +@@ -237,13 +237,13 @@ static inline void calcCoefs(Filter *fil + double G12 = G1 * G1; + + //Digital filter +- double F = fabsf(G2 - GB2);// + 0.00000001f; ///TODO akest petit num sumat en teoria no hi va pero he detectat div by 0 +- double G00 = fabsf(G2 - 1.0);// + 0.00000001f; ///TODO akest petit num sumat en teoria no hi va pero he detectat div by 0 +- double F00 = fabsf(GB2 - 1.0);// + 0.00000001f; ///TODO akest petit num sumat en teoria no hi va pero he detectat div by 0 +- double G01 = fabsf(G2 - G1);// + 0.00000001f; ///TODO akest petit num sumat en teoria no hi va pero he detectat div by 0 +- double G11 = fabsf(G2 - G12);// + 0.00000001f; ///TODO akest petit num sumat en teoria no hi va pero he detectat div by 0 +- double F01 = fabsf(GB2 - G1);// + 0.00000001f; ///TODO akest petit num sumat en teoria no hi va pero he detectat div by 0 +- double F11 = fabsf(GB2 - G12);// + 0.00000001f; ///TODO akest petit num sumat en teoria no hi va pero he detectat div by 0 ++ double F = fabs(G2 - GB2);// + 0.00000001f; ///TODO akest petit num sumat en teoria no hi va pero he detectat div by 0 ++ double G00 = fabs(G2 - 1.0);// + 0.00000001f; ///TODO akest petit num sumat en teoria no hi va pero he detectat div by 0 ++ double F00 = fabs(GB2 - 1.0);// + 0.00000001f; ///TODO akest petit num sumat en teoria no hi va pero he detectat div by 0 ++ double G01 = fabs(G2 - G1);// + 0.00000001f; ///TODO akest petit num sumat en teoria no hi va pero he detectat div by 0 ++ double G11 = fabs(G2 - G12);// + 0.00000001f; ///TODO akest petit num sumat en teoria no hi va pero he detectat div by 0 ++ double F01 = fabs(GB2 - G1);// + 0.00000001f; ///TODO akest petit num sumat en teoria no hi va pero he detectat div by 0 ++ double F11 = fabs(GB2 - G12);// + 0.00000001f; ///TODO akest petit num sumat en teoria no hi va pero he detectat div by 0 + double W2 = sqrtf(G11 / G00) * tanf(w0/2.0) * tanf(w0/2.0); + + //Bandwidth condition Index: audio/eq10q-lv2/files/patch-dsp_vu.h =================================================================== --- /dev/null +++ audio/eq10q-lv2/files/patch-dsp_vu.h @@ -0,0 +1,11 @@ +--- dsp/vu.h.orig 2016-12-11 12:07:54 UTC ++++ dsp/vu.h +@@ -49,7 +49,7 @@ static inline void resetVU(Vu *vu) + //Inputs a sample to VU + static inline void SetSample(Vu *vu, float sample) + { +- vu->vu_value = fabsf(sample); ++ vu->vu_value = fabs(sample); + vu->vu_max = vu->vu_value > vu->vu_max ? vu->vu_value : vu->vu_max; + } + Index: audio/eq10q-lv2/pkg-descr =================================================================== --- /dev/null +++ audio/eq10q-lv2/pkg-descr @@ -0,0 +1,19 @@ +EQ10Q is an audio plugin bundle over the LV2 standard, implementing a powerful +and flexible parametric equalizer and more. + +All audio processing developed in this project is written in C language and +highly optimized focusing on DSP load reduction yet keeping a superb audio +quality, the audio engine is always working in 64 bits floating point maths but +interfacing with LV2 ports using the standard 32 bits numbers. We believe that +a good plugin is not completely useful without a full featured graphical user +interface (GUI) that provides the correct way to set it up. For this reason, +each plugin distributed in this bundle is supplied with a nice GUI. These GUI's +are written in C++ and Gtkmm libraries to gain a great control over the +graphics. + +The project is licensed under GPL so feel free to copy, redistribute and modify. +Although, if your are really convinced of doing some possible interesting +changes in the source code, please mail me and we can discuss about +incorporating your awesome ideas in the main project. + +WWW: http://eq10q.sourceforge.net Index: audio/eq10q-lv2/pkg-plist =================================================================== --- /dev/null +++ audio/eq10q-lv2/pkg-plist @@ -0,0 +1,58 @@ +lib/lv2/sapistaEQv2.lv2/bassup.so +lib/lv2/sapistaEQv2.lv2/bassup.ttl +lib/lv2/sapistaEQv2.lv2/compressor.so +lib/lv2/sapistaEQv2.lv2/compressor.ttl +lib/lv2/sapistaEQv2.lv2/compressor_sc.so +lib/lv2/sapistaEQv2.lv2/compressor_sc.ttl +lib/lv2/sapistaEQv2.lv2/compressor_stereo.so +lib/lv2/sapistaEQv2.lv2/compressor_stereo.ttl +lib/lv2/sapistaEQv2.lv2/compressor_stereo_sc.so +lib/lv2/sapistaEQv2.lv2/compressor_stereo_sc.ttl +lib/lv2/sapistaEQv2.lv2/eq10qm.so +lib/lv2/sapistaEQv2.lv2/eq10qm.ttl +lib/lv2/sapistaEQv2.lv2/eq10qs.so +lib/lv2/sapistaEQv2.lv2/eq10qs.ttl +lib/lv2/sapistaEQv2.lv2/eq1qm.so +lib/lv2/sapistaEQv2.lv2/eq1qm.ttl +lib/lv2/sapistaEQv2.lv2/eq1qs.so +lib/lv2/sapistaEQv2.lv2/eq1qs.ttl +lib/lv2/sapistaEQv2.lv2/eq4qm.so +lib/lv2/sapistaEQv2.lv2/eq4qm.ttl +lib/lv2/sapistaEQv2.lv2/eq4qs.so +lib/lv2/sapistaEQv2.lv2/eq4qs.ttl +lib/lv2/sapistaEQv2.lv2/eq6qm.so +lib/lv2/sapistaEQv2.lv2/eq6qm.ttl +lib/lv2/sapistaEQv2.lv2/eq6qs.so +lib/lv2/sapistaEQv2.lv2/eq6qs.ttl +lib/lv2/sapistaEQv2.lv2/gate.so +lib/lv2/sapistaEQv2.lv2/gate.ttl +lib/lv2/sapistaEQv2.lv2/gate_stereo.so +lib/lv2/sapistaEQv2.lv2/gate_stereo.ttl +lib/lv2/sapistaEQv2.lv2/gui/bassup_gui.so +lib/lv2/sapistaEQv2.lv2/gui/combopix/hishelf.png +lib/lv2/sapistaEQv2.lv2/gui/combopix/hpf.png +lib/lv2/sapistaEQv2.lv2/gui/combopix/loshelf.png +lib/lv2/sapistaEQv2.lv2/gui/combopix/lpf.png +lib/lv2/sapistaEQv2.lv2/gui/combopix/notch.png +lib/lv2/sapistaEQv2.lv2/gui/combopix/peak.png +lib/lv2/sapistaEQv2.lv2/gui/dynamics_gui.so +lib/lv2/sapistaEQv2.lv2/gui/eq10q_gui.so +lib/lv2/sapistaEQv2.lv2/gui/icons/logobassup.png +lib/lv2/sapistaEQv2.lv2/gui/icons/logodynamics.png +lib/lv2/sapistaEQv2.lv2/gui/icons/logoeq10q.png +lib/lv2/sapistaEQv2.lv2/gui/knobs/fader_dark.png +lib/lv2/sapistaEQv2.lv2/gui/knobs/fader_white.png +lib/lv2/sapistaEQv2.lv2/gui/knobs/knob2_25px.png +lib/lv2/sapistaEQv2.lv2/gui/knobs/knob2_28px.png +lib/lv2/sapistaEQv2.lv2/gui/knobs/knob2_32px.png +lib/lv2/sapistaEQv2.lv2/gui/knobs/knob2_35px.png +lib/lv2/sapistaEQv2.lv2/gui/knobs/knob_bassup_165px.png +lib/lv2/sapistaEQv2.lv2/gui/knobs/knob_bassup_84px.png +lib/lv2/sapistaEQv2.lv2/gui/knobs/knob_green_84px.png +lib/lv2/sapistaEQv2.lv2/gui/knobs/mixer_knob.xcf +lib/lv2/sapistaEQv2.lv2/gui/matrix_ms_gui.so +lib/lv2/sapistaEQv2.lv2/lr2ms.ttl +lib/lv2/sapistaEQv2.lv2/manifest.ttl +lib/lv2/sapistaEQv2.lv2/matrix_lr2ms.so +lib/lv2/sapistaEQv2.lv2/matrix_ms2lr.so +lib/lv2/sapistaEQv2.lv2/ms2lr.ttl