View | Details | Raw Unified | Return to bug 176536
Collapse All | Expand All

(-)audio/creox/Makefile (-35 / +22 lines)
Lines 1-49 Link Here
1
# New ports collection makefile for:	Creox
1
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
2
# Date created:				18 Aug 2009
3
# Whom:					Alexey Dokuchaev <danfe@FreeBSD.org>
4
#
5
# $FreeBSD: head/audio/creox/Makefile 309662 2012-12-30 12:03:51Z beat $
2
# $FreeBSD: head/audio/creox/Makefile 309662 2012-12-30 12:03:51Z beat $
6
#
7
3
8
PORTNAME=	creox
4
PORTNAME=	creox
9
DISTVERSION=	0.2.2rc2
5
PORTVERSION=	0.3.0
10
PORTREVISION=	5
11
CATEGORIES=	audio kde
6
CATEGORIES=	audio kde
12
MASTER_SITES=	http://zyzstar.kosoru.com/projects/creox/downloads/
7
MASTER_SITES=	GH
13
8
14
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	A real-time sound processor
10
COMMENT=	Realtime sound processor
16
11
17
LIB_DEPENDS=	jack.0:${PORTSDIR}/audio/jack
12
LICENSE=	GPLv2
18
13
19
DEPRECATED=	Depends on QT3; unmaintained
14
LIB_DEPENDS=	jack:${PORTSDIR}/audio/jack
20
EXPIRATION_DATE=	2013-07-01
21
15
22
USE_BZIP2=	yes
16
USE_GITHUB=	yes
23
USE_AUTOTOOLS=	libtool
17
GH_ACCOUNT=	laudrup
24
GNU_CONFIGURE=	yes
18
GH_PROJECT=	Creox4
25
USE_GETTEXT=	yes
19
GH_TAGNAME=	0.3
26
USE_KDELIBS_VER=3
20
GH_COMMIT=	8e27483
27
INSTALLS_ICONS=	yes
21
22
USE_XORG=	xft xpm
23
USE_KDE4=	automoc4 kdelibs kdeprefix
24
USE_QT4=	moc_build qmake_build rcc_build uic_build
25
USE_CMAKE=	yes
26
CMAKE_OUTSOURCE=yes
27
MAKE_JOBS_SAFE=	yes
28
28
29
post-patch:
29
post-patch:
30
# Fix bogus test(1) syntax and remove superfluous -O2
30
	@${REINPLACE_CMD} -e \
31
	@${REINPLACE_CMD} -E 's,(if \[ [[:graph:]]+ )==,\1=, ; \
31
		'/-Wno-unused-but-set-variable/d' ${WRKSRC}/CMakeLists.txt
32
		s,-O2,,' ${WRKSRC}/configure
33
# FreeBSD does not have exp10f(3), use powf(3) instead
32
# FreeBSD does not have exp10f(3), use powf(3) instead
34
	@${REINPLACE_CMD} -e 's|exp10f(|powf(10., |' \
33
	@${GREP} -lR "exp10f(" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
35
		${WRKSRC}/creox/dsp_flow/threadeffector.cpp \
34
		's|exp10f(|powf(10.,|'
36
		${WRKSRC}/creox/effects_dsp/tremoloprocessor.cpp \
37
		${WRKSRC}/creox/effects_dsp/phaserprocessor.cpp \
38
		${WRKSRC}/creox/effects_dsp/flangerprocessor.cpp \
39
		${WRKSRC}/creox/effects_dsp/echoprocessor.cpp \
40
		${WRKSRC}/creox/effects_dsp/distortionprocessor.cpp
41
# Fix std::fmaf (remove std:: prefix)
42
	@${REINPLACE_CMD} -e 's,std::fmaf,fmaf,' \
43
		${WRKSRC}/creox/effects_dsp/tremoloprocessor.cpp \
44
		${WRKSRC}/creox/effects_dsp/echoprocessor.cpp
45
# Add missing closing parentheses on line 186
46
	@${REINPLACE_CMD} -e '186s,);,)&,' \
