aboutsummaryrefslogtreecommitdiff
path: root/audio/creox/Makefile
blob: 0df32c8ae400e2be072734edac0c2f479b21ecb0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:	Creox
# Date created:				18 Aug 2009
# Whom:					Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	creox
DISTVERSION=	0.2.2rc2
PORTREVISION=	3
CATEGORIES=	audio kde
MASTER_SITES=	http://zyzstar.kosoru.com/projects/creox/downloads/

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	A real-time sound processor

LIB_DEPENDS=	jack.0:${PORTSDIR}/audio/jack

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>