summaryrefslogtreecommitdiff
path: root/audio/pure-audio/Makefile
blob: f867cf9ea51f3a8e26f38cc266a86f9837c94d28 (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
# Created by: Zhihao Yuan <lichray@gmail.com>
# $FreeBSD$

PORTNAME=	pure-audio
PORTVERSION=	0.5
CATEGORIES=	audio

MAINTAINER=	lichray@gmail.com
COMMENT=	A digital audio interface for the Pure language

LIB_DEPENDS=	portaudio.2:${PORTSDIR}/audio/portaudio2 \
		samplerate:${PORTSDIR}/audio/libsamplerate \
		sndfile:${PORTSDIR}/audio/libsndfile \
		fftw3:${PORTSDIR}/math/fftw3

USE_PURE=	yes
NO_STAGE=	yes

post-patch:
	${REINPLACE_CMD} \
		-e "s|-lportaudio|-I${LOCALBASE}/include/portaudio2 -L${LOCALBASE}/lib/portaudio2 -lportaudio|" \
		-e "s|portaudio.h|portaudio2/portaudio.h|g" \
	   	${WRKSRC}/Makefile

.include "${.CURDIR}/../../lang/pure/bsd.pure.mk"
.include <bsd.port.mk>