aboutsummaryrefslogtreecommitdiff
path: root/audio/autotalent/Makefile
blob: 5daeb5d5a2b9f58c979e96d8506d87ff9ed2eabb (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
PORTNAME=	autotalent
PORTVERSION=	0.2
PORTREVISION=	1
CATEGORIES=	audio
MASTER_SITES=	http://tombaran.info/
DIST_SUBDIR=	repacked

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Real-time pitch correction plugin for LADSPA
WWW=		http://tombaran.info/autotalent.html

LICENSE=	BSD3CLAUSE GPLv2
LICENSE_COMB=	multi

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

USES=		gmake

MAKE_ARGS=	CXX="${CXX}" CC="${CC}" CPP="${CPP}" \
		CXXFLAGS="${CXXFLAGS} -fPIC -I${LOCALBASE}/include"

ALL_TARGET=	targets

PLIST_FILES=	lib/ladspa/autotalent.so

post-patch:
	@${FIND} ${BUILD_WRKSRC} -name '*.cpp' | ${XARGS} \
		${REINPLACE_CMD} -e "s|<malloc.h>|<stdlib.h>|g"
	${REINPLACE_CMD} -e "s,-O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math,${CFLAGS}," ${WRKSRC}/Makefile

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/ladspa
	${INSTALL_LIB} ${WRKSRC}/autotalent.so ${STAGEDIR}${PREFIX}/lib/ladspa

.include <bsd.port.mk>