summaryrefslogtreecommitdiff
path: root/audio/spotify-player/Makefile
blob: 7b6b82a3035acbec8912bc0b903b1b0574ce570c (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
PORTNAME=	spotify-player
DISTVERSIONPREFIX=	v
DISTVERSION=	0.10.0
PORTREVISION=	3
CATEGORIES=	audio

MAINTAINER=	jfree@FreeBSD.org
COMMENT=	Command driven spotify player
WWW=		https://github.com/aome510/spotify-player

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig

USES=		cargo ssl

USE_GITHUB=	yes
GH_ACCOUNT=	aome510

CARGO_CARGOTOML=	${WRKSRC}/spotify_player/Cargo.toml
CARGO_FEATURES=		--no-default-features
CARGO_INSTALL_PATH=	./spotify_player

PLIST_FILES=	bin/spotify_player
PORTDOCS=	README.md

OPTIONS_DEFINE=		DBUS DOCS IMAGE LYRICS
OPTIONS_DEFAULT=	DBUS PORTAUDIO
OPTIONS_SINGLE=		BACKEND
OPTIONS_SINGLE_BACKEND=	PORTAUDIO PULSEAUDIO

DBUS_DESC=	Media control via MPRIS D-Bus
IMAGE_DESC=	Terminal album art rendering
LYRICS_DESC=	Fetch lyrics for current track

DBUS_LIB_DEPENDS=	libdbus-1.so:devel/dbus
DBUS_VARS=		CARGO_FEATURES+=media-control

IMAGE_VARS=	CARGO_FEATURES+=image

LYRICS_VARS=	CARGO_FEATURES+=lyric-finder

PORTAUDIO_LIB_DEPENDS=	libportaudio.so:audio/portaudio
PORTAUDIO_VARS=		CARGO_FEATURES+=portaudio-backend

PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
PULSEAUDIO_VARS=	CARGO_FEATURES+=pulseaudio-backend

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/spotify_player

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>