aboutsummaryrefslogtreecommitdiff
path: root/audio/caps-plugins/Makefile
blob: 0d44d566d480bd1f8311f560679fd061ee72d87c (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
# Created by: trasz <trasz@pin.if.uz.zgora.pl>
# $FreeBSD$

PORTNAME=	caps-plugins
PORTVERSION=	0.4.5
CATEGORIES=	audio
MASTER_SITES=	http://quitte.de/dsp/
DISTNAME=	caps_${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	The C* Audio Plugin Suite

BUILD_DEPENDS=	${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
RUN_DEPENDS=	${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa

OPTIONS_DEFINE=	OPTIMIZED_CFLAGS

LICENSE=	GPLv2 GPLv3
LICENSE_COMB=	dual

WRKSRC=		${WRKDIR}/caps-${PORTVERSION}

USES=		gmake
MAKE_ARGS=	CC="${CXX}" CFLAGS="${CXXFLAGS} -fPIC -DPIC"

PLIST_FILES=	lib/ladspa/caps.so share/ladspa/rdf/caps.rdf
PLIST_DIRSTRY=	share/ladspa/rdf share/ladspa

OPTIMIZED_CFLAGS_CFLAGS=	-O2 -ffast-math -funroll-loops

do-install:
	@${MKDIR} ${PREFIX}/lib/ladspa
	${INSTALL_DATA} ${WRKSRC}/caps.so ${PREFIX}/lib/ladspa
	@${MKDIR} ${PREFIX}/share/ladspa/rdf
	${INSTALL_DATA} ${WRKSRC}/caps.rdf ${PREFIX}/share/ladspa/rdf

.include <bsd.port.mk>