aboutsummaryrefslogtreecommitdiff
path: root/audio/ncmpcpp/Makefile
blob: d6f88daaccac3d4dab7c781f3bf74306398b418b (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
PORTNAME=	ncmpcpp
DISTVERSION=	0.9.2
PORTREVISION=	4
CATEGORIES=	audio
MASTER_SITES=	https://ncmpcpp.rybczak.net/stable/

MAINTAINER=	yamagi@yamagi.org
COMMENT=	Ncurses mpd client, clone of ncmpc with some new features

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libmpdclient.so:audio/libmpdclient \
		libfftw3.so:math/fftw3 \
		libicuuc.so:devel/icu \
		libboost_filesystem.so:devel/boost-libs \
		libcurl.so:ftp/curl

USES=		compiler:c++14-lang gnome iconv libtool localbase ncurses \
		pkgconfig readline tar:bzip2
USE_GNOME=	glib20
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	ncursesw_CFLAGS="-L${NCURSESLIB}" ncursesw_LIBS="-lncursesw"

PLIST_FILES=	bin/ncmpcpp \
		man/man1/ncmpcpp.1.gz
PORTDOCS=	AUTHORS CHANGELOG.md COPYING bindings config

OPTIONS_DEFINE=	CLOCK DOCS OUTPUTS TAGLIB VISUALIZER
OPTIONS_DEFAULT=	CLOCK OUTPUTS TAGLIB VISUALIZER

CLOCK_DESC=	clock-screen support
OUTPUTS_DESC=	Enable outputs screen
TAGLIB_DESC=	taglib support
VISUALIZER_DESC=	Enable music visualizer screen

CLOCK_CONFIGURE_ENABLE=	clock
OUTPUTS_CONFIGURE_ENABLE=	outputs
TAGLIB_LIB_DEPENDS=	libtag.so:audio/taglib
TAGLIB_CONFIGURE_WITH=	taglib
VISUALIZER_BUILD_DEPENDS=	${LOCALBASE}/include/fftw3.h:math/fftw3
VISUALIZER_CONFIGURE_ENABLE=	visualizer

post-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/ncmpcpp ${STAGEDIR}${PREFIX}/bin/

.include <bsd.port.mk>