summaryrefslogtreecommitdiff
path: root/audio/sonic-visualiser/Makefile
blob: 1c77d0efa6abfe89c328aa98f82b6c7af6ed8486 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# $FreeBSD$

PORTNAME=	sonic-visualiser
PORTVERSION=	2.5
PORTREVISION=	2
CATEGORIES=	audio
MASTER_SITES=	https://code.soundsoftware.ac.uk/attachments/download/1675/

MAINTAINER=	uddka@student.kit.edu
COMMENT=	Program for viewing and analysing the contents of music audio files

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libfftw3.so:math/fftw3 \
		libfftw3f.so:math/fftw3-float \
		libsamplerate.so:audio/libsamplerate \
		libsndfile.so:audio/libsndfile \
		librubberband.so:audio/rubberband \
		libserd-0.so:devel/serd \
		libsord-0.so:devel/sord \
		libvamp-hostsdk.so:audio/vamp-plugin-sdk

USES=	autoreconf desktop-file-utils pkgconfig

GNU_CONFIGURE=	yes
USE_QT5=	buildtools_build core gui network qmake_build testlib widgets xml
USE_XORG=	x11
USE_GL=		gl

OPTIONS_DEFINE=	DEBUG FISHSOUND ID3TAG JACK LRDF MAD OGGZ OSC PORTAUDIO PULSEAUDIO
OPTIONS_DEFAULT=	FISHSOUND ID3TAG MAD OGGZ PORTAUDIO
OPTIONS_SUB=	yes

DEBUG_CONFIGURE_ENABLE=	debug

FISHSOUND_CONFIGURE_WITH=	fishsound
FISHSOUND_DESC=	FLAC, Speex and Vorbis codecs support
FISHSOUND_LIB_DEPENDS=	libfishsound.so:audio/libfishsound \
			libogg.so:audio/libogg \
			libvorbis.so:audio/libvorbis \
			libspeex.so:audio/speex \
			libFLAC.so:audio/flac

ID3TAG_CONFIGURE_WITH=	id3tag
ID3TAG_LIB_DEPENDS=	libid3tag.so:audio/libid3tag

JACK_CONFIGURE_WITH=	jack
JACK_LIB_DEPENDS=	libjack.so:audio/jack

LRDF_CONFIGURE_WITH=	lrdf
LRDF_DESC=	Resource Description Framework support
LRDF_LIB_DEPENDS=	liblrdf.so:textproc/liblrdf

MAD_CONFIGURE_WITH=	mad
MAD_LIB_DEPENDS=	libmad.so:audio/libmad

OGGZ_CONFIGURE_WITH=	oggz
OGGZ_DESC=	Ogg container format support
OGGZ_LIB_DEPENDS=	liboggz.so:audio/liboggz \
			libogg.so:audio/libogg

OSC_CONFIGURE_WITH=	lo
OSC_DESC=	OpenSound Control support
OSC_LIB_DEPENDS=	liblo.so:audio/liblo

PORTAUDIO_CONFIGURE_WITH=	portaudio
PORTAUDIO_LIB_DEPENDS=	libportaudio.so:audio/portaudio

PULSEAUDIO_CONFIGURE_WITH=	pulse
PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/sonic-visualiser ${STAGEDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/sonic-visualiser.desktop ${STAGEDIR}${PREFIX}/share/applications
	${INSTALL_DATA} ${WRKSRC}/x-sonicvisualiser.desktop ${STAGEDIR}${PREFIX}/share/applications
	${INSTALL_DATA} ${WRKSRC}/x-sonicvisualiser-layer.desktop  ${STAGEDIR}${PREFIX}/share/applications
	${INSTALL_DATA} ${WRKSRC}/icons/sv-icon.svg ${STAGEDIR}${PREFIX}/share/pixmaps
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

do-install-OSC-on:
	${INSTALL_DATA} ${WRKSRC}/README.OSC ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>