aboutsummaryrefslogtreecommitdiffstats
path: root/audio/aubio/Makefile
blob: 5ca0f67f8bac6b830aab694032d30cf84625a87f (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
47
48
49
50
51
52
# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org>
# $FreeBSD$

PORTNAME=   aubio
PORTVERSION=    0.4.4
CATEGORIES= audio
MASTER_SITES=   http://aubio.org/pub/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Library for audio labelling

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  txt2man:textproc/txt2man

USES=       pkgconfig tar:bzip2 waf
CONFIGURE_ARGS= --mandir=${MANPREFIX}/man
USE_LDCONFIG=   yes

OPTIONS_DEFINE=     COMPLEX DOXYGEN FFMPEG FFTW JACK SAMPLERATE SNDFILE
OPTIONS_DEFAULT=    JACK SAMPLERATE SNDFILE FFTW
OPTIONS_SUB=        yes

COMPLEX_DESC=       Compile with C99 complex.h
COMPLEX_CONFIGURE_ENABLE=   complex
DOXYGEN_BUILD_DEPENDS=  doxygen:devel/doxygen
DOXYGEN_CONFIGURE_OFF=  --disable-doxygen
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
FFMPEG_CONFIGURE_ENABLE=    avcodec
JACK_LIB_DEPENDS=   libjack.so:audio/jack
JACK_CONFIGURE_ENABLE=  jack
SAMPLERATE_LIB_DEPENDS= libsamplerate.so:audio/libsamplerate
SAMPLERATE_CONFIGURE_ENABLE=    samplerate
FFTW_DESC=      Use single precision FFTW3 instead of built-in OOURA
FFTW_CONFIGURE_ENABLE=  fftw3f
FFTW_BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3
FFTW_LIB_DEPENDS=   libfftw3f.so:math/fftw3-float
SNDFILE_LIB_DEPENDS=    libsndfile.so:audio/libsndfile
SNDFILE_CONFIGURE_ENABLE=   sndfile

post-patch:
    @${REINPLACE_CMD} -e \
        '/pkgconfig/s|$${LIBDIR}|&data|' ${WRKSRC}/waflib/TaskGen.py

post-install:
.for b in mfcc notes onset pitch quiet track
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/aubio${b}
.endfor
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libaubio.so

.include <bsd.port.mk>