2013-01-07 21:50:20 +01:00
|
|
|
# Created by: Dennis Herrmann <adox@mcx2.org>
|
2008-08-30 14:12:07 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ncmpcpp
|
2012-04-02 15:18:13 +02:00
|
|
|
PORTVERSION= 0.5.10
|
2014-06-16 17:30:39 +02:00
|
|
|
PORTREVISION= 3
|
2008-08-30 14:12:07 +02:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://unkart.ovh.org/ncmpcpp/ \
|
|
|
|
http://mirror.mcx2.org/
|
|
|
|
|
2009-03-06 19:14:36 +01:00
|
|
|
MAINTAINER= dhn@FreeBSD.org
|
2014-06-09 13:21:52 +02:00
|
|
|
COMMENT= ncurses mpd client, clone of ncmpc with some new features
|
2008-08-30 14:12:07 +02:00
|
|
|
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS= libmpdclient.so:${PORTSDIR}/audio/libmpdclient \
|
|
|
|
libfftw3.so:${PORTSDIR}/math/fftw3
|
2010-01-08 22:56:36 +01:00
|
|
|
|
2014-06-16 17:30:39 +02:00
|
|
|
USES= iconv libtool ncurses pkgconfig tar:bzip2
|
2013-12-29 12:31:22 +01:00
|
|
|
USE_GCC= any
|
2008-08-30 14:12:07 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GNOME= glib20
|
2014-06-16 17:30:39 +02:00
|
|
|
USE_AUTOTOOLS= automake aclocal
|
2013-07-16 07:42:36 +02:00
|
|
|
AUTOMAKE_ARGS= --add-missing
|
|
|
|
ACLOCAL_ARGS= --automake-acdir=${ACLOCAL_DIR} -I ${LOCALBASE}/share/aclocal
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2008-08-30 14:12:07 +02:00
|
|
|
|
2014-07-15 16:41:47 +02:00
|
|
|
OPTIONS_DEFINE= CURL CLOCK UTF8 TAGLIB OUTPUTS VISUALIZER DOCS
|
2013-01-07 21:50:20 +01:00
|
|
|
OPTIONS_DEFAULT= CURL CLOCK OUTPUTS VISUALIZER
|
|
|
|
CURL_DESC= Enable fetching lyrics from the Internet
|
|
|
|
CLOCK_DESC= clock-screen support
|
|
|
|
TAGLIB_DESC= taglib support
|
|
|
|
OUTPUTS_DESC= Enable outputs screen
|
|
|
|
VISUALIZER_DESC= Enable music visualizer screen
|
2008-08-30 14:12:07 +02:00
|
|
|
|
2013-01-07 21:50:20 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2008-08-30 14:12:07 +02:00
|
|
|
|
|
|
|
PLIST_FILES= bin/ncmpcpp \
|
2014-04-01 22:11:29 +02:00
|
|
|
man/man1/ncmpcpp.1.gz \
|
2008-10-17 21:10:13 +02:00
|
|
|
%%DOCSDIR%%/config \
|
|
|
|
%%DOCSDIR%%/keys \
|
2008-09-06 23:04:42 +02:00
|
|
|
%%DOCSDIR%%/NEWS \
|
2008-12-06 16:28:17 +01:00
|
|
|
%%DOCSDIR%%/AUTHORS \
|
|
|
|
%%DOCSDIR%%/COPYING
|
2008-09-06 23:04:42 +02:00
|
|
|
PLIST_DIRS= %%DOCSDIR%%
|
2008-08-30 14:12:07 +02:00
|
|
|
|
2013-01-07 21:50:20 +01:00
|
|
|
.if ${PORT_OPTIONS:MCURL}
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl
|
2008-08-30 14:12:07 +02:00
|
|
|
CONFIGURE_ARGS+= --with-curl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-curl=no
|
|
|
|
.endif
|
|
|
|
|
2013-01-07 21:50:20 +01:00
|
|
|
.if ${PORT_OPTIONS:MCLOCK}
|
2009-02-08 22:38:49 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-clock
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-clock
|
|
|
|
.endif
|
|
|
|
|
2013-01-07 21:50:20 +01:00
|
|
|
.if ${PORT_OPTIONS:MUTF8}
|
2009-02-08 22:38:49 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-unicode
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-unicode
|
|
|
|
.endif
|
|
|
|
|
2013-01-07 21:50:20 +01:00
|
|
|
.if ${PORT_OPTIONS:MTAGLIB}
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libtag.so:${PORTSDIR}/audio/taglib
|
2008-08-30 14:12:07 +02:00
|
|
|
CONFIGURE_ARGS+= --with-taglib
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-taglib=no
|
|
|
|
.endif
|
|
|
|
|
2013-01-07 21:50:20 +01:00
|
|
|
.if ${PORT_OPTIONS:MOUTPUTS}
|
2011-02-17 22:23:44 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-outputs
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-outputs
|
|
|
|
.endif
|
|
|
|
|
2013-01-07 21:50:20 +01:00
|
|
|
.if ${PORT_OPTIONS:MVISUALIZER}
|
2009-09-20 14:56:13 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3
|
2009-09-12 23:36:04 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-visualizer
|
|
|
|
.endif
|
|
|
|
|
2013-05-06 17:34:17 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${NCURSESBASE} == /usr
|
|
|
|
# no need to use ncurses-config if we use ncurses from the base system
|
|
|
|
CONFIGURE_ARGS+= NCURSES_CONFIG=/usr/bin/true
|
|
|
|
.endif
|
|
|
|
|
2008-08-30 14:12:07 +02:00
|
|
|
post-install:
|
2013-12-29 12:31:22 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/ncmpcpp ${STAGEDIR}${PREFIX}/bin/
|
2013-01-07 21:50:20 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-04-01 22:11:29 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2013-12-29 12:31:22 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}/NEWS
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR}/AUTHORS
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR}/COPYING
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/config ${STAGEDIR}${DOCSDIR}/config
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/keys ${STAGEDIR}${DOCSDIR}/keys
|
2008-09-06 23:04:42 +02:00
|
|
|
.endif
|
2008-08-30 14:12:07 +02:00
|
|
|
|
2013-05-06 17:34:17 +02:00
|
|
|
.include <bsd.port.post.mk>
|