aboutsummaryrefslogtreecommitdiffstats
path: root/audio/amb-plugins/Makefile
blob: 41960bd1620bfbd12bff3ae6da10a8dafb581750 (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
# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org>
# $FreeBSD$

PORTNAME=   amb-plugins
PORTVERSION=    0.8.1
CATEGORIES= audio
MASTER_SITES=   http://kokkinizita.linuxaudio.org/linuxaudio/downloads/
DISTNAME=   AMB-plugins-${PORTVERSION}
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} fa-plugins.rdf
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}
DIST_SUBDIR=    ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Ambisonics plugins, mainly to be used within Ardour

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

LICENSE=    GPLv2 GPLv3
LICENSE_COMB=   dual

USES=       gmake
USE_BZIP2=  yes

PLIST_FILES=    lib/ladspa/ambisonic0.so lib/ladspa/ambisonic1.so \
        lib/ladspa/ambisonic2.so lib/ladspa/ambisonic3.so \
        share/ladspa/rdf/fa-plugins.rdf
PLIST_DIRSTRY=  share/ladspa/rdf share/ladspa

post-patch:
    @${REINPLACE_CMD} -e 's|[[:space:]]-O3||g ; \
        s|g++[[:space:]]|$$(CXX) |g' ${WRKSRC}/Makefile

do-install:
    @${MKDIR} ${PREFIX}/lib/ladspa
.for i in 0 1 2 3
    ${INSTALL_DATA} ${WRKSRC}/ambisonic${i}.so ${PREFIX}/lib/ladspa
.endfor
    @${MKDIR} ${PREFIX}/share/ladspa/rdf
    ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/fa-plugins.rdf \
        ${PREFIX}/share/ladspa/rdf

.include <bsd.port.mk>