diff options
author | danfe <danfe@FreeBSD.org> | 2009-08-19 00:59:14 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2009-08-19 00:59:14 +0800 |
commit | 7aa1557e0f92b22f8d0248897f16c793eff9f37e (patch) | |
tree | 7ec191cf47cfdfca4d92c969054a7dedc2cc0260 | |
parent | 9b346d94852a4a1cc4c1c6335c04c3b8842bfa60 (diff) | |
download | freebsd-ports-gnome-7aa1557e0f92b22f8d0248897f16c793eff9f37e.tar.gz freebsd-ports-gnome-7aa1557e0f92b22f8d0248897f16c793eff9f37e.tar.zst freebsd-ports-gnome-7aa1557e0f92b22f8d0248897f16c793eff9f37e.zip |
Add port of Creox, a real-time Jack-based sound processor. Creox has nice
user-friendly KDE GUI, a preset support, a low-latency DSP engine, and each
effect parameter can be altered "on the fly".
WWW: http://zyzstar.kosoru.com/?creox
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/creox/Makefile | 43 | ||||
-rw-r--r-- | audio/creox/distinfo | 3 | ||||
-rw-r--r-- | audio/creox/files/patch-error_h | 60 | ||||
-rw-r--r-- | audio/creox/files/patch-sincosf | 54 | ||||
-rw-r--r-- | audio/creox/pkg-descr | 11 | ||||
-rw-r--r-- | audio/creox/pkg-plist | 30 |
7 files changed, 202 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index 7857722bc362..657d1d58fbf4 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -105,6 +105,7 @@ SUBDIR += cpige SUBDIR += cplay SUBDIR += cpp-xmms2 + SUBDIR += creox SUBDIR += crip SUBDIR += cripple SUBDIR += csound diff --git a/audio/creox/Makefile b/audio/creox/Makefile new file mode 100644 index 000000000000..f1ff4c003ca8 --- /dev/null +++ b/audio/creox/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: Creox +# Date created: 18 Aug 2009 +# Whom: Alexey Dokuchaev <danfe@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= creox +DISTVERSION= 0.2.2rc2 +CATEGORIES= audio kde +MASTER_SITES= http://zyzstar.kosoru.com/projects/creox/downloads/ + +MAINTAINER= danfe@FreeBSD.org +COMMENT= A real-time sound processor + +USE_BZIP2= yes +USE_AUTOTOOLS= libtool:22 +GNU_CONFIGURE= yes +USE_GETTEXT= yes +USE_KDELIBS_VER= 3 +INSTALLS_ICONS= yes + +post-patch: +# Fix bogus test(1) syntax and remove superfluous -O2 + @${REINPLACE_CMD} -E 's,(if \[ [[:graph:]]+ )==,\1=, ; \ + s,-O2,,' ${WRKSRC}/configure +# FreeBSD does not have exp10f(3), use powf(3) instead + @${REINPLACE_CMD} -e 's|exp10f(|powf(10., |' \ + ${WRKSRC}/creox/dsp_flow/threadeffector.cpp \ + ${WRKSRC}/creox/effects_dsp/tremoloprocessor.cpp \ + ${WRKSRC}/creox/effects_dsp/phaserprocessor.cpp \ + ${WRKSRC}/creox/effects_dsp/flangerprocessor.cpp \ + ${WRKSRC}/creox/effects_dsp/echoprocessor.cpp \ + ${WRKSRC}/creox/effects_dsp/distortionprocessor.cpp +# Fix std::fmaf (remove std:: prefix) + @${REINPLACE_CMD} -e 's,std::fmaf,fmaf,' \ + ${WRKSRC}/creox/effects_dsp/tremoloprocessor.cpp \ + ${WRKSRC}/creox/effects_dsp/echoprocessor.cpp +# Add missing closing parentheses on line 186 + @${REINPLACE_CMD} -e '186s,);,)&,' \ + ${WRKSRC}/creox/effects_dsp/tremoloprocessor.cpp + +.include <bsd.port.mk> diff --git a/audio/creox/distinfo b/audio/creox/distinfo new file mode 100644 index 000000000000..56aac9b490bb --- /dev/null +++ b/audio/creox/distinfo @@ -0,0 +1,3 @@ +MD5 (creox-0.2.2rc2.tar.bz2) = 11d87ad6d47274fdf3f3236f5e09d6fd +SHA256 (creox-0.2.2rc2.tar.bz2) = 176367094866cf7c811df0cf33acb69fb5e1681bd17414d0cc90df398c30429f +SIZE (creox-0.2.2rc2.tar.bz2) = 670791 diff --git a/audio/creox/files/patch-error_h b/audio/creox/files/patch-error_h new file mode 100644 index 000000000000..5e301151dcc8 --- /dev/null +++ b/audio/creox/files/patch-error_h @@ -0,0 +1,60 @@ +--- creox/dsp_flow/threadeffector.cpp.orig 2009-08-18 22:37:58.000000000 +0700 ++++ creox/dsp_flow/threadeffector.cpp 2009-08-18 22:38:37.000000000 +0700 +@@ -22,6 +22,7 @@ + #include <cmath> + #include <cstring> + #include <iostream> ++#include <errno.h> + #include <klocale.h> + #include <kapplication.h> + #include <kglobal.h> +--- creox/effects_dsp/distortionprocessor.cpp.orig 2009-08-18 22:37:58.000000000 +0700 ++++ creox/effects_dsp/distortionprocessor.cpp 2009-08-18 22:01:18.000000000 +0700 +@@ -25,6 +25,7 @@ + #include <cassert> + #include <cstring> + #include <iostream> ++#include <errno.h> + #include "crdatastream.h" + #include "distortionprocessor.h" + +--- creox/effects_dsp/echoprocessor.cpp.orig 2009-08-18 22:37:58.000000000 +0700 ++++ creox/effects_dsp/echoprocessor.cpp 2009-08-18 21:57:41.000000000 +0700 +@@ -22,6 +22,7 @@ + #include <cmath> + #include <cstring> + #include <iostream> ++#include <errno.h> + #include "crdatastream.h" + #include "echoprocessor.h" + +--- creox/effects_dsp/flangerprocessor.cpp.orig 2009-08-18 22:37:58.000000000 +0700 ++++ creox/effects_dsp/flangerprocessor.cpp 2009-08-18 21:56:44.000000000 +0700 +@@ -21,6 +21,7 @@ + #include <cstring> + #include <cmath> + #include <iostream> ++#include <errno.h> + #include "crdatastream.h" + #include "flangerprocessor.h" + +--- creox/effects_dsp/phaserprocessor.cpp.orig 2009-08-18 22:37:58.000000000 +0700 ++++ creox/effects_dsp/phaserprocessor.cpp 2009-08-18 21:55:01.000000000 +0700 +@@ -26,6 +26,7 @@ + #include <cstring> + #include <cmath> + #include <iostream> ++#include <errno.h> + #include "crdatastream.h" + #include "phaserprocessor.h" + +--- creox/effects_dsp/tremoloprocessor.cpp.orig 2009-08-18 22:37:58.000000000 +0700 ++++ creox/effects_dsp/tremoloprocessor.cpp 2009-08-18 21:28:37.000000000 +0700 +@@ -21,6 +21,7 @@ + #include <cassert> + #include <cmath> + #include <iostream> ++#include <errno.h> + #include "crdatastream.h" + #include "tremoloprocessor.h" + diff --git a/audio/creox/files/patch-sincosf b/audio/creox/files/patch-sincosf new file mode 100644 index 000000000000..49b70089d2a8 --- /dev/null +++ b/audio/creox/files/patch-sincosf @@ -0,0 +1,54 @@ +--- creox/effects_dsp/distortionprocessor.cpp.orig 2009-08-18 22:37:58.000000000 +0700 ++++ creox/effects_dsp/distortionprocessor.cpp 2009-08-18 22:01:18.000000000 +0700 +@@ -423,7 +424,8 @@ + { + const float omega = 2.0f*float(M_PI)*centerFrequency/m_samplerate_f; + float sn,cs; +- sincosf(omega, &sn, &cs); ++ sn = sinf(omega); ++ cs = cosf(omega); + const float alpha = sn*sinhf(float(M_LN2/2.0)*bandwidth*(omega/sn)); + const float a0 = 1.0f/(1.0f + alpha); //a0 = 1/a0 + +@@ -462,7 +464,8 @@ + const float A = powf(10., gain/40.0f); + const float omega = 2.0f*float(M_PI)*frequency/m_samplerate_f; + float sn,cs; +- sincosf(omega, &sn, &cs); ++ sn = sinf(omega); ++ cs = cosf(omega); + register const float beta = sn * sqrtf( (A*A + 1.0f)/slope - powf(A-1.0f, 2.0f) ); + + register const float AplusOne = A + 1.0f; +@@ -500,7 +503,8 @@ + { + const float omega = 2.0f*float(M_PI)*cutoffFrequency/m_samplerate_f; + float sn,cs; +- sincosf(omega, &sn, &cs); ++ sn = sinf(omega); ++ cs = cosf(omega); + const float alpha = sn/(2.0f * Q); + const float a0 = 1.0f/(1.0f + alpha); //a0 = 1/a0 + +--- creox/effects_dsp/phaserprocessor.cpp.orig 2009-08-18 22:37:58.000000000 +0700 ++++ creox/effects_dsp/phaserprocessor.cpp 2009-08-18 21:55:01.000000000 +0700 +@@ -156,7 +157,8 @@ + { + const float omega = 2.0f * float(M_PI) * m_stepFrequency / m_samplerate_d; + float sn, cs; +- sincosf(omega, &sn, &cs); ++ sn = sinf(omega); ++ cs = cosf(omega); + *(m_coefBuffPrelim++) = cs; // cs + *(m_coefBuffPrelim++) = sn / m_resonance; // alpha (m_resonance = 2.0*resonance) + m_stepFrequency *= m_expStep; +@@ -231,7 +233,8 @@ + } + + float sn, cs; +- sincosf(omega, &sn, &cs); ++ sn = sinf(omega); ++ cs = cosf(omega); + register const float alpha = sn / m_resonance; // alpha (m_resonance = 2.0 * resonance) + + // perform filter diff --git a/audio/creox/pkg-descr b/audio/creox/pkg-descr new file mode 100644 index 000000000000..ed8ad6537fe8 --- /dev/null +++ b/audio/creox/pkg-descr @@ -0,0 +1,11 @@ +Creox is a real-time sound processor. You can plug your electric guitar or +any other musical instrument directly to the PC's sound card and start +experimenting with various sound effects. Creox has a nice user-friendly +GUI, a preset support, a low-latency DSP engine, and each effect parameter +can be altered "on the fly". + +As Creox is a JACK application, the output sound can be routed to the other +JACK-aware applications, and the audio input can be taken as the output from +the other JACK client. + +WWW: http://zyzstar.kosoru.com/?creox diff --git a/audio/creox/pkg-plist b/audio/creox/pkg-plist new file mode 100644 index 000000000000..760cd5a96cf5 --- /dev/null +++ b/audio/creox/pkg-plist @@ -0,0 +1,30 @@ +bin/creox +share/doc/HTML/en/creox/common +share/doc/HTML/en/creox/index.docbook +share/doc/HTML/en/creox/index.cache.bz2 +share/locale/ru/LC_MESSAGES/creox.mo +share/apps/creox/icons/hicolor/16x16/actions/distortion.png +share/apps/creox/icons/hicolor/16x16/actions/echo.png +share/apps/creox/icons/hicolor/16x16/actions/flanger.png +share/apps/creox/icons/hicolor/16x16/actions/phaser.png +share/apps/creox/icons/hicolor/16x16/actions/preset_chain.png +share/apps/creox/icons/hicolor/16x16/actions/preset_nochain.png +share/apps/creox/icons/hicolor/16x16/actions/tremolo.png +share/apps/creox/icons/hicolor/48x48/actions/sound_card_properties.png +share/apps/creox/pics/sound_card_properties.png +share/apps/creox/pics/crsplash.png +share/apps/creox/creoxui.rc +share/applnk/Applications/creox.desktop +share/icons/hicolor/16x16/apps/creox.png +share/icons/hicolor/32x32/apps/creox.png +share/icons/hicolor/48x48/apps/creox.png +share/icons/hicolor/64x64/apps/creox.png +@dirrm share/apps/creox/icons/hicolor/48x48/actions +@dirrm share/apps/creox/icons/hicolor/48x48 +@dirrm share/apps/creox/icons/hicolor/16x16/actions +@dirrm share/apps/creox/icons/hicolor/16x16 +@dirrm share/apps/creox/icons/hicolor +@dirrm share/apps/creox/icons +@dirrm share/apps/creox/pics +@dirrm share/apps/creox +@dirrm share/doc/HTML/en/creox |