summaryrefslogtreecommitdiff
path: root/audio/harp/Makefile
blob: 026a9db53075a0784e124592b6c3250a38c4a023 (plain)
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

PORTNAME=	harp
PORTVERSION=	0.6.0
CATEGORIES=	audio

MAINTAINER=	heckendorfc@gmail.com
COMMENT=	Minimalist audio player

LICENSE=	GPLv3

BROKEN_FreeBSD_13=	ld: error: duplicate symbol: h
BROKEN_FreeBSD_14=	ld: error: duplicate symbol: h

USE_GITHUB=	yes
GH_ACCOUNT=	heckendorfc

USES=		cmake sqlite

USE_LDCONFIG=	yes

OPTIONS_DEFINE=	AAC FLAC MP3 SHOUTCAST VORBIS DOCS
OPTIONS_SINGLE=	AUDIO_OUT
OPTIONS_SINGLE_AUDIO_OUT=	JACK OSS PULSEAUDIO
OPTIONS_DEFAULT=	AAC FLAC MP3 OSS SHOUTCAST VORBIS
OPTIONS_SUB=	yes

PORTDOCS=	README

AAC_LIB_DEPENDS=	libfaad.so:audio/faad
AAC_CMAKE_ON=		-DWITH_AAC:BOOL=ON
AAC_CMAKE_OFF=		-DWITH_AAC:BOOL=OFF

FLAC_LIB_DEPENDS=	libFLAC.so:audio/flac
FLAC_CMAKE_ON=		-DWITH_FLAC:BOOL=ON
FLAC_CMAKE_OFF=		-DWITH_FLAC:BOOL=OFF

MP3_LIB_DEPENDS+=	libmpg123.so:audio/mpg123
MP3_CMAKE_ON=		-DWITH_MP3:BOOL=ON
MP3_CMAKE_OFF=		-DWITH_MP3:BOOL=OFF

SHOUTCAST_CMAKE_ON=	-DWITH_STREAM:BOOL=ON
SHOUTCAST_CMAKE_OFF=	-DWITH_STREAM:BOOL=OFF

VORBIS_LIB_DEPENDS=	libvorbisfile.so:audio/libvorbis
VORBIS_CMAKE_ON=	-DWITH_VORBIS:BOOL=ON
VORBIS_CMAKE_OFF=	-DWITH_VORBIS:BOOL=OFF

OSS_CMAKE_ON=		-DWITH_OSS:BOOL=ON
OSS_CMAKE_OFF=		-DWITH_OSS:BOOL=OFF

JACK_LIB_DEPENDS=	libjack.so:audio/jack
JACK_LIB_DEPENDS+=	libsamplerate.so:audio/libsamplerate
JACK_CMAKE_ON=		-DWITH_JACK:BOOL=ON
JACK_CMAKE_OFF=		-DWITH_JACK:BOOL=OFF

PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
PULSEAUDIO_CMAKE_ON=	-DWITH_PULSE:BOOL=ON
PULSEAUDIO_CMAKE_OFF=	-DWITH_PULSE:BOOL=OFF

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>