aboutsummaryrefslogtreecommitdiffstats
path: root/audio/cmt/Makefile
blob: aa903b1c8f1188e1577a822221424c89f443f288 (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: Tilman Linneweh <arved@FreeBSD.org>
# $FreeBSD$

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

MAINTAINER= ports@FreeBSD.org
COMMENT=    The Computer Music Toolkit - a collection of LADSPA plugins

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

WRKSRC=     ${WRKDIR}/${PORTNAME}
BUILD_WRKSRC=   ${WRKDIR}/${PORTNAME}/src

USES=       gmake
NO_STAGE=   yes
MAKEFILE=   makefile
MAKE_ARGS=  CXX="${CXX}" \
        CXXFLAGS="${CXXFLAGS} -fPIC -I${LOCALBASE}/include"
ALL_TARGET= targets

PLIST_FILES=    lib/ladspa/cmt.so

post-patch:
    @${FIND} ${BUILD_WRKSRC} -name '*.cpp' | ${XARGS} \
        ${REINPLACE_CMD} -e "s|<malloc.h>|<stdlib.h>|g"

do-install:
    @${MKDIR} ${PREFIX}/lib/ladspa
    ${INSTALL_DATA} ${WRKSRC}/plugins/cmt.so ${PREFIX}/lib/ladspa/

.include <bsd.port.mk>