aboutsummaryrefslogtreecommitdiffstats
path: root/audio/ladspa/Makefile
blob: 5ec467b61bc0134b73e5d989e2fbe5efe6100228 (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:    ladspa
# Date created:         11 May 2002
# Whom:             Tilman Linneweh <arved@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=   ladspa
PORTVERSION=    1.13
CATEGORIES= audio
MASTER_SITES=   http://www.ladspa.org/download/
DISTNAME=   ladspa_sdk_${PORTVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= arved@FreeBSD.org
COMMENT=    Linux Audio Developer's Simple Plugin API

LICENSE=    LGPL21
LICENSE_FILE=   ${WRKSRC}/doc/COPYING

WRKSRC=     ${WRKDIR}/ladspa_sdk
USE_GMAKE=  yes
USE_LDCONFIG=   yes
PROGRAM_FILES=  analyseplugin applyplugin listplugins
PLUGIN_FILES=   amp.so delay.so filter.so noise.so sine.so
PLUGIN_DIR?=    ${PREFIX}/lib/ladspa/
MAKEFILE=   makefile
ALL_TARGET= targets
BUILD_WRKSRC=   ${WRKSRC}/src
MAKE_JOBS_SAFE= yes

post-patch:
    ${REINPLACE_CMD} -e 's,-ldl,,; s,-O3,${CFLAGS},; \
        s,^CC,#CC,;s,^CPP,#CPP,;s,CPP,CXX,; s,^CXXFLAGS.*=,CXXFLAGS+=,' \
        ${WRKSRC}/src/makefile

do-install:
    @${INSTALL_DATA} ${WRKSRC}/src/ladspa.h ${PREFIX}/include
.for file in ${PROGRAM_FILES}
    @${INSTALL_PROGRAM} ${WRKSRC}/bin/${file} ${PREFIX}/bin
.endfor
    @${MKDIR} ${PLUGIN_DIR}
.for file in ${PLUGIN_FILES}
    @${INSTALL_DATA} ${WRKSRC}/plugins/${file} ${PLUGIN_DIR}
.endfor

.include <bsd.port.mk>