47
		${WRKSRC}/creox/effects_dsp/tremoloprocessor.cpp
48
35
49
.include <bsd.port.mk>
36
.include <bsd.port.mk>
(-)audio/creox/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (creox-0.2.2rc2.tar.bz2) = 176367094866cf7c811df0cf33acb69fb5e1681bd17414d0cc90df398c30429f
1
SHA256 (creox-0.3.0.tar.gz) = 7ca8ea0d54eeeb50e8df8bbe3832ef0e68880c00bf6f77aee1fd567beb457b23
2
SIZE (creox-0.2.2rc2.tar.bz2) = 670791
2
SIZE (creox-0.3.0.tar.gz) = 216287
(-)audio/creox/files/patch-creox__effects_dsp__distortionprocessor.cpp (+32 lines)
Line 0 Link Here
1
--- creox/effects_dsp/distortionprocessor.cpp.orig
2
+++ creox/effects_dsp/distortionprocessor.cpp
3
@@ -423,7 +424,8 @@
4
 {
5
 	const float omega = 2.0f*float(M_PI)*centerFrequency/m_samplerate_f;
6
 	float sn,cs;
7
-	sincosf(omega, &sn, &cs);
8
+	sn = sinf(omega);
9
+	cs = cosf(omega);
10
 	const float alpha = sn*sinhf(float(M_LN2/2.0)*bandwidth*(omega/sn));
11
 	const float a0 = 1.0f/(1.0f + alpha);   //a0 = 1/a0
12
 
13
@@ -462,7 +464,8 @@
14
 	const float A = powf(10., gain/40.0f);
15
 	const float omega = 2.0f*float(M_PI)*frequency/m_samplerate_f;
16
 	float sn,cs;
17
-	sincosf(omega, &sn, &cs);
18
+	sn = sinf(omega);
19
+	cs = cosf(omega);
20
 	register const float beta = sn * sqrtf( (A*A + 1.0f)/slope - powf(A-1.0f, 2.0f) );
21
 
22
 	register const float AplusOne  = A + 1.0f;
23
@@ -500,7 +503,8 @@
24
 {
25
 	const float omega = 2.0f*float(M_PI)*cutoffFrequency/m_samplerate_f;
26
 	float sn,cs;
27
-	sincosf(omega, &sn, &cs);
28
+	sn = sinf(omega);
29
+	cs = cosf(omega);
30
 	const float alpha = sn/(2.0f * Q);
31
 	const float a0 = 1.0f/(1.0f + alpha);   //a0 = 1/a0
32
 
(-)audio/creox/files/patch-creox__effects_dsp__echoprocessor.cpp (+11 lines)
Line 0 Link Here
1
--- creox/effects_dsp/echoprocessor.cpp.orig	2011-06-22 06:27:40.000000000 +0900
2
+++ creox/effects_dsp/echoprocessor.cpp	2013-02-18 21:05:56.000000000 +0900
3
@@ -221,7 +221,7 @@
4
 			parallelEchoes += parEcho * m_parallelEchoParam[count].decay_f;
5
 #ifdef FP_FAST_FMAF
6
 			*(m_parallelEchoChain[count].buffer + m_parallelEchoChain[count].offset) =
7
-								std::fmaf(parEcho, m_parallelEchoParam[count].feedback_f, inputSample);
8
+								fmaf(parEcho, m_parallelEchoParam[count].feedback_f, inputSample);
9
 #else
10
 			*(m_parallelEchoChain[count].buffer + m_parallelEchoChain[count].offset) =
11
 									inputSample + (parEcho * m_parallelEchoParam[count].feedback_f);
(-)audio/creox/files/patch-creox__effects_dsp__phaserprocessor.cpp (+22 lines)
Line 0 Link Here
1
--- creox/effects_dsp/phaserprocessor.cpp.orig
2
+++ creox/effects_dsp/phaserprocessor.cpp
3
@@ -156,7 +157,8 @@
4
 			{
5
 				const float omega = 2.0f * float(M_PI) * m_stepFrequency / m_samplerate_d;
6
 				float sn, cs;
7
-				sincosf(omega, &sn, &cs);
8
+				sn = sinf(omega);
9
+				cs = cosf(omega);
10
 				*(m_coefBuffPrelim++) = cs; // cs
11
 				*(m_coefBuffPrelim++) = sn / m_resonance; // alpha (m_resonance = 2.0*resonance)
12
 				m_stepFrequency *= m_expStep;
13
@@ -231,7 +233,8 @@
14
 			}
15
 
16
 			float sn, cs;
17
-			sincosf(omega, &sn, &cs);
18
+			sn = sinf(omega);
19
+			cs = cosf(omega);
20
 			register const float alpha = sn / m_resonance; // alpha (m_resonance = 2.0 * resonance)
21
 
22
 			// perform filter
(-)audio/creox/files/patch-creox__effects_dsp__tremoloprocessor.cpp (+13 lines)
Line 0 Link Here
1
--- creox/effects_dsp/tremoloprocessor.cpp.orig	2011-06-22 06:27:40.000000000 +0900
2
+++ creox/effects_dsp/tremoloprocessor.cpp	2013-02-18 21:04:20.000000000 +0900
3
@@ -182,8 +182,8 @@
4
 		register const float inputSample = *(inputBuffer++) * m_inputGain_f;
5
 #ifdef FP_FAST_FMAF
6
 		*(outputBuffer++) = (inputSample * m_dry_f)
7
-						  + (inputSample * m_wet_f * std::fmaf(amplitudeModulation,
8
-															   m_modulationMulti, m_modulationShift);
9
+						  + (inputSample * m_wet_f * fmaf(amplitudeModulation,
10
+															   m_modulationMulti, m_modulationShift));
11
 #else
12
 		*(outputBuffer++) = (inputSample * m_dry_f)
13
 						  + (inputSample * m_wet_f * ((amplitudeModulation * m_modulationMulti)
(-)audio/creox/files/patch-error_h (-60 lines)
Lines 1-60 Link Here
1
--- creox/dsp_flow/threadeffector.cpp.orig	2009-08-18 22:37:58.000000000 +0700
2
+++ creox/dsp_flow/threadeffector.cpp	2009-08-18 22:38:37.000000000 +0700
3
@@ -22,6 +22,7 @@
4
 #include <cmath>
5
 #include <cstring>
6
 #include <iostream>
7
+#include <errno.h>
8
 #include <klocale.h>
9
 #include <kapplication.h>
10
 #include <kglobal.h>
11
--- creox/effects_dsp/distortionprocessor.cpp.orig	2009-08-18 22:37:58.000000000 +0700
12
+++ creox/effects_dsp/distortionprocessor.cpp	2009-08-18 22:01:18.000000000 +0700
13
@@ -25,6 +25,7 @@
14
 #include <cassert>
15
 #include <cstring>
16
 #include <iostream>
17
+#include <errno.h>
18
 #include "crdatastream.h"
19
 #include "distortionprocessor.h"
20
 
21
--- creox/effects_dsp/echoprocessor.cpp.orig	2009-08-18 22:37:58.000000000 +0700
22
+++ creox/effects_dsp/echoprocessor.cpp	2009-08-18 21:57:41.000000000 +0700
23
@@ -22,6 +22,7 @@
24
 #include <cmath>
25
 #include <cstring>
26
 #include <iostream>
27
+#include <errno.h>
28
 #include "crdatastream.h"
29
 #include "echoprocessor.h"
30
 
31
--- creox/effects_dsp/flangerprocessor.cpp.orig	2009-08-18 22:37:58.000000000 +0700
32
+++ creox/effects_dsp/flangerprocessor.cpp	2009-08-18 21:56:44.000000000 +0700
33
@@ -21,6 +21,7 @@
34
 #include <cstring>
35
 #include <cmath>
36
 #include <iostream>
37
+#include <errno.h>
38
 #include "crdatastream.h"
39
 #include "flangerprocessor.h"
40
 
41
--- creox/effects_dsp/phaserprocessor.cpp.orig	2009-08-18 22:37:58.000000000 +0700
42
+++ creox/effects_dsp/phaserprocessor.cpp	2009-08-18 21:55:01.000000000 +0700
43
@@ -26,6 +26,7 @@
44
 #include <cstring>
45
 #include <cmath>
46
 #include <iostream>
47
+#include <errno.h>
48
 #include "crdatastream.h"
49
 #include "phaserprocessor.h"
50
 
51
--- creox/effects_dsp/tremoloprocessor.cpp.orig	2009-08-18 22:37:58.000000000 +0700
52
+++ creox/effects_dsp/tremoloprocessor.cpp	2009-08-18 21:28:37.000000000 +0700
53
@@ -21,6 +21,7 @@
54
 #include <cassert>
55
 #include <cmath>
56
 #include <iostream>
57
+#include <errno.h>
58
 #include "crdatastream.h"
59
 #include "tremoloprocessor.h"
60
 
(-)audio/creox/files/patch-sincosf (-54 lines)
Lines 1-54 Link Here
1
--- creox/effects_dsp/distortionprocessor.cpp.orig	2009-08-18 22:37:58.000000000 +0700
2
+++ creox/effects_dsp/distortionprocessor.cpp	2009-08-18 22:01:18.000000000 +0700
3
@@ -423,7 +424,8 @@
4
 {
5
 	const float omega = 2.0f*float(M_PI)*centerFrequency/m_samplerate_f;
6
 	float sn,cs;
7
-	sincosf(omega, &sn, &cs);
8
+	sn = sinf(omega);
9
+	cs = cosf(omega);
10
 	const float alpha = sn*sinhf(float(M_LN2/2.0)*bandwidth*(omega/sn));
11
 	const float a0 = 1.0f/(1.0f + alpha);   //a0 = 1/a0
12
 
13
@@ -462,7 +464,8 @@
14
 	const float A = powf(10., gain/40.0f);
15
 	const float omega = 2.0f*float(M_PI)*frequency/m_samplerate_f;
16
 	float sn,cs;
17
-	sincosf(omega, &sn, &cs);
18
+	sn = sinf(omega);
19
+	cs = cosf(omega);
20
 	register const float beta = sn * sqrtf( (A*A + 1.0f)/slope - powf(A-1.0f, 2.0f) );
21
 
22
 	register const float AplusOne  = A + 1.0f;
23
@@ -500,7 +503,8 @@
24
 {
25
 	const float omega = 2.0f*float(M_PI)*cutoffFrequency/m_samplerate_f;
26
 	float sn,cs;
27
-	sincosf(omega, &sn, &cs);
28
+	sn = sinf(omega);
29
+	cs = cosf(omega);
30
 	const float alpha = sn/(2.0f * Q);
31
 	const float a0 = 1.0f/(1.0f + alpha);   //a0 = 1/a0
32
 
33
--- creox/effects_dsp/phaserprocessor.cpp.orig	2009-08-18 22:37:58.000000000 +0700
34
+++ creox/effects_dsp/phaserprocessor.cpp	2009-08-18 21:55:01.000000000 +0700
35
@@ -156,7 +157,8 @@
36
 			{
37
 				const float omega = 2.0f * float(M_PI) * m_stepFrequency / m_samplerate_d;
38
 				float sn, cs;
39
-				sincosf(omega, &sn, &cs);
40
+				sn = sinf(omega);
41
+				cs = cosf(omega);
42
 				*(m_coefBuffPrelim++) = cs; // cs
43
 				*(m_coefBuffPrelim++) = sn / m_resonance; // alpha (m_resonance = 2.0*resonance)
44
 				m_stepFrequency *= m_expStep;
45
@@ -231,7 +233,8 @@
46
 			}
47
 
48
 			float sn, cs;
49
-			sincosf(omega, &sn, &cs);
50
+			sn = sinf(omega);
51
+			cs = cosf(omega);
52
 			register const float alpha = sn / m_resonance; // alpha (m_resonance = 2.0 * resonance)
53
 
54
 			// perform filter
(-)audio/creox/pkg-descr (-9 / +9 lines)
Lines 1-11 Link Here
1
Creox is a real-time sound processor.  You can plug your electric guitar or
1
Creox is a real-time sound processor. You can plug your electric guitar
2
any other musical instrument directly to the PC's sound card and start
2
or any other musical instrument directly to the PC's sound card and
3
experimenting with various sound effects.  Creox offers nice user-friendly
3
start experimenting with various sound effects. Creox offers nice
4
KDE-based GUI, a preset support, a low-latency DSP engine, and each effect
4
user-friendly KDE-based GUI, a preset support, a low-latency DSP engine,
5
parameter can be altered "on the fly".
5
and each effect parameter can be altered "on the fly".
6
6
7
As Creox is a JACK application, the output sound can be routed to the other
7
As Creox is a JACK application, the output sound can be routed to the
8
JACK-aware applications, and the audio input can be taken as the output from
8
other JACK-aware applications, and the audio input can be taken as the
9
the other JACK client.
9
output from the other JACK client.
10
10
11
WWW: http://zyzstar.kosoru.com/?creox
11
WWW: http://stacktrace.dk/project/creox-4/
(-)audio/creox/pkg-plist (-22 / +3 lines)
Lines 1-30 Link Here
1
bin/creox
1
bin/creox
2
share/doc/HTML/en/creox/common
2
share/applications/kde4/creox.desktop
3
share/doc/HTML/en/creox/index.docbook
4
share/doc/HTML/en/creox/index.cache.bz2
5
share/locale/ru/LC_MESSAGES/creox.mo
6
share/apps/creox/icons/hicolor/16x16/actions/distortion.png
7
share/apps/creox/icons/hicolor/16x16/actions/echo.png
8
share/apps/creox/icons/hicolor/16x16/actions/flanger.png
9
share/apps/creox/icons/hicolor/16x16/actions/phaser.png
10
share/apps/creox/icons/hicolor/16x16/actions/preset_chain.png
11
share/apps/creox/icons/hicolor/16x16/actions/preset_nochain.png
12
share/apps/creox/icons/hicolor/16x16/actions/tremolo.png
13
share/apps/creox/icons/hicolor/48x48/actions/sound_card_properties.png
14
share/apps/creox/pics/sound_card_properties.png
15
share/apps/creox/pics/crsplash.png
16
share/apps/creox/creoxui.rc
3
share/apps/creox/creoxui.rc
17
share/applnk/Applications/creox.desktop
4
share/apps/creox/pics/crsplash.png
5
share/config.kcfg/creox4.kcfg
18
share/icons/hicolor/16x16/apps/creox.png
6
share/icons/hicolor/16x16/apps/creox.png
19
share/icons/hicolor/32x32/apps/creox.png
7
share/icons/hicolor/32x32/apps/creox.png
20
share/icons/hicolor/48x48/apps/creox.png
8
share/icons/hicolor/48x48/apps/creox.png
21
share/icons/hicolor/64x64/apps/creox.png
9
share/icons/hicolor/64x64/apps/creox.png
22
@dirrm share/apps/creox/icons/hicolor/48x48/actions
23
@dirrm share/apps/creox/icons/hicolor/48x48
24
@dirrm share/apps/creox/icons/hicolor/16x16/actions
25
@dirrm share/apps/creox/icons/hicolor/16x16
26
@dirrm share/apps/creox/icons/hicolor
27
@dirrm share/apps/creox/icons
28
@dirrm share/apps/creox/pics
10
@dirrm share/apps/creox/pics
29
@dirrm share/apps/creox
11
@dirrm share/apps/creox
30
@dirrm share/doc/HTML/en/creox

Return to bug 176536